在线检测未来函数

主图上显示前5天换手率的和的公式

来源:Internet,编辑:股旁网,2017-11-29

编写要求:

主图上显示前5天换手率的和,前10天的和,前20天的,前30天的和,前60天的和,前120天的和,前250天的和!

股旁网解答:

DRAWTEXT_FIX(ISLASTBAR,0.965,0.01,1.0,STRCAT('5日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,5),2))),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.965,0.05,1.0,STRCAT('10日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,10),2))),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.965,0.09,1.0,STRCAT('20日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,20),2))),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.965,0.13,1.0,STRCAT('30日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,30),2))),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.965,0.17,1.0,STRCAT('60日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,60),2))),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.965,0.21,1.0,STRCAT('120日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,120),2))),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.965,0.25,1.0,STRCAT('250日换手率累计: ', CON2STR(SUM(DYNAINFO(37)*100,250),2))),COLORWHITE;

相关文章

博聚网