通达信MACD全景公式(原码,说明,无未来)
发布的天下无敌指标,觉得其思路不错,可用来看长做短.该指标是MACD的变形,可进一步简化和优化如图:
指标可取名为MACD全景,图中的色块部分即长线部分,二条线即短线部分,在长线色块为红色时,如短线二线金叉或刚金叉不久则可大胆做多,这时胜算会较大.
谢谢原作者魔的心!!!
DRAWGBK(O>C,RGB(10,10,10),RGB(0,50,40),0,'01',0);
JJ:=(C*2+H+L)/4;
DIFF:=EMA(JJ,13)-EMA(JJ,21);
长DEA:EMA(DIFF,3),NODRAW;
长DEA2:EMA(DIFF,10),NODRAW;
XC:=长DEA-长DEA2;
STICKLINE(XC>=REF(XC,1),0,0,2,0),COLOR1000FF;
STICKLINE(XC<REF(XC,1),0,0,2,0),COLORFFFF00;
DRAWBAND(长DEA,RGB(180,0,180),长DEA2,RGB(0,120,0));
短DIFF1:EMA(C,7)-EMA(C,21),COLOR1000FF,LINETHICK2;
短DIFF2:EMA((0.668*REF(短DIFF1,1)+0.333*短DIFF1),1),COLOR00FF00,LINETHICK2;