The Strategy went short 4 contracts soon after it was started, prices dropped, it had a profit, and I thought Great - its nice to have the first trade be a winner. Then a few minutes later I noticed NT was showing $4000 Intraday margin (instead of 4 * $500 = $2000) and Chart Trader was showing the position as Short 8 contracts. My Strategy has button that can be clicked to cancel all open orders, exit any existing position with a Market Order, and stop trading. I clicked that button. Almost instantly Chart Trader showed the position was Flat, the displayed Intraday margin became $0.00, and the correct profit amount from being Short 4 contracts (not 8) showed in the PnL field.
The log shows the initial 4-contract entry order to go Short had a split fill, with a Quantity 1 execution followed within the same second by a Quantity 3 execution. No other executions are shown until I clicked the button to exit and stop trading. The Market Buy Order to exit also had a split fill with a Quantity 2 execution followed within the same second by another Quantity 2 execution. It is clear from the log records that 8 contracts were not sold, so why did NT show me Short 8 contracts?
I am using NinjaTrader Version 8.0.24.3 with a NinjaTrader Continuum connection.
Comment