ma10:=ma(c,10);{均线多头排列}t1:=ma10>ma(c,5) and ma(c,25)>ma10;{股价回调10日线不破}t2:=ref(c,2)>ref(c,1) and between(ref(c,1),ma10,1.02*ma10) and c>ref(c,1);{预警选股}t1 and t2;
m3:=(c,3);m5:=(c,5);m13:=(c,13);xg:(m3,m5) and m5>m13;以上是当前3日金叉5日,并且当前3日5日在13日之上(其它模糊)。以下是在以上的条件上,规定当前3日线是从13以下上穿上来的,如果想规定5日也是同时从13日以下上穿上来,可以在末尾一句分号的后面加上。“ and (m5m13 and (m3m13 (m3>m13 and m5>m13,n)...
a:=ma(c,10)>ma(c,20)and ma(c,20)>ma(c,60);a1:=ma(c,20)>ref(ma(c,20),1)and ma(c,60)>ref(ma(c,60),1);a2:=cross(ma(c,5),ma(c,10));xg:a and a1 and a2;经测试,选股结果符合你的要求。股票公式专家团为你解答,希望能帮到你,祝投资顺利。
ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20) and ma(c,20)>ma(c,30) and ma(c,5)>ref(ma(c,5),1) and 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 ...