Discussion of article ""New Bar" Event Handler" - page 2

 
Very informative article, thank you very much
 
Thanks, the best way to detect a new bar! :)
 
In my opinion, sometimes we unnecesarily complicate stuff. For practical reasons nothing, even performance wise, will beat the system time (windows time). At the start of the next minute, or to be sure, after a few seconds, we can assume there will be a new bar for every Symbol. Say minute.. five minutes.. fifteen minutes, or whatever your timeframe. To be sure, you can check if bar time and system time are the same.

But there's no need of creating multiple instances of this class, just to check if there is a new bar, when we all actually know when a new bar will be painted.


 
Thank you, very helpful