编写要求:
www.gszx.com.cn网解答:
网友求助:
请老师编一个当日MACD金叉家数公式。显示在主图上.谢谢!
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
金叉:cross(DIFF,DEA);
解答如下:
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
M金叉:=CROSS(DIFF,DEA);
DRAWTEXT(M金叉,L*0.98,'M金叉'),COLORYELLOW;