平台突破:=C;
STICKLINE(平台突破,0,80,4,1),COLOR000040;
STICKLINE(平台突破,0,60,4,1),COLOR000040;
STICKLINE(平台突破,0,40,4,1),COLOR000040;
STICKLINE(平台突破,0,20,4,1),COLOR000040;
ZT:=(C-REF(C,1))/REF(C,1)*100>9.5,COLORWHITE,NODRAW;
擒牛:=EMA(EMA(平台突破,30),9),NODRAW;
捉妖突破:=EMA(EMA(INDEXC,45),9),NODRAW;
AA:=平台突破/擒牛*100,NODRAW;
主力筹码:=INDEXC/捉妖突破*100,NODRAW;
GGQD:=(AA-主力筹码),NODRAW;
N1:=REF(BARSLAST((C-REF(C,1))/REF(C,1)*100>9.6 AND C=H),1)+1,NODRAW;
擒牛捉妖突破:=IF(COUNT(CROSS(MA(C,15),MA(C,5)),N1)=0 AND HHV(GGQD,20)>23 AND MA(C,5)>MA(C,30) AND GGQD< HHV(GGQD,30) AND GGQD>5 AND (C-REF(C,1))/REF(C,1)*100>9.6 AND C=H,-9,0),COLORBLUE,NODRAW;
VAR1 :=(平台突破-MA(平台突破,6))/MA(平台突破,6)*100,NODRAW;
VAR2 :=(平台突破-MA(平台突破,24))/MA(平台突破,24)*100,NODRAW;
VAR3:=(VAR1-VAR2),NODRAW;
VAR6:=LLV(VAR1,3),NODRAW;
MA5:=MA(C,5),NODRAW;
MVAR90:=MA(C,10),NODRAW;
MA20:=MA(C,20) ,NODRAW;
MA30:=MA(C,30),NODRAW;
MA60:=MA(C,34),NODRAW;
VAR5:=(MA5-MVAR90)/MVAR90*100,NODRAW;
VAR7:=(MVAR90-MA20)/MVAR90*100,NODRAW;
VAR8:=(MA20-MA60)/MVAR90*100,NODRAW;
TY:=C,NODRAW;{公式网WWW.GPXIAZAI.COM}
VAR9:=REF(TY,20)=HHV(TY,2*20+1);
VAR10:=FILTER(VAR9,20);
C1:=(VAR10,20+1);
HD:=FILTER(C1,20),NODRAW;
A:=REF(H,BARSLAST(HD)),NODRAW;
AA主力筹码 := REF(平台突破,1),NODRAW;
RSI1:=SMA(MAX(平台突破-AA主力筹码,0),5,1)/SMA(ABS(平台突破-AA主力筹码),5,1)*100,NODRAW;
突破捉妖:=IF(CROSS(C,A) AND ZT>0,-4,0),COLORYELLOW;
拉升捉妖:=IF(VAR5>1 AND VAR7>3 AND VAR8>0 AND ZT>0,6,0),COLORRED,NODRAW;
逼空捉妖A:=IF(ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80,4,0),COLORCYAN,NODRAW;
逼空捉妖B:=IF(GGQD>15 AND ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80 AND REF(GGQD>15 AND ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80,1)=0,4,0),COLORLIRED;
超跌捉妖:=IF(ZT>0 AND VAR6< 0 AND VAR3>5 AND MA(C,5)< MA(C,60),-2,0),COLORGREEN,NODRAW;
STICKLINE(突破捉妖,64,77,3,0),COLORFF0080;
DRAWTEXT(ISLASTBAR=1,70,' 突破捉妖'),COLOR0080FF;
STICKLINE(拉升捉妖,44,57,3,0),COLORFF00FF;
DRAWTEXT(ISLASTBAR=1,50,' 拉升捉妖'),COLOR00FFFF;
STICKLINE(逼空捉妖A OR 逼空捉妖B,24,37,3,0),COLOR0000FF;
DRAWTEXT(ISLASTBAR=1,30,' 逼空捉妖'),COLORFFFFFF;
STICKLINE(超跌捉妖,4,17,3,0),COLOR0080FF;
DRAWTEXT(ISLASTBAR=1,10,' 超跌捉妖'),COLORFF0080;