run_strategy_experiment
Compare baseline and candidate Pine strategies on the active chart by running a bounded Strategy Tester experiment that returns metric deltas without placing orders.
Instructions
Run one bounded baseline-versus-candidate Strategy Tester experiment on the active chart. Both variants are resolved to exact saved Pine versions, applied serially with optional input overrides, bound to full-ledger SHA-256 ids, and removed after collection. Returns metric deltas without a synthetic score. Without confirm=true it only previews the experiment. It never places orders.
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": {
"expected_symbol": "<expected_symbol>",
"expected_timeframe": "<expected_timeframe>",
"baseline": "<baseline>",
"candidate": "<candidate>"
},
"name": "run_strategy_experiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to temporarily add strategies and run the experiment. Default: false | |
| baseline | Yes | ||
| candidate | Yes | ||
| minimum_trades | No | Closed trades required per variant. Default: 30 | |
| expected_symbol | Yes | Exact active-chart symbol, e.g. OANDA:USDJPY | |
| expected_timeframe | Yes | Exact active-chart timeframe, e.g. 240 or 1D |