evolution_run_backtest
Backtest a candidate trading pattern against historical OHLCV data to measure Sharpe ratio, win rate, max drawdown, and total PnL before deploying it.
Instructions
Backtest a candidate pattern against historical OHLCV data.
Takes a pattern dict (from discover_patterns) and runs a vectorized backtest. Returns fitness metrics: Sharpe ratio, win rate, trade count, max drawdown, total PnL.
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": {
"pattern_dict": "<pattern_dict>"
},
"name": "evolution_run_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days of history to backtest against (default 90) | |
| symbol | No | Trading pair (e.g. "BTCUSDT") | BTCUSDT |
| timeframe | No | Bar timeframe — "5m", "15m", "1h", "4h", "1d" | 1h |
| pattern_dict | Yes | CandidatePattern as dict (from discover_patterns output) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||