In my case, at the end of the day, when the strategies are shut down, it doesn't remember the last position. So, when the strategies are added to the charts the next morning, the initial position is empty (rather than 2S or 2L, etc.)
I split my long/short strategy into two strategies: MyStrategyLong and MyStrategyShort
MyStrategyLong executes long orders and MyStrategyShort executes short orders.
There's a text file that contains an integer to indicate the current position. It is either -2 | 0 | 2
My strategy trades a fixed 2 contracts per long/short side.
Each strategy reads the text file. Depending the current position and the strategy signals, it will or will not execute orders. After each order is executed, it writes the new current position. The position in each strategy will increase during the day, each strategy never gets a realized PnL but my brokerage account has realized PnL.
So far, it has worked for the past two days.
It's not ideal. There's still a risk that my client-side current position is different than the brokerage-side current position. Otherwise, the trades have executed as expected with the correct positions on both sides (client and server).
I couldn't sit around waiting for NinjaTrader to fix this problem. I need to make money so this is the solution I came up with.
I join others in requesting NinjaTrader to fix this.



Comment