Is it possible to find open orders for a symbol and close them with IBD? I may have more than one symbol with open orders.
My program uses limit order to enter open or short.
If order executes, then stop order is placed
stop order is adjusted base on algorithm
IBD replaces existing stop order with new stop order (seems to work well)
stop order executes
I want to do
If order executes, the stop order is place plus a limited order based on custom ATR
both orders will be adjusted based on algorithm.
IBD will need to replace both orders as algorithm adjust stop and limit price
If either order executes, then cancel the other open order
If it is not possible for this too happen, then I can use HasOpenPosition and if false, then send a cancel open orders for a symbol. I would probably want to do this anyway to ensure open order was cancelled and API or market timing did not leave in undesired state.
Given stop order works perfectly with IBD, then I can have the program cancel a limit order and then place a new limit order if IBD can not handle automatic replacements of limit orders.
I still need to be able to cancel open orders if no position is open. Ideally within 2 trading bars.
My program uses limit order to enter open or short.
If order executes, then stop order is placed
stop order is adjusted base on algorithm
IBD replaces existing stop order with new stop order (seems to work well)
stop order executes
I want to do
If order executes, the stop order is place plus a limited order based on custom ATR
both orders will be adjusted based on algorithm.
IBD will need to replace both orders as algorithm adjust stop and limit price
If either order executes, then cancel the other open order
If it is not possible for this too happen, then I can use HasOpenPosition and if false, then send a cancel open orders for a symbol. I would probably want to do this anyway to ensure open order was cancelled and API or market timing did not leave in undesired state.
Given stop order works perfectly with IBD, then I can have the program cancel a limit order and then place a new limit order if IBD can not handle automatic replacements of limit orders.
I still need to be able to cancel open orders if no position is open. Ideally within 2 trading bars.
Rename
Currently there are no replies yet. Please check back later.
Your Response
Post
Edit Post
Login is required