一、先建引用指标FSYY,如果已有的话再里面加上下列几句,我是不断加的。
指数1:"999999$C";
指数2:"399001$C";
指数3:"399005$C";
指数4:"399006$C";
二、再建个引用指标FSYY1
指数1:"FSYY.指数1#DAY";
指数2:"FSYY.指数2#DAY";
指数3:"FSYY.指数3#DAY";
指数4:"FSYY.指数4#DAY";
三、再建分时主图指标
均价:SUM(C*V,BARSCOUNT(C))/SUM(V,BARSCOUNT(C)),COLORYELLOW;
DRAWICON(FILTER(CROSS(C,DYNAINFO(3)*1.1-0.01),60),C,1);
DRAWNUMBER(FILTER(CROSS(C,DYNAINFO(3)*1.1-0.01),60),C*0.98,TIME),COLORYELLOW;
DRAWNUMBER(FILTER(CROSS(C,DYNAINFO(3)*1.1-0.01),60),C*0.96,C),COLORMAGENTA;
DRAWNUMBER(ISLASTBAR,DYNAINFO(11),DYNAINFO(11)),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,DYNAINFO(7),DYNAINFO(7)),COLORWHITE;
DRAWTEXT_FIX(1,0.0,0.75,0,'红绿箭头带未来,仅供参与'),COLORGREEN;
DRAWTEXT_FIX(1,0.0,0.85,0,STRCAT('上证指数:',CON2STR(FSYY1.指数1,2))),COLORYELLOW;
DRAWTEXT_FIX(1,0.3,0.85,0,STRCAT('深圳指数:',CON2STR(FSYY1.指数2,2))),COLORYELLOW;
DRAWTEXT_FIX(1,0.0,0.95,0,STRCAT('中小指数:',CON2STR(FSYY1.指数3,2))),COLORYELLOW;
DRAWTEXT_FIX(1,0.3,0.95,0,STRCAT('创业指数:',CON2STR(FSYY1.指数4,2))),COLORYELLOW;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8;
支撑:=L1+P1*0.5/8;
DRAWICON(LONGCROSS(支撑,C,2),C,1);
DRAWICON(LONGCROSS(C,阻力,2),C,2);
四、注意事项
分时主图中的红绿箭头是即时动态的,会根据行情变化的,只能参考。