It seems the position is already closed by the time the modification order is processed:
"Cancelled pending exit order, since associated position is closed,"
Strategy analyzer:
Playback:
Is there a recommended way to handle intrabar order modification so that strategy analyzer is able to process it accurately?
Additional info, i have added a tick data series and am using tick replay in the strategy analyzer.
if (BarsInProgress == 0)
{
if (Position.MarketPosition != MarketPosition.Flat && EnableBreakEven)
{
CheckBreakEven();
}
}

Comment