run_backtest
Backtest trading strategies on stock symbols using VectorBT with customizable parameters like strategy type, date range, and initial capital.
Instructions
Run a VectorBT backtest with specified strategy and parameters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock symbol to backtest | |
| strategy | No | Strategy type (sma_cross, rsi, macd, bollinger, momentum, etc.) | sma_cross |
| start_date | No | Start date (YYYY-MM-DD), defaults to 1 year ago | |
| end_date | No | End date (YYYY-MM-DD), defaults to today | |
| initial_capital | No | Starting capital for backtest | |
| fast_period | No | ||
| slow_period | No | ||
| period | No | ||
| oversold | No | ||
| overbought | No | ||
| signal_period | No | ||
| std_dev | No | ||
| lookback | No | ||
| threshold | No | ||
| z_score_threshold | No | ||
| breakout_factor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||