tgt123 Posted May 7, 2009 Report Posted May 7, 2009 Re: [req] Enterra Forex Star EA Full-Source Code Even with MA_AngleZeroSigma.ex4 as well, still cant backtest on 5 digit decimal broker like Alpari? Quote
tgt123 Posted May 7, 2009 Report Posted May 7, 2009 Re: [req] Enterra Forex Star EA Full-Source Code Even with MA_AngleZeroSigma.ex4 as well, still cant backtest on 5 digit decimal broker like Alpari? Problem solved! Quote
igogo Posted May 7, 2009 Report Posted May 7, 2009 Re: [req] Enterra Forex Star EA Full-Source Code This is indeed not Enterra or Enterra Forex star, but it works on 5 pairs and this is just fine for me as a multipair scalper. What I wanted to tell you, is that there is a bug that I fixed for myself and wanted to share: in function int SecurProfit() { bool li_ret_0 = FALSE; if (OrderProfit() > TickValue() * GetLots() * TP) li_ret_0 = TRUE; return (li_ret_0); } order profit is checked against GetLots(), not order lots, which can be two quite different numbers. I in fact moved this comparison to CloseAll funciton, and it now reads as below where there was call to SecurProfit: if (OrderProfit() > TickValue() * OrderLots() * TP) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.