Bollinger Bands, RSI, and MA Strategy
May 15, 2023

The Bollinger Bands, RSI, and MA Strategy indicator provides a comprehensive trend-following framework that combines price volatility, momentum, and moving averages to identify potential market entries and exits.
Usage
The strategy uses a multi-layered approach to confirm trade signals. Users can monitor the interaction between the Bollinger Bands and RSI to gauge when momentum is accelerating during non-contracting volatility periods.
- Long Entries: Occur when the RSI is above the overbought level and the Bollinger Bands are not in a contracting state (volatility is stable or increasing).
- Short Entries: Occur when the RSI is below the oversold level and the Bollinger Bands are not in a contracting state.
- Exit Logic: Long positions are closed when the price crosses below the 50-period Moving Average. Short positions are closed when the price crosses above the 50-period Moving Average.
Details
The strategy employs two sets of Bollinger Bands with different standard deviations to create dynamic channels. This allows traders to visualize different tiers of price movement relative to the mean. The inclusion of a "contraction" check ensures that the strategy avoids entering trades during periods of narrowing volatility (squeezes), favoring active moves instead. The RSI serves as the primary momentum trigger, while the 50-period Simple Moving Average (SMA) acts as the baseline for trend-based exits.
Settings
Bollinger Bands
- BB Length: The period used to calculate the basis (SMA) and standard deviation for the bands.
- BB Standard Deviation: The multiplier for the outer set of Bollinger Bands.
- BB Deviation 1: The multiplier for the inner set of Bollinger Bands.
RSI
- RSI Length: The lookback period for the Relative Strength Index calculation.
- Overbought RSI Level: The threshold above which long signals can be triggered.
- Oversold RSI Level: The threshold below which short signals can be triggered.
Trend & Risk
- MA Length: The period for the trend-following moving average used for exit logic.
- Stop Loss Percentage: A parameter for risk management (note: primarily used for manual calculations or strategy extensions).
- Source: The price data point used for all calculations (default is Close).
FAQ
How do I use the Bollinger Bands, RSI, and MA Strategy?
The strategy automatically plots signals on the chart based on the intersection of RSI momentum and Bollinger Band volatility. You can look for "Long" or "Short" labels to identify potential trades.
What is the "contraction" filter?
The strategy checks if the current standard deviation is less than the previous bar's. If the bands are narrowing (contracting), entries are filtered out to avoid "fakeouts" during low volatility.
Where can I get access to this tool?
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.