CTA:=MA(V,5);
CTA1:=MA(V,10);
堆量突破1:=V>REF(HHV(V,2),1) AND RANGE(CTA,CTA1,V) AND UPNDAY(CTA,2) AND UPNDAY(CTA1,2);
堆量突破2:=H>REF(HHV(H,2),1);
龙年抓牛:=MAX(C,O);
堆量突破3:=龙年抓牛>REF(HHV(龙年抓牛,2),1);
龙飞凤舞:=堆量突破1 AND 堆量突破2 AND 堆量突破3;
堆量突破5:=BARSLAST(龙飞凤舞=1);
堆量突破6:=REF(REF(H,1),堆量突破5);
龙牛起飞:=IF(龙飞凤舞,0,IF(C< 堆量突破6,1,0));
主力共振:=REF(HHV(H,堆量突破5+1),BARSLAST(龙牛起飞));
XG:IF(C>主力共振,IF(REF(龙年抓牛< 主力共振,1),1,0),0);
量价突破:=C;量能异动:=V;前高突破:=H;
N3:=BARSLAST(crOSS(C,MA(C,20)));
N4:=BARSLAST(CROSS(MA(C,20),C));
AA1:=IF(N3<N4,N3+1,0);
BB1:=(C-REF(C,AA1))/REF(C,AA1)*100;
Q量价S:=NOT(CODELIKE('4'));
QKC:=NOT(CODELIKE('688'));
QST:=IF(NAMELIKE('S'),0,1);
Q量价量价:=IF(NAMELIKE('*'),0,1);
QBJ:=NOT(CODELIKE('8'));
DIFF:= EMA(量价突破,9) - EMA(量价突破,26);DEA:= EMA(DIFF,12);macd:= 2*(DIFF-DEA);
ZC:=50*(IF(MACD>REF(MACD,1) AND REF(MACD,1)>0 AND REF(MACD,2)>REF(MACD,1),0.2,0));
TT量价D:=Q量价S AND QST AND QKC AND Q量价量价 AND QBJ;
竞价牛股:=CROSS(BB1,7) AND C/REF(C,1)>1.01;
XG:竞价牛股>0 AND TT量价D AND MACD.MACD>0 AND ZC;

