X_1:=1;
X_2:=1;
X_3:=REF((LOW+OPEN+CLOSE+HIGH)/4,1)*X_2;
X_4:=SMA(Abs(LOW-X_3),13,1)/SMA(MAX(LOW-X_3,0),10,1)*X_2;
X_5:=EMA(X_4,10)*X_2;
X_6:=LLV(LOW,33)*X_2;
X_7:=EMA(IF(LOW<=X_6,X_5,0),3)*X_2;
主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)*X_2;
主力入场:=IF(X_7>REF(X_7,1),X_7,0)*X_2;
XG:REF(主力入场>1,1) AND 主力持仓>REF(主力持仓,1) AND REF(主力持仓,1)>REF(主力持仓,2) AND 主力入场>10;