All indicators

Moving Average Support and Resistance Channel

Sep 6, 2021

Static chart image
Support and ResistanceSignalsChannelsMoving AveragesVolatility

The Moving Average Support and Resistance Channel indicator provides a dynamic volatility-based envelope that identifies key price boundaries and trend characteristics through smoothed pivot calculations and Average True Range (ATR) expansions.

Usage

The Usage section describes how the script can be used to identify market regimes and potential price targets. The indicator projects five distinct lines on the chart: a Middle Line (Basis), two resistance levels (R1, R2), and two support levels (S1, S2).

  • Trend Identification: During an uptrend, the channel slopes upward with price typically sustained above the Middle Line. In a downtrend, the channel slopes downward with price remaining below the Middle Line.
  • Mean Reversion and Volatility: During flat or consolidating periods, the channel narrows and flattens. Price often oscillates around the Middle Line, using R1/S1 as immediate boundaries.
  • Breakout Targets: Traders often look for a breakout or a successful retest of the Middle Line to anticipate a move toward the outer R1/R2 or S1/S2 levels.
  • Overextension: When price moves outside the R2 or S2 boundaries, it may indicate an overextended market prone to a correction or trend reversal.

Details

The script constructs its levels based on smoothed price action and volatility. Unlike standard envelopes, it uses specific logic for "Support" and "Resistance" series based on candle polarity:

  • Basis (Middle Line): Calculated as a moving average of the HLC3 (Floor Pivot) price.
  • Primary Levels (R1/S1): R1 is derived by adding the smoothed ATR (multiplied by the Factor) to the smoothed resistance series. S1 is derived by subtracting the smoothed ATR from the smoothed support series.
  • Secondary Levels (R2/S2): These represent a further expansion, adding/subtracting another volatility step from the R1 and S1 levels respectively.

The "Auto" mode dynamically adjusts the lookback period based on the chart's timeframe (e.g., using a 60-period length for 1-minute charts or 30-period for Daily charts) to maintain contextual relevance.

Settings

  • Mode: Choose between "Auto" (automatic length selection based on timeframe) or "User Defined" (manual length selection).
  • Smoothing: Select the moving average type used for calculations (SMA, EMA, RMA, WMA, VWMA, or HMA).
  • Length: The lookback period for the moving averages when "User Defined" mode is active.
  • Factor: The ATR multiplier used to determine the width of the support and resistance channels.

FAQ

How do I interpret the price crossing the Middle Line? A cross above the Middle Line often signals a shift toward bullish momentum with targets at R1 or R2, while a cross below suggests bearish momentum targeting S1 or S2.

What is the difference between R1/S1 and R2/S2? R1 and S1 act as primary volatility boundaries, while R2 and S2 represent extreme volatility levels where price is statistically more likely to face exhaustion.

How can I access this indicator? 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.