In certain situations, it is possible for orders to get locked in an order state. This can happen on all types of accounts depending on how orders have been placed or moved. With simulated accounts that have been added to NinjaTrader, you can reset the account to clear these orders.
Simulated Accounts
To reset a simulated account, in the NinjaTrader Control Center, Accounts Tab, select the account that has the locked orders. Right click on this account and click “Edit Account…” and in the Properties area, click “reset” and make sure Clear History is checked, then click Yes.
Reset The Database
Resetting the database is the recommended method for removing locked orders across prop firm accounts or live accounts. It is also best for simulated accounts too. This will remove all order history across all accounts, without resetting account performance statistics. You must disconnect from all open connections prior to resetting the database.
In the Control Center, Tools Menu, select Database Management. In the Database window, select Reset DB, and make sure only Historical orders are selected, and hit the Reset button. You will also need to restart NinjaTrader for the database operation to complete.
Restart NinjaTrader
If orders continue to freeze when being placed, or if you are getting the error “Close operation failed. Operation timed out. Manually close your position”, you should restart NinjaTrader after completing the steps above, and it will resolve the issue.