2010年2月23日 星期二

Trading Performance v2

  1. 接續 http://funningboy.blogspot.com/2010/02/trading-performance-v1.html
  2. 這邊我們會根據使用者設定的參數做篩選的動作,根據Poluation, Generation...的condition,來篩選適當的基因.
  3. 最後再透過移動視窗法把每一季的結果交叉比對,看是否能達到我們所要的目標.
  4. 執行結果 1101.TW(台泥) EndDay 2010/02/09, test sequence 90 days Dispaly mode Indictor name : MACD Fast Length : 12 Slow Length : 26 BuyOrSell : 1 EnterTradeDate: 2009/10/02 LeaveTradeDate: 2009/10/28 EnterPrice : 37.00 LeavePrice : 35.00 Profit : 2 LifeTime : 56 Indictor name : OLDOBV Fast Length : 4 Slow Length : 24 BuyOrSell : 1 EnterTradeDate: 2009/10/06 LeaveTradeDate: 2009/10/29 EnterPrice : 36.60 LeavePrice : 34.45 Profit : 2.15 LifeTime : 45 基因解 0,9 Parents:: PARENTA,HASH(0x2490bac) PARENTB,HASH(0x1ca2ba4) Mutation:: 6 -> 2 Length:: BIASFAST,2 BIASSLOW,24 KD,8 MACDAVG,9 MACDFAST,12 MACDSLOW,26 OBVFAST,6 OBVSLOW,22 RSIFAST,5 RSISLOW,11 WRFAST,13 WRSLOW,24 Profit:: AVGPRF,1.89285714285714 BIAS,2.2 KD,0 MACD,3.05000000000001 NEWOBV,0 OLDOBV,4.2 RSI,0 TOTPRF,13.25 WR,3.8 http://sites.google.com/site/funningboy/perl_code/Ga_rst.txt?attredirects=0&d=1
  5. 結論 每種技術指標會對於市場而言,會有不同的表現,當多頭市場形成時KD反而不準.反而MACD會比較準確,所以每個指標都有其相對的市場基礎,要先行確定目前是盤整,多頭,空頭.在套用過去模擬的結果做推斷跟分析.達到降低進出市場的風險性.

沒有留言:

張貼留言