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?
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!
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)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now