Adding a Profit Taker and Stop Loss
Users are able to bracket their order in two distinct ways:
- Manually construct each child of the parent. See Bracket Orders for more details.
- Adding child orders based on TWS Presets.
Adding a profit taker and stop loss from the same order object automated the order bracket process so that only order ID needs to be provided. This is best for users looking to trade with identical bracket parameters across orders.
Profit Taker
A profit taker can be added to an order using the ptOrderId and ptOrderType Order attributes.
PtOrderId must be a unique order identifier.
Consider using [EWrapper.NextValidId](/tws-api/doc/next-valid-id/introduction)
PtOrderType must always be set to “PRESET”.
Be sure to review your Presets in Trader Workstation prior to submitting orders as the Profit taker details will mirror these details as set.
Stop Loss
A stop loss can be added to an order using the slOrderId and slOrderType Order attributes.
SlOrderId must be a unique order identifier.
Consider using [EWrapper.NextValidId](/tws-api/doc/next-valid-id/introduction)
SlOrderType must always be set to “PRESET”.
Be sure to review your Presets in Trader Workstation prior to submitting orders as the Stop loss details will mirror these details as set.

