飞狐趋势转折主图指标公式

[复制链接]
查看123 | 回复0 | 2021-8-21 12:40:11 | 显示全部楼层 |阅读模式

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;

202108211158.jpg

202108211158.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则