飞狐趋势转折主图指标公式
2020/2/14 18:19:59
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;
看股 吧公式 www.kan guba.com
其它股票公式列表