Guide
How does the Bollinger Pair Trade strategy work ?
The Bollinger Pair Trade strategy is designed for pair trading stocks using Bollinger Bands to capture volatility and price levels for entry and exit. On a 5-minute chart, it computes a 1-hour Bollinger Band to set trade criteria, allowing for dynamic adjustments through input changes. The strategy functions best when applied to cointegrated stock pairs.
Entries are made when the price crosses the lower or upper Bollinger bands, defined by a specified number of standard deviations from a moving average. Traders can customize this by setting the position entry levels as multipliers of the standard deviation, yielding multiple entry options (e.g., mult2 as 2 * standard deviation).
Four exit strategies are provided:
- SMA: Exit upon touching the simple moving average (SMA).
- SKP: Skip SMA and exit on the opposite band if moving towards the 20D SMA.
- SKPXDSMA: Skip SMA and exit on the 20D SMA if moving towards it.
- NoExit: Exit only on touching the upper or lower band.
Additional options include setting a hard stop percentage of initial capital, specific loss per trade, and using the VIX as a threshold to stop trading, reverse trade direction, or assume Bollinger band expansion.
For backtesting, specify if trades should close after an interval or persist for live signals. Other options like using an exponential moving average (EMA), trading direction relative to the 20D SMA, and avoidance within 1 or 2 standard deviations of the 20D SMA can further fine-tune the strategy.
Session management is also available, allowing traders to define times not to trade to avoid slippage and achieve more realistic backtesting results.