MA5:EMA(C,5),Color00FF00,DOTLINE;
PARTLINE(MA5,MA5>REF(MA5,1),rgb(255,150,0)),LINETHICK3,LAYER0;
DIF1:=WMA(CLOSE,5);
DIF2:=WMA(CLOSE,21);
MACD:WMA((3*DIF1-2*DIF2),3),ColorFF9900,DOTLINE,LAYER0;
PARTLINE(MACD,MACD>REF(MACD,1),rgb(255,0,0)),LINETHICK3,LAYER0;{MACD升势}
XP:=BARSLAST(DISPSTATUS=1)+1;
E:=llvall(llv(l,XP))*0.95;
DIFFk:=DIF1-DIF2;
DEAk:=WMA(DIFFk,8);
MACDk:=2*(DIFFk-DEAk);
STICKLINE(MACDk>0 AND MACDk>REF(MACDK,1),E+MACDk,E,6,0),Color0000FF;
STICKLINE(MACDk>0 AND MACDk
【股票入门】【大智慧】MACD主图指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。