{钻石}
X_1:=1;
X_2:=DYNAINFO(4)>0;
X_3:=TOPRANGE(VOL);
X_4:=MA(CLOSE,20);
X_5:=(MIN(CLOSE,OPEN)-LOW)/LOW*100;
X_6:=(HIGH-MAX(CLOSE,OPEN))/MAX(CLOSE,OPEN)*100;
X_7:=INBLOCK(1) OR INBLOCK(2);
X_8:=HIGH/CLOSE<CLOSE/OPEN AND (HIGH/LLV(LOW,2)<1.19 AND CLOSE/LLV(LOW,2)<1.15 AND X_7=0 AND X_3>25 OR (HIGH/LLV(LOW,2)<1.29 AND CLOSE/LLV(LOW,2)<1.25 AND X_7=1 AND X_3>20)) AND X_5<1.6 AND CLOSE<1.8*LLV(LOW,90) AND HIGH/LLV(LOW,3)<1.25 AND CLOSE>X_4 AND (HIGH/REF(CLOSE,1)>1.07 OR (HIGH/REF(CLOSE,1)>1.06 AND X_3>50)) AND VOL/REF(VOL,1)>=1.8 AND CLOSE/OPEN>1.03 AND CLOSE/REF(CLOSE,1)>=1.04 AND (HIGH>REF(HHV(HIGH,8),1) AND CLOSE>REF(HHV(IF(OPEN>CLOSE,OPEN,OPEN),8),1) OR HIGH>REF(HHV(HIGH,20),1) OR (X_3>50 AND HIGH>REF(HHV(HIGH,5),1)));
钻石抢:=X_1 AND X_2 AND X_8;
DRAWICON(钻石抢,L*0.995,25);
{涨停变色}
BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));
XA_1:=1;
STICKLINE((C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H) AND XA_1=1,O,C,3,0),COLORMAGENTA;
STICKLINE((C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1,O,C,3,0),COLOR33FF99;
STICKLINE((C>=ZTPRICE(REF(C,1),BK) AND C=H),C,O,3,0),COLORMAGENTA;
STICKLINE((C<=DTPRICE(REF(C,1),BK) AND C=L),C,O,3,0),COLOR33FFCC;
{金抢}
金抢:=C>O AND H/REF(C,1)>1.07 AND (O-L)/O<0.015 AND V/REF(V,1)>1.85 AND (H-C)/C>0.02;
DRAWICON(金抢,L*0.985,26);
{高开 分析家公式网HTTP://WWW.70822.COM}
AA:=O>REF(C,1) AND C<O;
BB:=O>REF(C,1) AND C>O;
STICKLINE(AA,O,O-0.003,2,0) COLOR33FFFF;
STICKLINE(BB,O,O+0.003,2,0) COLOR33FFFF;
{炸板}
W1:=0.4;
W0:=0;
ZDJS:=IF(CODELIKE('880005'), 1, 0);
CYB:=IF(INBLOCK('创业板'), 1, 0);
ZDF:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('ST板块'), 0.05, 0.1));
ZT:=ZTPRICE(REF(CLOSE,1), ZDF);
DT:=DTPRICE(REF(CLOSE,1), ZDF);
ZT1:=ZTPRICE(REF(CLOSE,1), 0.1);
ZT2:=ZTPRICE(REF(CLOSE,1), 0.2);
DT1:=DTPRICE(REF(CLOSE,1), 0.1);
DT2:=DTPRICE(REF(CLOSE,1), 0.2);
NOCYB:=CYB=0 AND ZDJS=0;
{非20CM的上影和....................... 源码极长,放到附件里吧