Implement a new trading strategy based on Bollinger Bands.
The logic should generate a buy signal when the price crosses below the lower band, and a sell signal when it crosses above the upper band.
Deliverables:
bollinger.py in strategies/ directory
- Use the existing backtesting module for execution
- Add comments and make the strategy reusable
- Include basic plot for visualization (optional but recommended)
Implement a new trading strategy based on Bollinger Bands.
The logic should generate a buy signal when the price crosses below the lower band, and a sell signal when it crosses above the upper band.
Deliverables:
bollinger.pyinstrategies/directory