sync_or_execute_local_mt5
Pull live MetaTrader 5 OHLCV candles and account equity/leverage, or execute an approved bracket order only after explicit user confirmation.
Instructions
Connects directly to the user's open Windows MetaTrader 5 desktop terminal to either (1) pull live broker OHLCV candles and account equity/leverage, or (2) execute an approved mt5_mql5_order_send bracket order after explicit user confirmation.
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": {
"action": "<action>"
},
"name": "sync_or_execute_local_mt5"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Use 'fetch_bars' to read live candles/account info, or 'execute_order' to fire an approved order. | |
| symbol | No | MT5 symbol (e.g., 'XAUUSD', 'GBPJPY', 'EURUSD'). | GBPJPY |
| timeframe | No | Candle timeframe when action is 'fetch_bars'. | 15Min |
| lookback_bars | No | Number of MT5 bars to pull when action is 'fetch_bars'. | |
| mt5_order_payload | No | The mt5_mql5_order_send object generated by build_universal_bracket_order. | |
| user_confirmed_execution | No | MUST be true to execute an order. Only set to true after explicit user confirmation. |