Is it possible to force the update of Position.MarketPosition?
I have an algorithm that allows for re-entry immediately after exit. It appears that Position.MarketPosition is not being updated quickly enough to catch entries and exits that happen within a few seconds of each other.
For example. I start from MarketPosition.Flat. I EnterShort and immediately fire an ExitShortLimit and ExitShortStop. Shortly after the stop is hit. The logic then immediately does a short reentry. Then a few seconds later I ping Position.MarketPosition shows that I am short two contracts. Apparently the stop Position.MarketPosition did not "see" the stop being hit.
So. triggers the update of Position.MarketPosition?
Comment