When the bar opening time changes you can see that there must be a new bar.
https://www.mql5.com/en/articles/159
The "New Bar" Event Handler
- 2010.10.11
- Konstantin Gruzdev
- www.mql5.com
MQL5 programming language is capable of solving problems on a brand new level. Even those tasks, that already have such solutions, thanks to object oriented programming can rise to a higher level. In this article we take a specially simple example of checking new bar on a chart, that was transformed into rather powerful and versatile tool. What tool? Find out in this article.
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
Hi.
I'm relatively new to MQL programming. I searched for this in the Docs for some time, but I couldn't find any solution. Here's my question. I want to call some Functions everytime a new bar or candle occours on the chart. Are there any predefined functions or methods to do this?
Thanks in advance