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.
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.
- Should you please explain a little more.Not without knowing what your question is. There are no mind readers here.
- Period() function returns the number of minutes of the current chart-period, doesn't it ?Yes, RTFM.
- 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.
- Where have I to place this function in my code ?You place it where you need the value.
- 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"

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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