tgt123 Posted May 7, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
tgt123 Posted May 7, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
igogo Posted May 7, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
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.