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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticket": "<ticket>"
},
"name": "modify_position"
}
}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) |