通达信永恒超短主图源码,不错的选股参考工具!
2017-10-15原创 编 辑:翔博软件
{公式名称: 永恒超短主图
公式源码:}
VAR1:=(3*CLOSE+OPEN+LOW+HIGH)/6;
VAR2:=(20*VAR1+19*REF(VAR1,1)+18*REF(VAR1,2)+17*REF(VAR1,3)+16*REF(VAR1,4)+15*REF(VAR1,5)+14*REF(VAR1,6)+13*REF(VAR1,7)+12*REF(VAR1,8)+11*REF(VAR1,9)+10*REF(VAR1,10)+9*REF(VAR1,11)+8*REF(VAR1,12)+7*REF(VAR1,13)+6*REF(VAR1,14)+5*REF(VAR1,15)+4*REF(VAR1,16)+3*REF(VAR1,17)+2*REF(VAR1,18)+REF(VAR1,20))/210;
VAR3:=MA(VAR2,5);
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
VAR4:=CROSS(VAR2,VAR3);
VAR5:=CROSS(VAR3,VAR2);
VAR6:=DRAWICON(FILTER(VAR4>0,1),VAR3*0.99,17);
VAR7:=DRAWICON(FILTER(VAR5>0,1),VAR2*1.01,16);
VAR8:=MA(VOL,5);
VAR9:=MA(VOL,35);
VAR10:=MA(VOL,135);
VAR11:=VAR4 AND VOL>VAR10 AND VOL>VAR9 AND VOL>VAR10*2;
DRAWICON(FILTER(VAR11>0,1),VAR3*0.97,97);
VAR12:=COUNT(VOL>VAR10,10)>=8;
VAR13:=ATAN((VAR3/REF(VAR3,1)-1)*100)*180/3.1416>40;
VAR14:=CLOSE/REF(CLOSE,1)<1.05;
VAR15:=CLOSE/REF(CLOSE,1)>0.95;
VAR16:=LOW<VAR2*1.09;
VAR17:=CCI>100;
VAR18:=VOL>VAR10;
VAR19:=VAR2>VAR3;
VAR20:=CLOSE>OPEN;
VAR21:=CLOSE<VAR3*1.1;
VAR22:=LOW<VAR3*1.02;
VAR23:=VAR22 AND VAR13 AND VAR14 AND VAR15 AND VAR21 AND CLOSE>OPEN AND VAR12;
STICKLINE(VAR23,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(VAR23,OPEN,CLOSE,1,0),COLORYELLOW;
DRAWTEXT_FIX(1,0.1,1,0,FGBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(1,0.935,1,0,HYBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(1,0.87,1,0,DYBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.05,0.05,0,GNBLOCK),COLORMAGENTA,LINETHICK2;
VAR24:=MA5/LOW;
VAR25:=HIGH/MA5;
VAR26:=VAR24>1.1 AND CLOSE>OPEN;
VAR27:=VAR25>1.1 AND CLOSE<OPEN;
VAR28:=DRAWICON(FILTER(VAR26>0,1),LOW*0.97,5);
卖1:DRAWICON(FILTER(VAR27>0,1),HIGH*1.02,6);