Is there a way in IB to put stop order and limit order and if one gets hit the order is canceled automatically. like today i placed my order on ES and placed stop and limit order and my stop was hit but limit order was still active and i had to manually cancel my limit order thanks
Yes, You can make a bracket order from the begining. Right click on you order before sending it, attach/bracket. Or, when the trade is on, create your limit and stop orders, dont send them, give them an OCA (One Cancells All) group name and then send both orders. You have to add a column in TWS for the OCA group or enter it in the order ticket window. For details, RTFM (go to IB website, trading/order type).