V5:=MA(V,5);
V10:=MA(V,10);
堆量突破1:=V>REF(HHV(V,2),1) AND RANGE(V5,V10,V) AND UPNDAY(V5,2) AND UPNDAY(V10,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);