iTime not working as expected
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().
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!!!