请老师编制十五日期内有过涨停,然后第一次回落到10日期线后站稳的选股公式,谢谢了!
爱约股解答:
m10:=ma(c,10);
st:=namelike('st') or namelike('*st') or namelike('sst');
c1:=ref(c,1);
zt:=1.1*c1-c<0.005 or (1.05*c1-c<0.005 and st);
ztyl:=barslast(zt);
zg:=hhv(c,ztyl+1);
zd:=llv(c,ztyl+1);
zgyl:=barslast(zg=c);
zdyl:=barslast(zd=c);
xg:ref(c,ztyl)>1.25*ref(m10,ztyl) and count(zt,15)>=1 and zd>hhv(m10,ztyl+1) and zgyl>zdyl;