I was little clarity on how OnTick() works. I am trying to check if a new bar is forming
//////run my logic hereafter
OnTick() is run each time a tick is received, what do you want to understand ?
To detect a new bar don't rely on Bars, always use time.
To add comments, please log in or register