The log file shows ALL the details of ALL 6 strategies I had running in Cash and Sim accounts, which is pretty confusing to look at, so I'm just attaching an image of the Order file for this particular strategy, which seems to have enough information for a diagnosis.
Questions:
- Is my interpretation correct and does it mean that I need to include a bit of code to cancel the Stop order before submitting the Exit order? If so, any examples, pointers?
- MBT's specific reason for rejecting my order was "insufficient buying power." Does this mean that this order would NOT be rejected if my account did have sufficient buying power? That would be disastrous if it resulted in an unintended short position while I was asleep.
- Ninja's fail safe mechanism (shutting down the strategy and then trying to close any open position) worked well in this case, but apparently I can't always count on that. So what's the best way to ensure that such a thing will never happpen again in future?
Comment