Strategies

compare_strategy_versions

Backtest a new version of one of your strategies and the current stable version on the same candles, score both the way the Strategy Lab optimizer does, and get a verdict — better, not worse, worse or inconclusive — before you promote. Runs in the background on up to 8 pairs and 2 years of history; free, and no orders are placed.

Parameters

NameTypeDescription
idstringStrategy ID
candidateVersionIdstringVersion to judge(default: latest version)
baselineVersionIdstringVersion to compare against(default: stable version)
exchangeIdstringAn exchange you own, used only for historical candles(default: validation exchange)
symbolsstring[]1-8 pairs to test both versions on(default: validation symbol)
timeframestringCandle timeframe(default: candidate's primary timeframe, else 4h)
daysnumberWindow length ending now, 7-730 days (at most 20,000 candles per pair)(default: 180)
scoringProfilestringbalanced, conservative, aggressive or consistency(default: balanced)
presetIdstringA bot preset of this strategy: both versions run with its parameter overrides, position size and (futures) leverage(default: each version's own defaults)

Example Prompts

Try asking your AI assistant any of these:

“Is my new strategy version better than the live one?”
“Compare my draft against stable on BTC, ETH and SOL over 2 years of 4h candles”
“Backtest the new version against the current version before I promote it”

Start Using compare_strategy_versions

Set up the TradeStaq MCP server in under a minute.