Bollinger Bands Strategy
Bollinger Bands draw a moving average (usually 20 days) with bands k standard deviations (usually 2) above and below it. Traders use them in two opposite ways: mean reversion buys when the price closes below the lower band, expecting a return to the middle; breakout buys when the price closes above the upper band, expecting the move to continue. Testing both on the same data shows which fits a market.
Test this strategy in Radiant AIRules
- Reversion: buy at the next open when the close is below the lower band; sell when the close is back above the middle band.
- Breakout: buy at the next open when the close is above the upper band; sell when the close falls below the middle band.
- Optional stop-loss, maximum holding days and 200-day trend filter.
Parameters
| Parameter | Default | Range |
|---|---|---|
| Period | 20 days | 2-250 |
| Width k | 2 standard deviations | 0.5-4 |
| Mode | reversion or breakout | - |
| Max positions | 5 | 1-20 |
Risks
- Bands widen in volatile markets: below the lower band can mean a crash that keeps going.
- Narrow bands produce many signals and higher costs.
- Past results do not guarantee future results. A backtest is a simulation on historical prices, not a forecast.
- Costs matter: every trade pays commission and spread. Strategies with many short trades are hit hardest.
- Overfitting: if you keep tweaking the numbers until the curve looks great, you are fitting the past. Test the idea on other symbols and other years before trusting it.
Questions
- Which mode works better?
- It depends on the market and period. Trends favour breakout, choppy markets favour reversion. Test both on the same data.
- Why 20 and 2?
- They are the original defaults proposed by John Bollinger, not optimized values.
- Is this financial advice?
- No. Radiant AI is an educational tool that tests rules on historical data. It does not tell you what to buy and does not trade for you.