通达信满仓追击抄底副图源码

N:=21; M:=5;
 TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),N);
 TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),N);
 TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),N);
 VAR0:=100*(TH*2+TQ)/(TL*2+TQ),COLOR0000FF,LINETHICK2;
 VAR1:=MA(VAR0,M),COLOR00FFFF,LINETHICK2;
 {DRAWBAND(VAR0,RGB(255,0,0),VAR1,RGB(0,0,220));}
 W:=CROSS(VAR0,VAR1);
 WL1:=VAR1<100;
 WL2:=VAR1<150 AND VAR1>REF(VAR1,1);
 WLT1:=W AND WL1;
 WLT2:=W AND WL2;
 TJ1:=FILTER(WLT1,5);
 TJ2:=FILTER(WLT2,8);

全仓:IF(TJ1,4,0),COLORFFFF99,LINETHICK2;
 DRAWTEXT(TJ1,4,'全仓'),COLOR00FFFF;
加强:IF(TJ2,3,0),LINETHICK2;
 DRAWTEXT(TJ2,3,'追买'),COLOR00FFFF;

V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
操盘线:=SMA(V3,2,1);
 SC:=CROSS(操盘线,20) AND REF(C<O,1),NODRAW;
拉升:IF(SC,2,0);
 DRAWICON(SC,2,30);
抄底:IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)<REF(操盘线,2) AND 操盘线<23 ,1,0);
 DRAWICON(抄底>0,1,38);

NOTEXT看字:5;