{钻石枪}
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)) ANDVOL/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;
源码未复制完.....下载附件源码