趋势先锋-精品通达信指标公式源码分享

通达信免费指标 06-06 阅读:168 评论:0

image.png

DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORYELLOW,LINETHICK0;

DEA:EMA(DIF,9),COLORGREEN,LINETHICK0;

MACD:(DIF-DEA)*2,COLORRED,LINETHICK0;

DRAWBAND(DIF,RGB(155,50,50),DEA,RGB(0,224,224));

VAR1:=IF(OPEN<CLOSE,(CLOSE-OPEN)/REF(CLOSE,1),0);

VAR2:=IF(OPEN>CLOSE,(OPEN-CLOSE)/REF(CLOSE,1),0);

VAR3:=SUM(VAR1-VAR2,5);

VAR4:=0.382*(HIGH+LOW-OPEN-CLOSE)+0.382*OPEN+0.618*CLOSE+0.618*IF(CLOSE<200,AMOUNT/VOL/100-CLOSE,HIGH+LOW-OPEN-CLOSE);

VAR5:=MA(VAR4-REF(VAR4,1),5);

VAR6:=EMA(VAR5,12)-EMA(VAR5,26);

VAR7:=EMA(VAR6,9);

VAR8:=VAR4+VAR3;

VAR9:=MA(VAR8-REF(VAR8,1),5);

VAR10:=EMA(VAR9,12)-EMA(VAR9,26);

VAR11:=EMA(VAR10,9);

X:(VAR10-VAR11)*10,COLORC08080,LINETHICK0;

STICKLINE(X>REF(X,1) AND X>0,0,X,4,0),COLORFF0080;

STICKLINE(X<REF(X,1) AND X>0,0,X,4,0),COLORWHITE;

STICKLINE(X<REF(X,1) AND X<0,0,X,4,0),COLOR008000;

STICKLINE(X>REF(X,1) AND X<0,0,X,4,0),COLORGREEN;

STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,0.5,0),COLORRED;

STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,0.5,0),COLORRED;

STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,0.5,0),COLORBLUE;

STICKLINE(MACD<0 AND MACD<REF(MACD,1),MACD,0,0.5,0),COLORBLUE;


版权声明

本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!

服务热线

18020657357

微信客服

微信客服