I want to make sure that I am understanding the documentation correctly with respect to SetStopLoss and its life cycle.
https://ninjatrader.com/support/help...d_approach.htm
On the above page it states the following:
- By default, orders submitted via Entry() and Exit() methods automatically cancel at the end of a bar if not re-submitted
Is SetStopLoss() automatically cancel at the end of a bar is not re-submitted?
In other words, there is no isLiveUntilCancelled parameter for SetStopLoss().
Therefore, if I used something similar to the following code, is it necessary to resubmit the SetStopLoss() for every OnBarUpdate() that is called on the primary series for a multi-time frame strategy?
protected override void OnExecutionUpdate(Execution execution, string executionId, double price, int quantity, MarketPosition marketPosition, string orderId, DateTime time) { if (execution.Order.OrderState == OrderState.Filled) { stopOrder = SetStopLoss(CalculationMode.Price, someValue); } }
Comment