通达信MACD主图版本把macd副图搬到主图

AAA:=MAX(DYNAINFO(3),DYNAINFO(5))*(0.01高低);

BBB:=MIN(DYNAINFO(3),DYNAINFO(6))/(0.01*高低);

CCC:=AAA-BBB;

中轨:(AAA+BBB)/2,COLOR999900;

DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*500/EMA(CLOSE,26);

DEAA:=EMA(DIFF,9);

MACD:=(DIFF-DEAA)/大小;

STICKLINE(MACD>=REF(MACD,1)AND MACD<=0,中轨,中轨+MACD,2,1),COLOR006666;

STICKLINE(MACD>REF(MACD,1)AND MACD>=0,中轨,中轨+MACD,2,1),COLOR110055;

STICKLINE(MACD<REF(MACD,1)AND MACD<0,中轨,中轨+MACD,2,1)COLOR444400;

STICKLINE(MACD<REF(MACD,1)AND MACD>0,中轨,中轨+MACD,2,1),COLOR444400;
 

上一篇:通达信宕点买指标公式    下一篇:通达信抄底副图源码指标公式