周日MACD,和谐通达信公式源码分享 副图

 2022-08-19 09:30:10    通达信指标网  

VAR1:=(HIGH+LOW+CLOSE)/3;
DIFF:EMA(VAR1,25)-EMA(VAR1,99),LINETHICK0;
DEA:EMA(DIFF,17),LINETHICK0;
MACD:2*(DIFF-DEA),LINETHICK0;
VAR2:=DIFF;
VAR3:=DEA;
DRAWBAND(VAR2,RGB(220,100,0),VAR3,RGB(0,290,255));
IF(VAR2>=REF(VAR2,1),VAR2,DRAWNULL),COLOR2B4AEC,LINETHICK0;
IF(VAR2<REF(VAR2,1),VAR2,DRAWNULL),COLORGREEN,LINETHICK0;
IF(VAR3>=REF(VAR3,1),VAR3,DRAWNULL),COLORRED,LINETHICK0;
IF(VAR3<REF(VAR3,1),VAR3,DRAWNULL),COLORGREEN,LINETHICK0;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,2,0),COLOR4D00D6;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,1.5,0),COLOR4A00A4;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR0000EE;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,0.1,0),COLOR4A008E;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR5200FF;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,2,0),COLOR6A6F60;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,1.5,0),COLOR936F60;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,1,0),COLORBE6F60;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,0.1,0),COLORBE9560;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,0,0),COLORBE957F;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),COLOR520E4F;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1.5,0),COLOR520E59;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR520E67;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0.1,0),COLOR520E89;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),COLOR155500;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1.5,0),COLOR208000;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1,0),COLOR2BAA00;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,0.1,0),COLOR35D500;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,0,0),COLOR40FF00;

VAR4:=EMA(AMOUNT/(100*VOL),5);
VAR5:=EMA(AMOUNT/(100*VOL),13);
VAR6:=EMA(AMOUNT/(100*VOL),34);
VAR7:=DMA(CLOSE,VOL/CAPITAL);

  •  标签:  

原文链接:https://www.tdxzb.com/?id=517

本文版权:如无特别标注,本站文章均为原创。

相关文章

服务热线

18020657357

微信客服

微信客服