VAR1B:=(2*CLOSE+HIGH+LOW)/4;
VAR2B:=LLV(LOW,5);
VAR3B:=HHV(HIGH,5);
VAR4B:=EMA((VAR1B-VAR2B)/(VAR3B-VAR2B)*100,5);
MA1:=MA(VAR4B,2); 买1:=IF(VAR4B<=MA1,0,1);
T1:= MA1<40 AND 买1<1 ;
VAR1A:=(2*CLOSE+HIGH+LOW)/4;
VAR2A:=LLV(LOW,34); VAR3A:=HHV(HIGH,34);
VAR4A:=EMA((VAR1A-VAR2A)/(VAR3A-VAR2A)*100,8);
涨:=VAR4A; T2:= 涨>50 ; 股池:=T1 AND T2;
VAR1AA:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2AA:=SMA(VAR1AA,9,1)+100;
VAR3AA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4AA:=SMA(VAR3AA,3,1); {}
VAR5AA:=SMA(VAR4AA,3,1)+100; VAR6AA:=VAR5AA-VAR2AA;
买3:=IF(VAR6AA>45,VAR6AA-45,0);
T3:=IF((买3>REF(买3,1)) AND (REF(买3,1)<REF(买3,2)),1,0);
T4:=(涨>REF(涨,1))AND REF(涨,1)<REF(涨,2);
XG:(股池<1) AND (REF(股池,1)>0) AND T3 AND T4 ;