N:=21; M:=5;
股票趋势线:400,POINTDOT,COLORBLUE,LINETHICK4;
通达信指标:100,POINTDOT,COLORRED,LINETHICK4;
TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),N);
TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),N);
vvdds1:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),N);
vvdds2:100*(TH*2+vvdds1)/(TL*2+vvdds1),COLOR0000FF,LINETHICK2;
VAR1:MA(vvdds2,M),COLOR00FFFF,LINETHICK2;
W:=CROSS(vvdds2,VAR1);{股票公式-股票指标www.gs6699.com}
vvdds3:=VAR1<100;
vvdds4:=VAR1<150 AND VAR1>REF(VAR1,1);
vvdds5:=W AND vvdds3;
vvdds6:=W AND vvdds4;
vvdds7:=FILTER(vvdds5,5);
vvdds8:=FILTER(vvdds6,8);
STICKLINE(vvdds7,0,80,4,0),COLOR000099;
STICKLINE(vvdds7,0,80,2,0),COLOR0000BB;
STICKLINE(vvdds7,0,80,1,0),COLOR0000DD;
STICKLINE(vvdds7,0,80,0.3,0),COLOR0000FF;
DRAWTEXT(vvdds7,83,''),COLOR00FFFF;
STICKLINE(vvdds8,0,50,4,0),COLOR990099;
STICKLINE(vvdds8,0,50,2,0),COLORBB00BB;
STICKLINE(vvdds8,0,50,1,0),COLORDD00DD;
STICKLINE(vvdds8,0,50,0.3,0),COLORFF00FF;
DRAWTEXT(vvdds8,53,''),COLOR00FFFF;
vvdds9:CROSS(VAR1,vvdds2) AND VAR1>250;
vvdds91:vvdds2>400;
SAL:FILTER(vvdds9 OR vvdds91,5);
DRAWICON(SAL,vvdds2,15);