write_tester_config
Generates a headless MetaTrader 5 Strategy Tester INI configuration with shutdown enabled, visuals disabled, and specified expert, symbol, model, dates, deposit, leverage, and EA inputs.
Instructions
Write a headless tester.ini. ShutdownTerminal is always 1 and Visual is always 0.
model is every_tick, ohlc, open_prices, or real_ticks. Pass source to seed TesterInputs from the EA, or pass inputs as a name-to-value map.
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>"
},
"name": "write_tester_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| model | No | ohlc | |
| expert | Yes | ||
| inputs | No | ||
| period | No | H1 | |
| source | No | ||
| symbol | Yes | ||
| date_to | No | 2024.12.31 | |
| deposit | No | ||
| currency | No | USD | |
| leverage | No | ||
| date_from | No | 2024.01.01 | |
| optimization | No |