Say I enter some bracket limit orders in the evening for the next day. For a long, I give my entry limit price, a stop loss at a lower price, and a take profit price. Once the entry executes, the stop loss and take profit orders become active. But what if the market is already trading below the stop loss price in pre-market? In that case, I want to cancel my order as if it was left to execute, once the market opens, it would execute the limit buy order and immediately sell a market order to close the position due to the activated stop loss. How do I avoid that situation? One idea would be to add a conditional order that cancels the trade if price is less than the stop loss. But it's not clear to me how that would work based on the trigger options described here:
https://www.interactivebrokers.com/...nfiguretws/modify_the_stop_trigger_method.htm
It looks like there would be a race condition between the market executing the limit order and the conditional triggers. Which happens first? The trigger recognizes a last price or bid / ask that violates the price condition and cancels the order or the order has already executed by the market? One way around this would be to place two conditional orders, one that cancels and one that is required to be met for the order to be active. Use price condition that price is less than stop loss, cancel trade to cancel the trade. Use another condition to require that price > stop loss in order to activate the entry order. But unfortunately, the cancel or activate conditions can't be mixed -- I can't have one condition that cancels and another condition that activates. Anyhow, I imagine that others have faced this situation. Anyone have a good solution?
https://www.interactivebrokers.com/...nfiguretws/modify_the_stop_trigger_method.htm
It looks like there would be a race condition between the market executing the limit order and the conditional triggers. Which happens first? The trigger recognizes a last price or bid / ask that violates the price condition and cancels the order or the order has already executed by the market? One way around this would be to place two conditional orders, one that cancels and one that is required to be met for the order to be active. Use price condition that price is less than stop loss, cancel trade to cancel the trade. Use another condition to require that price > stop loss in order to activate the entry order. But unfortunately, the cancel or activate conditions can't be mixed -- I can't have one condition that cancels and another condition that activates. Anyhow, I imagine that others have faced this situation. Anyone have a good solution?