主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
主筹:=WINNER(C)*100,NODRAW;
散筹:=(WINNER(C*1.1)-WINNER(C*0.9))*100;
WR:=100*(HHV(HIGH,90)-CLOSE)/(HHV(HIGH,90)-LLV(LOW,90));
XG1:CROSS(主力持仓,散筹) AND CROSS(80,WR);
XG2:CROSS(主力持仓,50) AND CROSS(80,WR);