Backtesting

what_if_backtest

Run a quick "what-if" backtest to see how a strategy would have performed on historical data. Specify the strategy, trading pair, timeframe, and date range. Returns P&L, win rate, drawdown, and trade-by-trade results.

Parameters

NameTypeDescription
strategyIdstringStrategy ID or slug to backtest
symbolstringTrading pair (e.g., BTC/USDT)
exchangestringExchange for historical data(default: binance)
timeframestringCandle timeframe (1h, 4h, 1d)(default: 1h)
startDatestringBacktest start date (ISO format)
endDatestringBacktest end date (ISO format)

Example Prompts

Try asking your AI assistant any of these:

Backtest GhostRider on BTC/USDT for the last 30 days
What if I ran Momentum Rider on ETH last month?
Test this strategy against SOL/USDT historical data

Start Using what_if_backtest

Set up the TradeStaq MCP server in under a minute.