There is currently a bug with Bars() function when used as in your code. This is present from build 868 (858?) and I reported it to ServiceDesk but don't get a reply.
So I suggest you to report it also to ServiceDesk.
There is currently a bug with Bars() function when used as in your code. This is present from build 868 (858?) and I reported it to ServiceDesk but don't get a reply.
So I suggest you to report it also to ServiceDesk.
Thank you for letting me know. Wish I had asked earlier instead of stubbornly trying every combination i could think of to make it work! I can't find the service desk though, I just get to the teamwox site and can't see where to submit.
Do you have an alternative for an equivalent to iBarShift by any chance if this method is not working?
Thank you for letting me know. Wish I had asked earlier instead of stubbornly trying every combination i could think of to make it work! I can't find the service desk though, I just get to the teamwox site and can't see where to submit.
Do you have an alternative for an equivalent to iBarShift by any chance if this method is not working?
Get in touch with developers using Service Desk! - MQL5 forum
About an alternative, it depends on what's your goal.
Get in touch with developers using Service Desk! - MQL5 forum
About an alternative, it depends on what's your goal.
Have reported the error now, and found an alternative implementation of iBarShift which does the job for now. Thanks again for your help.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
No matter what I do I can't seem to get Bars to return the number of bars between two times. Please could someone tell me what is wrong with the code below. This is run as a script just to test.