通达信斜突选股指标公式
2020/10/17 18:45:10
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.tou18.c n
股市公式下载推荐