MACD+RSI+BB
Nov 10, 2024

The MACD+RSI+BB indicator is a comprehensive technical analysis tool that integrates trend, momentum, and volatility metrics into a single visualization to identify potential market reversals and trend shifts.
Usage
The Usage section describes how the script can be used to interpret market conditions. The indicator is primarily used to identify overextended price action (buying or selling climaxes) and trend momentum.
- Identifying Climaxes: When the histogram turns black, it indicates a "climax" condition where the RSI is at an extreme (above 70 or below 30) and the price has breached the Bollinger Bands.
- Trend Momentum: The MACD line and signal line crossovers provide standard trend following signals, while the histogram color gradient indicates the strength of the move relative to the RSI thresholds.
- Volatility Context: Bollinger Bands help determine if the current price movement is standard or statistically significant relative to recent volatility.
Details
This script combines three classic indicators using specific logic to highlight extreme market conditions.
- MACD: Calculates the difference between two moving averages (Fast and Slow) to gauge momentum.
- RSI: An oscillator measuring the velocity of price changes to identify overbought or oversold states.
- Bollinger Bands: Uses standard deviation to create volatility channels around a moving average basis.
The unique color-coding logic ties these three together:
- Black: RSI is extreme AND price is outside Bollinger Bands (Potential Reversal/Climax).
- Solid Green/Red: RSI is extreme but price remains within Bollinger Bands.
- Light Green/Red: Standard MACD momentum without RSI extremes.
Settings
MACD Settings
- Show MACD Line: Toggles the visibility of the MACD line.
- Show Signal Line: Toggles the visibility of the Signal line.
- MACD Fast Length: The period for the faster moving average.
- MACD Slow Length: The period for the slower moving average.
- MACD Source: The price source used for MACD calculations.
- MACD Signal Smoothing: The period for the signal line.
- MACD Oscillator MA Type: Choose between SMA or EMA for the MACD calculation.
- MACD Signal Line MA Type: Choose between SMA or EMA for the signal line.
RSI Settings
- RSI Length: The period for the Relative Strength Index.
- RSI Upper: The threshold for overbought conditions (default 70).
- RSI Lower: The threshold for oversold conditions (default 30).
- Source: The price source for RSI calculations.
BB Settings
- BB Length: The period for the Bollinger Bands basis.
- BB Source: The price source for the bands.
- BB StdDev: The multiplier for the standard deviation (typically 2.0).
- Basis MA Type: The moving average type used for the center line (SMA, EMA, SMMA, WMA, or VWMA).
FAQ
How do I interpret the black bars on the histogram?
Black bars represent a "Buying Climax" or "Selling Climax." This occurs when the RSI is in an overbought/oversold area and the price has pushed beyond the outer Bollinger Bands, suggesting a high probability of a mean reversion or pause.
Can I use this for day trading?
Yes, the MACD+RSI+BB indicator is versatile and can be applied to various timeframes, making it suitable for day trading, swing trading, and long-term investing.
How can I access MACD+RSI+BB?
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.