FX1:=(EMA(C,14)-REF(EMA(C,14),1))/REF(EMA(C,14),1)*100;
FX2:=IF(FX1<0,REF(FX1,BArslAST(crOSS(0,FX1))+1),0);
FX3:=IF(FX1>0,REF(FX1,BARSLAST(CROSS(0,FX1))+1),0);
FX4:=FX1<0,LINETHICK;
FX5:=FX1>0,LINETHICK;
ZH_1:=BARSLAST(CROSS(FX4,FX5)||CROSS(FX5,FX4));
ZH_2:=DATacOUNT-ZH_1[DATACOUNT];
ZH_3:=IF(BARPOS=ZH_2,CROSS(FX4,FX5)||CROSS(FX5,FX4),0);
DRAWLINE(CROSS(FX2,FX3),h,CROSS(FX3,FX2),L,0),COLORYELLOW;
DRAWLINE(CROSS(FX3,FX2),l,CROSS(FX2,FX3),h,0),COLORMAGENTA;
DRAWLINE(ZH_3,h,ISLASTBAR&&FX1<0,L,0),COLORYELLOW;
DRAWLINE(ZH_3,L,ISLASTBAR&&FX1>0,H,0),COLORMAGENTA;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。