ABC1:=EMA(EMA(CLOSE,9),9);
主筹一致:=(ABC1-REF(ABC1,1))/REF(ABC1,1)*1000;
主力筹码:=crOSS(主筹一致,0);
无庄主筹一致:=IF(主筹一致< 0,主筹一致,0),COLORWHITE;
开始主筹一致:=IF(主力筹码,5,0),LINETHICK1,COLORBROWN;
有庄主筹一致:=IF(主筹一致>REF(主筹一致,1) AND 主筹一致>0,主筹一致,1),COLORRED;
QXS:=NOT(CODELIKE('4'));
QKC:=NOT(CODELIKE('688'));
QST:=IF(NAMELIKE('S'),0,1);
QXX:=IF(NAMELIKE('*'),0,1);
QBJ:=NOT(CODELIKE('8'));
AAA:=QXS AND QST AND QKC AND QXX AND QBJ;
XG:IF(主力筹码,5,0) AND AAA;
红牛筹码:=C;
GD:=HHV(HIGH,10);
红牛擒龙:=LLV(LOW,10);
XJ:=GD*红牛擒龙;
KF:=SQRT(XJ);
C1:=C>=KF;
C2:=C< KF;
红牛突破:=C1>=C2 ;
游资量化XS:=NOT(CODELIKE('4'));
游资量化KC:=NOT(CODELIKE('688'));
游资量化ST:=IF(NAMELIKE('S'),0,1);
游资量化XX:=IF(NAMELIKE('*'),0,1);
游资量化BJ:=NOT(CODELIKE('8'));
红牛捉妖CD:=游资量化XS AND 游资量化ST AND 游资量化KC AND 游资量化XX AND 游资量化BJ;
DIF:=EMA(红牛筹码,12)-EMA(红牛筹码,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
A红牛潜龙B:=MACD>0;
红牛:=BARSLASTCOUNT(红牛突破)=1;
XG:红牛 AND 红牛捉妖CD AND A红牛潜龙B;

