I am trading with TDAmeritrade, and it seems like there is a delay in cancelling stop orders.
Here is how the trade is made
1. submit a buy order
2. buy order filled -> submit a stop loss order
3. when exit signal is hit, cancel the stop order
4. submits a sell order.
When I look at the order status in TDAmeritrade, I see that the sell order executed before I cancel the stop order, so it rejected the sell order. However, the sell order was eventually executed somehow.
So here is what I see in TDAmeritrade
1. buy order filled
2. submitted a stop loss order
3. reject a sell order due to not enough position to sell
4. cancel the stop loss order
5. execute the sell order
As you can see, it seems like the sell order was made prior to the cancel stoploss order, thus causing an error, and causing the strategy to exit.
How can I deal with this? I was thinking about cancelling the stoploss order first, and only submit a sell order after I receive the confirm of the cancel. However, is that the only way to deal with this?
Comment