Double Bollinger Bands Strategy (for Crypto/FOREX)
Sep 4, 2021

The [KL] Double Bollinger Bands Strategy (for Crypto/FOREX) tool provides a systematic approach to trading breakouts by utilizing two sets of Bollinger Bands to identify periods of consolidation and subsequent price expansion.
Usage
The strategy is designed to capture trend continuations following a squeeze. It identifies a "Neutral Zone," defined as the area between the upper and lower 1-standard deviation bands.
- Long Entry: Occurs when the market is in a consolidation phase and the price closes above the upper 1-standard deviation band (moving into the "Buy Zone" between 1SD and 2SD).
- Short Entry: Occurs when the market is in a consolidation phase and the price closes below the lower 1-standard deviation band.
- Exit Logic: Positions are managed via an ATR-based trailing stop loss. For long positions, an additional exit trigger occurs if the price returns to the Neutral Zone and shows signs of a momentum shift (lower lows).
The strategy is particularly effective in markets like Crypto and FOREX, where volatility cycles often lead to significant directional moves after periods of low-volatility tightening.
Details
The strategy employs a 20-period Simple Moving Average (SMA) as the baseline. It plots two layers of Bollinger Bands:
- Inner Bands: +/- 1 Standard Deviation from the SMA (Neutral Zone).
- Outer Bands: +/- 2 Standard Deviations from the SMA.
To ensure high-probability entries, the script includes logic to detect consolidation (using the coefficient of variation) and checks for positive/negative drift and ATR expansion. This ensures that trades are only initiated when there is evidence of increasing volatility and directional bias. The trailing stop loss can also be configured to "tighten" during sharp favorable moves to protect unrealized profits.
Settings
Alert Messages
- Long/Short Entry/Exit: Customizable string inputs to define the messages sent via alerts for automated execution or notifications.
Backtesting Timeframe
- Backtest Start Time: Sets the starting date and time for the historical simulation.
- Define backtest end-time: Enables or disables a specific end date for the simulation.
- Backtest End Time: Sets the concluding date for the historical simulation.
Strategy Parameters
- lookback period for drift calc.: The number of bars used to calculate the directional drift.
- Length of ATR for trailing stop loss: The lookback period for the ATR calculation used in the stop loss.
- ATR Multiplier for trailing stop loss: Determines how many ATRs away the stop loss is placed from the price.
- Tighten stop loss: When enabled, the trailing stop will move more aggressively during high-volatility price moves in the trade's direction.
FAQ
How do I use the [KL] Double Bollinger Bands Strategy (for Crypto/FOREX)?
Apply the strategy to your chart and look for prices breaking out of the 1-standard deviation "Neutral Zone" after the bands have narrowed, indicating a transition from consolidation to a trend.
What assets does this strategy work best on?
While designed with Crypto and FOREX in mind, it is applicable to any liquid asset that exhibits cyclical volatility and trending behavior.
How can I access this script?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.