通达信均线扣抵主图公式
源码
M1:=5;
M2:=11;
M3:=31;
M4:=63;
M5:=130;
M6:=250;
MA5:MA(CLOSE,M1);
MA10:MA(CLOSE,M2);
MA20:MA(CLOSE,M3);
MA60:MA(CLOSE,M4);
MA120:MA(CLOSE,M5);
MA240:MA(CLOSE,M6);
DRAWICON(CURRBARSCOUNT=5+1,L/1.015,13);
DRAWICON(CURRBARSCOUNT=11+1,L/1.015,26);
DRAWICON(CURRBARSCOUNT=31+1,L/1.015,25);
DRAWICON(CURRBARSCOUNT=63+1,L/1.015,27);
DRAWICON(CURRBARSCOUNT=130+1,L/1.015,14);
DRAWICON(CURRBARSCOUNT=250+1,L/1.015,66);
DRAWTEXT(CURRBARSCOUNT=5+1,L/1.035,'5日');
DRAWTEXT(CURRBARSCOUNT=11+1,L/1.035,'11日');
DRAWTEXT(CURRBARSCOUNT=31+1,L/1.035,'31日');
DRAWTEXT(CURRBARSCOUNT=63+1,L/1.035,'63日');
DRAWTEXT(CURRBARSCOUNT=130+1,L/1.035,'130日');
DRAWTEXT(CURRBARSCOUNT=250+1,L/1.035,'250日');
效果图如下:
声明:
本站所有文章文字内容如无特殊说明均为原创编写,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台!指标公式源码来源于网络收集和用户上传,分享目的仅供参考与学习,如需商用,请购买正版,否则后果和损失自行承担。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件 联系我们进行下架处理。指标公式案例截图仅代表过去,依此操作,责任自负。本站不提供技术培训、安装调试、股票推荐等金融服务。