OnBarUpdate documentation doesn't give much details about how to handle the end of the bar data, when using other options else than OnBarClose. If I understand between the lines, they way it may handled is to use IsFirstTickOfBar of the next bar to handle it. In this case +1 needs to be added to any barsAgo. Is that right? is that the case in any bar type including volume?
Could you provide a sample code to show this?

Comment