Very informative article, thank you very much
Thanks, the best way to detect a new bar! :)
In my opinion, sometimes we unnecesarily complicate stuff. For practical reasons nothing, even performance wise, will beat the system time (windows time). At the start of the next minute, or to be sure, after a few seconds, we can assume there will be a new bar for every Symbol. Say minute.. five minutes.. fifteen minutes, or whatever your timeframe. To be sure, you can check if bar time and system time are the same.
But there's no need of creating multiple instances of this class, just to check if there is a new bar, when we all actually know when a new bar will be painted.
https://www.mql5.com/en/docs/dateandtime
Live Update - For
Managing Pending Orders -
Demo Account Opening -
Thank you, very helpful
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