{今日价过5日均价.今日量过5日均量.macd的dif向上.kd金叉.今日价在20日均线上的选股}xg:cross(c,ma(c,5)) and cross(v,ma(v,5)) and macd.dif>ref(macd.dif,1) and cross(kdj.j,kdj.d) and c>ma(c,20);
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