If I have CalculateOnBarClose = false i.e. I am running OnBarUpdate each tick, what happens in code where you have references to the bar close/high/low values when the bar hasn't closed yet? Is the close/high/low on the partial bar given or that of the preceding bar?
The reason I am asking is that I have a need to run one method on a bar close and another method that needs to be updated on each tick. Having CalculateOnBarClose = false is inefficient in the first instance. I saw your reference to using FirstTickOfBar to separate out the two although (and I know I am nit-picking in any liquid market) this is not ideal since you have a delay between the closing bar and the first tick of the next bar which (theoretically) might not happen for a while.
Thanks for the help
regards
Comment