1st Question: My strategy is running on 30 minutes bars, how many times is the OnBarUpdate called upon initiation (enabling) of my strategy? Whats it the logic behind that, does it call OnBarUpdate for as many historical bars as it can read?
2nd Question: Since OnBarUpdate is called a lot of time upon initiation of the strategy, it might end up entering in one of my conditions and entering the market, how can I make sure my conditions are only executed for recent bars updates in my OnBarUpdate method (for example last minute), knowing that it will be called several times during initiation?
Thank you all,
Rodrigo

Comment