通达信成功率87%钻石底副图/选股预警源码

{钻石底-87%}
 VBR:=C<REF(C,4);
 NT0:=BARSLASTCOUNT(VBR);
 TJ21:=NT0=6 ;
底6:=COUNT(NT0=6,5)=1;
 VBR1:=DMA(CLOSE,VOL/SUM(VOL,34));
 VBR2:=DMA(CLOSE,VOL/SUM(VOL,13));
 VBR3:=(CLOSE-VBR1)/VBR1*100;
 VBR4:=(CLOSE-VBR2)/VBR2*100;
 Y1:=VBR4<=-17 AND VBR3<=-25;
去除ST:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),0,1);
去除停牌:=DYNAINFO(4)>0;
去除:=去除ST AND 去除停牌;
Q1:=底6 AND Y1 AND 去除;
超卖区:=MA((CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 ,2);
 Q2:=超卖区<-20;
钻石底:Q1 AND Q2 AND C>REF(C,1)*0.91 AND C<REF(C,1)
 AND INDEXC<REF(INDEXC,1) AND REF(C>REF(C,1),1),COLOR0033FF;
 STICKLINE(钻石底,0,170,3,0),COLOR0033FF;
 DRAWTEXT(钻石底,170,'↙钻石底87%'),COLOR0033FF;