合并以下条件选股公: (1)5日倾角: X:(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>60; (2)5日均线: COUNT(MA(C,5)>=REF(MA(C,5),1),1)=1; (3)30日均线: MA30:=MA(C,30); A:=COUNT(H/REF(C,1)>1.056,100); MA30>REF(MA30,1) AND A>1; (4)60日均线: COUNT(MA(C,60)>REF(MA(C,60),1),5)>3 (5)5日上穿: cross(ma(c,5),ma(c,60));
股旁网解答:
X:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>60;
XG1:=COUNT(MA(C,5)>=REF(MA(C,5),1),1)=1;
MA30:=MA(C,30);
A:=COUNT(H/REF(C,1)>1.056,100);
XG2:=MA30>REF(MA30,1) AND A>1;
XG3:=COUNT(MA(C,60)>REF(MA(C,60),1),5)>3;
XG4:=cross(ma(c,5),ma(c,60));
XG: X AND XG1 AND XG2 AND XG3 AND XG4;