set_brackets
Set or clear stop loss and take profit levels on an open position to manage risk and lock in profits.
Instructions
Add, change, or clear stop loss / take profit on an open position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | If true, clear both stop loss and take profit | |
| symbol | No | Symbol if position_id omitted | |
| stop_loss | No | Stop loss price | |
| position_id | No | Position id (often the symbol) | |
| take_profit | No | Take profit price |