涨停抓妖
涨停1:=C/REF(C,1)>1.09 AND C=H;
涨停2:=COUNT(REF(涨停1,1),7)>0;
X_1:=AMOUNT/VOL/100;
X_2:=MAX(ABS(HIGH-X_1),ABS(X_1-LOW));
X_3:=ABS((OPEN+CLOSE)/2-X_1);
X_4:=(X_2+X_3)/X_1*50;
X_5:=CROSS(X_4,3);
X_L1:=(H-L)/L*100;
X_L2:=REF(X_L1,1) ;
X_L3:=REF(X_L1,2);
X_L4:=X_L2-X_L3;
X_L5:=X_L2+X_L4;
X_L6:=(C/REF(C,1)-1)>X_L5 AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) ;
X_L7:=COUNT(X_L6,5)>0;
X_L8:=REF(COUNT(C>O,3)>=3,1)=0;
X_L9:=COUNT(O=H,5)=0;
抓妖:涨停2 AND X_5 AND X_L7 AND L*0.99<=EMA(CLOSE,8) AND C/REF(C,1)>1.03 AND X_L8 AND X_L9 AND C>O,COLORRED ;