有很多同学是看macd的数值,遇到股价比较低的,macd数值变成0.00,就看不明白了,
优化:
第一步,给股价乘100,所有的哦
源码:
DIF:EMA(CLOSE*100,12)-EMA(CLOSE*100,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
第二步,给macd画参考线,看macd波动幅度
N1:=480;
DIF:EMA(CLOSE*100,12)-EMA(CLOSE*100,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
LINE1UP:MA(ABS(MACD),N1)*25*0.01,COLORYELLOW;
LINE1DOWN:MA(ABS(MACD),N1)*25*-0.01,COLORYELLOW;
LINE3UP:MA(ABS(MACD),N1)*73*0.01,COLORGREEN;
LINE3DOWN:MA(ABS(MACD),N1)*73*-0.01,COLORGREEN;
标签:EMA,DIF,龙哥,通达信,源码,N1,100,MACD,macd From: https://www.cnblogs.com/long136/p/17724957.html