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.
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 |