以下是通达信双周期MACD+MACD练习用主图(源码 主图+副图贴图)(无源码的请下载附件导入)
{双周期MACD 副图}
本DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
本DEA:EMA(本DIF,9);
MACD:(本DIF-本DEA)*2,COLORSTICK;
下DIF:EMA(CLOSE,3)-EMA(CLOSE,7);
下DEA:EMA(下DIF,3);
{带有均线起始位标识的MACD练习用 主图}
M5:MA(C,5);
M13:MA(C,13);
M50:MA(C,50);
M250:MA(C,250);
DRAWICON(CROSS(BACKSET(ISLASTBAR,5),0.5),M50,39);
DRAWTEXT(CROSS(BACKSET(ISLASTBAR,5),0.5),M50,' 5'),COLORWHITE;
DRAWICON(CROSS(BACKSET(ISLASTBAR,13),0.5),M50,39);
DRAWTEXT(CROSS(BACKSET(ISLASTBAR,13),0.5),M50,' 13'),COLORWHITE;
DRAWICON(CROSS(BACKSET(ISLASTBAR,50),0.5),M50,39);
DRAWTEXT(CROSS(BACKSET(ISLASTBAR,50),0.5),M50,' 50'),COLORWHITE;
DRAWICON(CROSS(BACKSET(ISLASTBAR,250),0.5),M50,39);
DRAWTEXT(CROSS(BACKSET(ISLASTBAR,250),0.5),M50,' 250'),COLORWHITE;
76199115.jpg
|