以下是通达信macd 裸K 主图指标公式(无源码的请下载附件导入)
轴:=CONST(DYNAINFO(3)),NODRAW;
DIFF: (EMA(CLOSE,12)-EMA(CLOSE,26))+轴,COLORGREEN;
DEA: EMA(DIFF,9),COLORGREEN;
MACD := (DIFF-DEA)*2 +轴,COLORSTICK ;
STICKLINE(MACD>=轴,轴,MACD ,0,1),COLORRED;
STICKLINE(MACD<轴,轴,MACD ,0,1),COLORCYAN;
IF(轴>=DEA,轴,DRAWNULL),LINETHICK4,COLORGREEN;
IF(轴<DEA,轴,DRAWNULL),LINETHICK4,COLORRED;
727111849.jpg
|