以下是通达信绝密波段分时决策资金分时可用源码
A1:=(VOL/CLOSE)/3;
{A222:=IF(A1>0.29 AND CLOSE>REF(CLOSE,1),A1,0);}
{A22:=SUM(A222,0);}
A2:=SUM((IF(((A1>0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A3:=SUM((IF(((A1>0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
A4:=SUM((IF(((A1<0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A5:=SUM((IF(((A1<0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((ISLASTBAR=1),((100*A2)/A6),0);
A8:=((IF((ISLASTBAR=1),((100*A3)/A6),0)));
A9:=((IF((ISLASTBAR=1),((100*A4)/A6),0)));
A10:=((IF((ISLASTBAR=1),((100*A5)/A6),0)));
»ú¹¹ÂòÅÌ:(A2),LINETHICK3,COLORFF55FF;
»ú¹¹ÂôÅÌ:(A3),LINETHICK3,COLORFFFF55;
É¢»§ÂòÅÌ:(A4),COLOR5555FF;
É¢»§ÂôÅÌ:(A5),COLOR55FF55;
DRAWTEXT(ISLASTBAR=1,»ú¹¹ÂòÅÌ*0.9,’»ú¹¹ÂòÅÌ’),LINETHICK2,COLORFF55FF;
DRAWTEXT(ISLASTBAR=1,»ú¹¹ÂôÅÌ,’»ú¹¹ÂôÅÌ’),LINETHICK2,COLORFFFF55;
DRAWTEXT(ISLASTBAR=1,É¢»§ÂòÅÌ,’É¢»§ÂòÅÌ’),LINETHICK2,COLOR5555FF;
DRAWTEXT(ISLASTBAR=1,É¢»§ÂôÅÌ,’É¢»§ÂôÅÌ’),LINETHICK2,COLOR55FF55;
VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
²¨: VAR3;
¶Î: VAR4;
VAR6:=CROSS(VAR3,VAR4) AND VAR3<20;
DRAWTEXT(FILTER(VAR6,10)=1,40,’³ µ×’),LINETHICK3 ;
STICKLINE(FILTER(VAR6,10)=1,0,30,10,0),COLORGREEN ;
VAR7:=CROSS(VAR4,VAR3) AND VAR3>80;
STICKLINE(FILTER(VAR7,5)=1,80,100,10,0),COLORYELLOW ;
DRAWTEXT(FILTER(VAR7,5)=1,70,’ÌÓ¶¥’),LINETHICK3 ,COLORYELLOW;
VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4;
STICKLINE(VAR8,85,100,10,0) ;
90 ;
0;
评论(0)