由于5日均线和5周均线不是同一周期的,并且并不是每个周的k线都是5个交易日,所以没法进行日周之间的天数换算,你还是做两次选股吧。在打开选股器后,在选股器的左边有一个选股周期的调节器,系统默认的是日线周期。左下角有一个选股范围调节器,默认的是“沪a深a”。先用这个公式在日线周期选股:macd.macd<0 and macd.macd>ref(macd.macd,1) and cross(...
(max(ma(c,60),ma(c,120))-min(ma(c,60),ma(c,120)))/max(ma(c,60),ma(c,120))<0.025 and ma(c,120)>=ref(hhv(ma(c,120),20),1) and c>ma(c,20) and c<ref(c,1)*1.05 and count(cross(ma(c,20),ma(c,60)...
参数 m {2 200 5}:=(3*close+low+open+high)/6;:=(20*+19*(,1)+18*(mid,2)+17*(mid,3)+16*ref(mid,4)+15*ref(mid,5)+14*ref(mid,6)+13*ref(mid,7)+12*ref(mid,8)+11*ref(mid,9)+10*ref(mid,10)+9*ref(mid,11)+8*r...
a1:=ma(c,5);a2:=ma(c,10);a3:=ma(c,20);a4:=ma(c,30);t1:=cross(a1,a2);t2:=cross(a3,a4);xg:t1 and t2;参考资料:http://tieba.baidu.com/f?kw=%b9%c9%c6%b1%b9%ab%ca%bd%d7%a8%bc%d2