modify_position
Adjust stop loss and take profit levels on active trading positions or remove them by setting values to zero. Specify the position ticket and at least one parameter to update.
Instructions
Update SL and/or TP on an open position. Pass 0 to remove SL or TP. At least one of sl or tp is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticket | Yes | Position ticket number | |
| sl | No | New stop loss price (0 to remove) | |
| tp | No | New take profit price (0 to remove) |