你好楼主,我仔细分析了下您这要求可够苛刻的,满足条件的票不会太多,个人设计的选股公式如下:aa:=(hhv(close,120)-llv(close,120))/closecc and cc>dd;hh:=c=h and c>=hhv(h,60);aa and ff and hh; 说明一下我的意思:120日内股价在25%箱体内横向运动,近期趋势向上,今天股价收盘突破箱顶!选择的箱顶是60日内最高...
a1:=barslast(c/ref(c,1)>=1.098);t1:=count(l>=ref(l,a1),a1)>=a1;t2:=count(h<=ref(h,a1),a1)<=(a1-1);t3:=longcross(c,ref(c,a1),a1) and c>=o;xg:t1 and t2 and t3;