VAR2:=REF(LOW,1);
VAR3:=SMA(Abs(LOW-VAR2),3,1)/Sma(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(LLV(LOW,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR12:=(CLOSE-LLV(LOW,40))/LLV(LOW,40)*100;
建仓吸筹:=IF(VAR8,VAR8,1);
主力线:=(CLOSE-MA(LLV(LOW,40),40))/MA(LLV(LOW,40),40)*100;
M1:=MA(C,5); M2:=MA(C,10);
M3:=MA(C,20); M4:=MA(C,30);
最大值:=MAX(MAX(M1,M2),MAX(M3,M4));
最小值:=MIN(MIN(M1,M2),MIN(M3,M4));
VAR13:=BArslAst(L<=最小值 AND C>=最大值)=0;
VAR14:=VAR12>VAR13 AND 主力线>VAR13;
XG:crOSS(VAR12,建仓吸筹) AND CROSS(主力线,建仓吸筹) AND VAR14;