backtest_portfolio
Backtest a trading strategy across multiple stock symbols to evaluate portfolio performance with configurable parameters.
Instructions
Backtest a strategy across multiple symbols (portfolio).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbols | Yes | List of stock symbols | |
| strategy | No | Strategy type to apply | sma_cross |
| start_date | No | Start date (YYYY-MM-DD) | |
| end_date | No | End date (YYYY-MM-DD) | |
| initial_capital | No | Starting capital | |
| position_size | No | Position size per symbol (0.1 = 10%) | |
| fast_period | No | ||
| slow_period | No | ||
| period | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||