aa:cross(ma(close,5),ma(close,20));//表示5日均线与20日均线交金**b:cross(ma(close,10),ma(close,20));//表示10日均线与20日均线交金叉选股:aa and bb;或者直接选股:cross(ma(close,5),ma(close,20)) and cross(ma(close,10),ma(close,20));
朋友,以下是你要的选股公式: aa:=ma(c,5);bb:=ma(c,10);cc:=count(aa>bb,5)=5 and count(aa(aa,1),3)>=1;dd:=count(aa/bb>0.98,3)>=1;ee:=aa-bb;ee>ref(ee,1)and dd and cc;我试选了下,得到的股票如图所示。
var1:=ma(c,10)>ma(c,20) and ma(c,20)>ma(c,30) and ma(c,30)>ma(c,60);var2:=ma(c,10)>ref(ma(c,10),1) and ma(c,20)>ref(ma(c,20),1) and ma(c,30)>ref(ma(c,30),1) and ma(c,60)>ref(ma(c,...