run_backtest
Test trading strategies by simulating Expert Advisor performance on historical data with configurable parameters, timeframes, and optimization settings.
Instructions
Run a backtest on an Expert Advisor
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": {
"expert": "<expert>",
"symbol": "<symbol>",
"timeframe": "<timeframe>",
"from_date": "<from_date>",
"to_date": "<to_date>"
},
"name": "run_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expert | Yes | Expert Advisor name (without .ex4 extension) | |
| symbol | Yes | Trading symbol (e.g., EURUSD, GBPUSD) | |
| timeframe | Yes | Timeframe for backtesting | |
| from_date | Yes | Start date (YYYY-MM-DD format) | |
| to_date | Yes | End date (YYYY-MM-DD format) | |
| initial_deposit | No | Initial deposit amount | |
| model | No | Testing model | Every tick |
| optimization | No | Enable optimization | |
| parameters | No | Expert Advisor parameters as key-value pairs |