1. If ANY of the stoploss orders (one for each entry) gets rejected, I want the strategy to close down all trades and cancel any pending orders. I know that if I use RealtimeErrorHandling = RealtimeErrorHandling.StopCancelClose then this is what I get.
However, I also want this:
2. If a profit target order is rejected (since maybe price moved beyond that profit target already), then I want ONLY THAT ENTRY order to close at market. I want the strategy to keep running and have the two other entries still open.
How can I do this?
Comment