一:編寫一個今日漲幅大于5%,并且在30個交易日內(nèi)出現(xiàn)過一次出水芙蓉 A1:=MA(C,13); A2:=MA(C,34); A3:=MA(C,55); (定義3條均線) B1:=O<A1 AND O<A2 AND O<A3; (開盤價在均線下方) B2:=C>A1 AND C>A2 AND C>A3; (收盤價在均線上方) CON:=B1 AND B2; (同時滿足) XG:BARSLAST(CON)>29 AND C/REF(C,1)>1.05; (選股條件) 二:編寫一個5日,,10日,,20日均線多頭排列,并且維持在5天以上,。 A1:=MA(C,5); BB:=MA(C,10); A3:=MA(C,20); CC:=MA(C,60); (定義4條均線) AA:=A1>BB AND BB>A3 AND A3>CC; (均線排列) XG:COUNT(AA,5)=5; (選出符合條件)
A1:=O>REF(C,1) AND C/REF(C,1)>1.01 AND (HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.67; (定義高開 ,定義今天上漲1個點以上 定義上引線的比例) A2:=V/MA(REF(V,1),5); (成交量5日均線) A3:=A2>=1 AND A2<=3; (A2取值范圍) A4:=10000*V/FINANCE(7)<=4; (換手率小于4% 防止出貨) 四:編寫一個單陽不破的選股(當(dāng)天上漲5% ,,后面4-6天不破大陽的最低點)A1:=BARSLAST(C/REF(C,1)>1.05 AND O<C); (距離上次大陽線的天數(shù)) B1:=REF(L,A1); (A1天前的最低價) C1:=LLV(C,A1); (A1天內(nèi)的收盤價最低值) XG:A1>3 AND A1<7 AND C1>B1; (選股) |
|