I want to give an event when Current bar is closed and create next bar.
How do I know when the current bar is closed ?
Keep track of Time in a static variable.
When it changes then you know it is a new bar. Remember to update the static variable when a new bar.
Ah.. Thank you very much!
Thank you for your answer !