Bracket Trader is an API (application programming interface) frontend to control IB's Trader Workstation (TWS). Exit orders are automatically sent the moment a trade entry is filled. The exit is sent as a pair of OCA (one cancels all) orders, with one on the profit side, and one on the stoploss side.