Anyone please!?
bool NewBar() { static datetime LastTime = 0; bool ret = Time[0] > LastTime && LastTime > 0; LastTime = Time[0]; return(ret); }
Maybe it's something in iTime(). Not sure.
I use SERIES_LASTBAR_DATE in my comparison, not iTime().

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
Suppose i start some EA in 1h time frame, and then some where in the code the isNewBar() function gets called, it will Print 28-12-2018 22:00:00 for instance...
And then i change the time frame to 1m and then the isNewBar() function keeps printing 28-12-2018 22:00:00
I was expecting something like 28-12-2018 22:48:00
Can please someone clear my mind?
Thank you!!!