VAR0:=CODELIKE('60')||CODELIKE('00')||CODELIKE('30');
VAR1:=CLOSE/REF(CLOSE,1)>1.095 AND HIGH=OPEN AND LOW=HIGH;
VAR2:=NOT(VAR1) OR VAR1=0;
VAR3:=IF(NAMELIKE(3833) OR NAMELIKE(3834),0,1);
VAR4:=DYNAINFO(4)>0;VAR5:=VAR3 AND VAR4 AND VAR2;
VAR6:=EMA(CLOSE,9);VAR7:=(CLOSE+OPEN)/2;
VAR8:=MA(CLOSE,3);VAR9:=MA(CLOSE,2*3);
VAR10:=MA(CLOSE,3*3);VAR11:=MA(CLOSE,4*3);
VAR12:=MA((VAR8+VAR9+VAR10+VAR11)/4,5);
VAR13:=EMA(VAR6*1.14,5);
VAR14:=(EMA(VAR7,3)+EMA(VAR7,6)+EMA(VAR7,12)+EMA(VAR7,24))/4;
VAR15:=EMA(EMA(EMA(CLOSE,2),2),2);
ZF:=C/REF(C,1)<1.05;
VAR16:=MA(VAR15,13)*0.999;VAR17:=EMA(CLOSE,3);
半路抓龙:crOSS(VAR17,VAR13) AND VAR5 AND ZF AND C>O AND VAR0 COLORRED,LINETHICK3;
量能异动1:=vol/CAPITAL;
量能异动2:=VOL/700000000;
量能异动3:=IF(量能异动1=0,量能异动2,量能异动1);
量价突破:=C;
量能异动4:=1.1*(MAX(HIGH,REF(量价突破,1))/MIN(LOW,REF(量价突破,1))-1);
量能异动5:=2.5*MAX(量能异动3,量能异动4);
量能异动6:=DMA(量价突破,量能异动5);
量能异动7:=SMA(20*(量能异动6/REF(量能异动6,1)-1),2,1);
量能异动8:=EMA(量能异动7,2);
量能异动A:=0.24;
量能异动B:=量价突破>=REF(量价突破,1);
牛:= IF(量能异动7>量能异动A AND 量能异动8>=0.005 AND 量能异动B,1,0);
疯牛:=crOSS(牛,0.5) AND COUNT(牛>0.5,10)=1;
QB:="kdj.J"-REF("kdJ.J",1)>30 AND C/REF(C,1)>1.043 AND "macd.MACD">0 AND "MACD.DEA">0;
潜龙:=C/REF(C,1)>1.048 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
捉妖:=FILTER(潜龙,28)*100 AND L>REF(C,1)*0.93;
XG1:=QB OR 捉妖 AND 疯牛;
涨幅:=9;
跨度:=10;
K游资突破B1:=C/REF(C,1)>1+0.01*涨幅;
KCCC2:=EXIST(C/REF(C,1)>1+0.01*涨幅,跨度);
K游资突破B3:=C/REF(C,1)>1+0.01*涨幅;
超资:=IF(K游资突破B1+KCCC2+K游资突破B3=3,1,0);
CC:=(H-C)/(C-O)< 0.33;
DD:=(C/REF(C,1)-1)>=0.0502 AND C>REF(C,1) AND (O-L)/(C-O)>=1.48 AND L< REF(L,1) AND L< REF(L,2);
EE:=(C/REF(C,1)-1)>=0.08;
量价潜伏:=VOL>REF(VOL,1)*1.9 AND C>REF(C,1) AND C/REF(C,1)-1>=0.049 AND CC;
游资突破:=(C/REF(C,1)-1)>=0.0502 AND C>REF(C,1) AND V>REF(V,1) AND VOL>REF(VOL,1)*2.5 AND CC;
异动选股:=IF(FILTER(量价潜伏 OR 游资突破 OR DD OR EE,34),1,0) AND 超资;
XG: XG1 OR 异动选股;

