Skip to content
All library documents

Combining MACD, Squeeze, and RSI Signals in an Indicator

Article ProRealCode

Summary

The document presents a chart indicator that combines a MACD histogram, a volatility squeeze condition, and RSI-based coloring. It defines a squeeze using Bollinger Bands contained within Keltner Channels, then colors the MACD histogram according to whether that condition is active. The MACD line receives a separate color based on whether RSI is above, below, or between specified thresholds. The stated parameter settings include lookback lengths and multipliers for the bands, MACD, and RSI.

This is an indicator display recipe, not a fully specified entry, exit, or position-sizing strategy. The document provides code but no chart examples, backtest results, or evidence that the color changes predict returns. Its parameter names and assignments also appear inconsistent in places, including RSI threshold labels and references to lengths not clearly defined in the listing. Users should verify the implementation and test any trading rule built from it independently.

Key ideas

  • The squeeze condition is defined by Bollinger Bands sitting inside Keltner Channels.
  • The MACD histogram is colored according to the squeeze state.
  • The MACD line color reflects whether RSI is above, below, or within threshold levels.
  • The indicator description provides settings but no trading performance evidence.
  • The listing contains naming inconsistencies that should be checked before use.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.