1) Entered 1 x long /ES contract at 5000, bracket orders at 5005 and 4995.
2) Broker daily loss limit: $100 more to go
3) Price goes to 4998, account is down $100 and hit the daily loss limit. Broker issues a cancel all orders and flatten. Account goes into liquidation mode (unable to trade anymore).
4) To the Ninjascript strategy, the position size is still 1 x long when the actual value should be 0. Events from #3 does not update this value within the strategy.
What is a good way to deal with this discrepancy ? Should I try to listen to event from #3 and exit my strategy straight away ? The broker I am using is Tradovate if that is helpful.

Comment