N:=200;
MA60:=MA(C,60);
MA120:=MA(C,120);
MA200:=MA(C,200);
MAN:=MA(C,N);
MA60JD:=ATAN((MA60/REF(MA60,1)-1)*100)*180/3.1416;
MA120JD:=ATAN((MA120/REF(MA120,1)-1)*100)*180/3.1416;
MA200JD:=ATAN((MA200/REF(MA200,1)-1)*100)*180/3.1416;
AA:=MA60>MA120 AND MA120>MA200; {中长期均线多头排列。}
BB:=MA120JD>0 AND MA200JD>0; {长期组均线方向向上。}
CC:=MA120/MA200 < 1.02; {尽量保证所选出的股票处于底部。}
DD:=C>MAN; {回调而不破位。}
EE:=MIN(O,C)/MAN<1.05;
XG:AA AND BB AND CC AND DD AND EE;