BBC:=LLV(C,0);
涨幅:=C/BBC;
涨板:=C/REF(C,1)>1.095 AND C=H;
SBT1:=BARSLAST(涨板 AND REF(涨板,1) AND REF(涨板,2) AND REF(NOT(涨板),3) AND REF(COUNT(涨板,3)<1,3) );
SBT2:=BARSLAST(涨板 AND REF(涨板,1) AND REF(NOT(涨板),2) AND REF(COUNT(涨板,3)<1,2));
SB1:=REF(COUNT(C>REF(C,SBT1),SBT1)<=2,1) AND 涨幅<1.8 AND LLV(C,SBT1)>REF(L,SBT1+2) AND REF(EVERY(C<REF(C,SBT1)*1.05,SBT1+1),1);
SB2:=涨幅<1.8 AND LLV(C,SBT2)>=REF(L,SBT2+1)*0.99 AND HHV(C,SBT2)<REF(C,SBT2)*1.1;
突破线1:=IF(SB1,REF(REF(C,SBT1),1),0);
突破线2:=IF(SB2,REF(REF(C,SBT2),1),0);
突破1:=C/REF(C,1)>1.03 AND REF(SBT1>=3,2) AND REF(SBT1<=30,2) AND crOSS(C, 突破线1);
突破2:=C/REF(C,1)>1.03 AND REF(SBT2>=3,2) AND REF(SBT2<=30,2) AND CROSS(C, 突破线2);
XG:突破1 OR 突破2;