Ask for experience on Backtesting

 

Dear all,

I have an EA that can both trade on 1M & 5M.

When I set the back test on 5M, the test seems still to run on 1M bars, not on the 5M bars as expected.

And the results (on 1M & 5M tests) are not much different.

Is there a way to let the test run on the correct period as selected at the settings ?

Thanks for every help

 
Sounds like you have Period_M1 hard-coded. If that's the case then try using just Period() instead.
 
ubzen:
Sounds like you have Period_M1 hard-coded. If that's the case then try using just Period() instead.

Should you please explain a little more.

Period() function returns the number of minutes of the current chart-period, doesn't it ?

How will I use this function in my code, does it take effect ?

Where have I to place this function in my code ?

----------------------------------------------------

Or should anyone please tell me how to download/convert/import "light coded" Period data ?

This case is so difficult to me. Please instruct me as clear as possible.

Thanks for help.

 
  1. Should you please explain a little more.
    Not without knowing what your question is. There are no mind readers here.
  2. Period() function returns the number of minutes of the current chart-period, doesn't it ?
    Yes, RTFM.

  3. How will I use this function in my code, does it take effect ?
    There are no mind readers here. We don't know what you want to do with the function value.
  4. Where have I to place this function in my code ?
    You place it where you need the value.
  5. Or should anyone please tell me how to download/convert/import "light coded" Period data ?
    There are no mind readers here. What the heck is a "light coded"
Reason: