VAR1:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3);
VAR2:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;
K:=SMA(VAR2,5,1);
D:=MA(K,7);
AA:=C>MA(C,10);
主力:=BARSLASTCOUNT((K-D>0) AND VAR1>20 AND VAR1< 80)=1;
XG:=C>O OR (C>REF(C,1) AND C< O);
选股:主力 AND AA AND XG;