I had many problems using time as a variable and I was looking for a way to use variables bars
thank you, work!
Why not simply using something like this :
thank you bro!
I was looking for the same thing.
God bless you
Thanks Leonard, really helpful.
Noticed a few issues when working with iHigh, iLow and iClose directy after so added a quick Sleep(10000) after calling.
static datetime prevTime = 0;
if(CopyTime(Symbol(), Period(), 0, 1, lastTime) == 1 && prevTime != lastTime)
prevTime = lastTime;