1. I have a strategy that runs on range bars with COBC=true. When exactly is OnBarUpdate() called ? is it run on the first tick of the new bar, for the old bar ?
2. I need this strategy to run with COBC=false and get some info every tick, yet I do not want it to go through all the end of bar calculations. How do I do that programatically ? Should I use "FirstBarOfTick" and if true go through the end-of-bar-calculations, else go trough tick calculations ? Is there a better way ?
3. If I need this strategy to read OnMarketUpdate event, how can I programatically know if it is the start/end of a range bar ? The documentation for FirstTickOfBar says it is only available in OnBarUpdate().
Thanks

Comment