同花顺macd指标公式
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
DRAWICON(CROSS(DIFF,DEA),DIFF,1);
DRAWICON(CROSS(DEA,DIFF),DEA,2);
Jdxs:=HHV(DIFF,0)*10;
TT:=(2*CLOSE+OPEN+HIGH+LOW);
主导动能:=TT/EMA(TT,4)-1,COLORSTICK;
FF:=主导动能*Jdxs;
STICKLINE(FF>0,0,FF,8,0),COLOR33CFDD;
//黄色:获利回吐STICKLINE(FF>0 AND FF>REF(FF,1),0,FF,8,0),COLOR0000CC;
//红色:做多主导STICKLINE(FFREF(FF,1),0,FF,8,0),COLORFF3300;
//蓝色:空头回补做多主导:IFF(FF>0 AND FF>REF(FF,1),FF,0),NODRAW,COLOR0000CC;
获利回吐:IFF(FF>0 AND FFREF(FF,1),FF,0),NODRAW,COLORFF6600;
//零线:0;
TIPTEXT(ISNULL(REFX(CLOSE,1)),0,' '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'');