ma10:=ma(c,10);{均线多头排列}t1:=ma10>ma(c,5) and ma(c,25)>ma10;{股价回调10日线不破}t2:=ref(c,2)>ref(c,1) and between(ref(c,1),ma10,1.02*ma10) and c>ref(c,1);{预警选股}t1 and t2; 20210311
am1:=ma(c,5);am2:=ma(c,10);x:=if(am1>am2,barslast(cross(am1,am2))+1,-1);t1:=count(c>am2,x)=x;xg:t1=0 and ref(t1,1)=1 and am1>am2 and(am1-am2)/ref(hhv(am1-am2,x),1)>0.5;