By default, orders submitted via Entry() and Exit() methods automatically cancel at the end of a bar if not re-submitted
But within the section on "Order submission for entry and exit methods - basic operation", I see the following statement:
By default, orders are kept alive, provided they are re-submitted on each call of the OnBarUpdate() method. If an order is not re-submitted, it is then canceled.
To me these two statements are at odds with each other. I prefer to run my charts with day bars. If I'm running a strategy on a chart, then I believe that the end of a bar means at the end of the day, even if I set "Calculate = Calculate.OnPriceChange or OnEachTick. Is that correct or am I changing the bar type when I use either of those Calculate options? If I'm correct, I should be able to use IsFirstTickOfBar() within OnBarUpdate() to know when I've entered a new bar. Am I correct or off base? Are those two statements from the reference equivalent or misleading? Because I truly thought that with a day chart I can enter OnBarUpdate() throughout the day and potentially make modifications to my orders as needed. If not, I will have to rethink how I do things.

Comment