NewCoder47:
Use the search . . . this subject has been discussed many times.Hey Guys,
I am trying to identify some code which will allow me to test once per bar. For example, running an if() statement at the start of a new bar.
One in which you can select a specific time frame rather than what the time frame is currently operating on.
Any ideas? I am stumped, its late and I cant find much in the directory of functions.
In essence, check the time of bar 1, if it is different to what you remember you have a new bar.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hey Guys,
I am trying to identify some code which will allow me to test once per bar. For example, running an if() statement at the start of a new bar.
One in which you can select a specific time frame rather than what the time frame is currently operating on.
Any ideas? I am stumped, its late and I cant find much in the directory of functions.
Thanks in advance.