通达信斜突选股指标公式
2020/10/17 18:13:54
MACD:="MACD.MACD";
T1:=BARSLAST(CROSS(MACD,0));
T1H:=HHV(H,T1+1);
STH:=REFX(REF(T1H,1),BARSNEXT(CROSS(0,MACD)));
T2:=BARSLAST(H=STH);
T2H:=CONST(REF(H,T2));
TA:=BARSLAST(H=T2H AND T2=0);
A1:=BACKSET(ISLASTBAR,TA+1) AND TA=0;
TB:=BARSLAST(IF(H=STH AND H>T2H,1,0));
BA1:=BACKSET(ISLASTBAR,TB+1) AND TB=0;
线上价:=DRAWLINE(BA1,H,A1,H,1);
AB:=线上价;
斜率%:=(AB-REF(AB,1))/REF(AB,1)*100;
突破信号:CROSS(C,AB) AND CURRBARSCOUNT<CONST(TA);
看 股吧公式 www.ka nguba.com
其它股票公式列表