.
{ 通达信的指标 }
N1:=5;{最近下跌天数}
N2:=31;{上涨天数}
N3:=55;{平台高点天数}
LL:=LLV(L,N1);
HH:=REF(HHV(H,N2),N1);
H0:=REF(HHV(H,N3),N1+N2);
缠三买点:=HH=HHV(H,N2+N1) AND LL>=H0;
涨停基因:=(C-REF(C,1))/REF(C,1)*100;
涨停120:=INTPART(SUM(涨停基因>9.9,120));
涨停60:=INTPART(SUM(涨停基因>9.9,60));
涨停30:=INTPART(SUM(涨停基因>9.9,30));
涨停16:=INTPART(SUM(涨停基因>9.9,16));
X:=5;
X1:=EMA(C,X);
X2:=REF(X1,1);
日均线斜率:=(X1-X2)/X2*100>=1 ,LINETHICK2;
十日换手:=SUM(VOL,10)/CAPITAL*100>=30 ,LINETHICK2;
内外盘:=(DYNAINFO(23)<>DYNAINFO(22)) AND (DYNAINFO(7)>DYNAINFO(3));
盘:=CAPITAL/100;
换:=V/盘;
换手率1:=BETWEEN(换,2.40,40);
量比1 :=DYNAINFO(17)>0.86;
流通盘:=CAPITAL/1000000<=6.60;
股价:=C>=4.60 AND C<14.99;
去创业板:=IF(CODELIKE('300'),0,1);
去停牌:=DYNAINFO(17)>0;
D22:=IF(NAMELIKE('S'),0,1);
D33:=IF(NAMELIKE('*'),0,1);
去ST:=D22 AND D33 AND 流通盘 AND 股价 AND 内外盘
AND 去创业板 AND 去停牌 AND 量比1 AND 换手率1;
缠三买点 OR 涨停16 OR 日均线斜率 OR 十日换手
&& C/REF(C,1)>=1.020 && C/REF(C,1)<=1.040 && 去ST;