通达信波段涨跌幅度指标公式
2021/1/30 18:28:27
ZL:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
F11:=ZIG(3,15);
FXX:=IF((F11> REF(F11,1)),5,105);
转向:=CROSS(ZL,FXX);
高点:=CROSS(FXX,ZL);
STICKLINE(转向,0,100,0,-1),COLOR00009F;
STICKLINE(高点,0,100,0,-1),COLOR009F00;
DRAWICON(转向,LOW,5);
DRAWICON(高点,H,6);
TS:=BARSLAST(转向);
波段涨幅:=(C-REF(L,TS+1))/REF(L,TS+1)*100;
GD:=BARSLAST(高点);
波段跌幅:=(C-REF(H,GD+1))/REF(H,GD+1)*100;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.27,0,'波段涨幅:'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.14,0.27,0,' %'),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.11,0.27,0,波段涨幅),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.33,0,'波段跌幅:'),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.14,0.33,0,' %'),COLOR00FF00;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.11,0.33,0,波段跌幅),COLOR00FF00;
投股票 网 ww w.tou18.cn
股市公式下载推荐