打印本文 打印本文  关闭窗口 关闭窗口  
通达信一目了然的MACD公式
作者:佚名  文章来源:不详  点击数  更新时间:2010/11/21 16:17:43  文章录入:萃富投资  责任编辑:萃富

dif1 : ema(close,12) - ema(close,26);
dea1 : ema(dif1,9);
macd : 2*(dif1-dea1), colorstick;
stickline(macd>ref(macd,1)and macd<0,0,macd,0.5,0),colorff00ff;
stickline(macd>ref(macd,1)and macd>0,0,macd,0.5,0),colorred;
stickline(macd<ref(macd,1)and macd<0,0,macd,0.5,0),coloryellow;
stickline(macd<ref(macd,1)and macd>0,0,macd,0.5,0),coloryellow;
dif:dif1,color33ff33;
dea:dea1,coloryellow;
强:if(dif1>=dea1,dif1,drawnull),colorred,linethick2;
drawtext(cross(dea,dif) ,h*0.04,' 卖'), color00ff00,linethick9;
drawtext(cross(dif,dea),l*-0.04,' 买'),coloryellow,linethick9;
drawicon(cross(dif,dea),l*-0.04,9);
drawicon(cross(dea,dif),h*0.04,2);

通达信一目了然的MACD公式

 

打印本文 打印本文  关闭窗口 关闭窗口