My order of operations are:
- SubmitOrderUnmanaged(....my entry order....)
- OnOrderUpdate is called with OrderState.Filled
- Immediately look to place stoploss by looking at Position.MarketPosition
The problem is that Position.MarketPosition is returning MarketPosition.Flat and thus the stop is not being placed immediately. Is there any delay in the Strategy.Position being updated? I can simply look at the order itself but wondering why this field is not updated as I rely on it in several other places.
Comment