AN:=10;
AA:=REF(H,AN)=HHV(H,2*AN+1);
QY:=BacKSET(AA,AN+1);
ACC:=FILTER(QY,AN) AND H=HHV(H,AN+1);
AAA1:=crOSS(BACKSET(BARSTATUS=2,SUMBARS(ACC,1)),0.5);
AB1:=CROSS(BACKSET(BARSTATUS=2,SUMBARS(ACC,2)),0.5);
HQSXG:=DRAWLINE(AB1,H,AAA1,H,1);
上突破:=CROSS(C,HQSXG) AND HQSXG>REF(HQSXG,1);
下突破:=CROSS(C,HQSXG) AND HQSXG
XG1:=上突破 OR 下突破;
获利比例:=WINNER(C)*100;
XG2:=获利比例>=0 AND (COST(95)-COST(5))/(COST(95)+COST(5))*100<=10;
XG:XG1 AND XG2;