通达信一目了然的MACD公式
2019/12/30 18:31:20
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);
看股吧公 式 www.kanguba.co m
其它股票公式列表