Modify MT5 stop loss / take profit
modify_mt5_orderChange the stop loss and/or take profit of an existing open position or pending order on the user's live MT5 account, by ticket. REAL MONEY: only call this after the user explicitly approved the exact ticket and the new SL/TP prices. The tool auto-detects whether the ticket is an open position (MODIFY_POSITION) or a pending order (MODIFY_ORDER) from the latest snapshot. Pass only the field you want to change; omit a field to leave it unchanged, or send it as null to clear it. Confirm the result with get_my_mt5_account. Requires a personal SocialForex API token. Create one at /mt5 (section "Connect an AI assistant (MCP)") and add it to the MCP client as header Authorization: Bearer sfmcp_....
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_mt5_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticket | Yes | Ticket of the position or pending order (from get_my_mt5_account) | |
| stopLoss | No | New SL price; omit to keep, null to clear | |
| takeProfit | No | New TP price; omit to keep, null to clear |