「翔博精选指标」多空阶梯趋势,和谐源码分享(通达信公式 主图
2022-05-19原创 编 辑:翔博软件
{多空阶梯趋势}
SJ:=1;
突破:=REF(EMA(C,14),1),LINETHICK4,COLORYELLOW;
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),LINETHICK2;
空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),LINETHICK2;
STICKLINE(A1X*SJ>0,多方,突破,18,0),COLORRED;
STICKLINE(A1X*SJ<0,空方,突破,18,0),COLOR990000;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);