MA14:=MA(C,14);
{均线多头排列}
T1:=MA14>MA(C,5) AND MA(C,25)>MA14;
{股价回调14日线不破}
T2:=REF(C,2)>REF(C,1) AND BETWEEN(REF(C,1),MA14,1.02*MA14) AND C>REF(C,1);
{预警选股}
T1 AND T2;
或者这么写
a1:=(close-ma(c,14))/ma(c,14)*100>0;
a2:=COUNT(a1,4)>=4;
a3:=abs(c-ma(c,14))/ma(c,14)<0.005;
a4:=c-ref(c,1)<0;
a5:=c>=ma(c,14);
a2 and a3 and a4 and a5;