All indicators

Support & Resistance Levels

Sep 18, 2017

Static chart image
Support and ResistanceMoving Averages

The Support & Resistance Levels indicator provides a clear visualization of key price levels using multiple Simple Moving Averages (SMAs) to identify dynamic support and resistance zones.

Usage

The Usage section describes how the script can be used. Traders can use this tool to identify potential areas where price might react, bounce, or break through.

  • Bullish Scenario: When the price is trading above a specific SMA, the line turns green, acting as a dynamic support level.
  • Bearish Scenario: When the price is trading below an SMA, the line turns red, acting as a dynamic resistance level.
  • Significance: The thickness of the lines represents the "strength" or seniority of the level. Thinner lines (10-period) represent short-term reaction zones, while the thickest line (200-period) represents a major long-term structural level.

This script is generally more effective on higher timeframes, such as the 15-minute chart or greater, where moving averages carry more significance.

Details

The script utilizes five distinct Simple Moving Averages (SMA) to construct its levels: 10, 20, 50, 100, and 200 periods. Each SMA serves as a dynamic boundary. The logic is based on the relationship between the current closing price and the average:

  • If Close > SMA, the trend is considered locally bullish for that period, and the level is colored green (Support).
  • If Close < SMA, the trend is considered locally bearish for that period, and the level is colored red (Resistance).

The visual weight (linewidth) is scaled according to the period, making it easy for the user to distinguish between minor intraday fluctuations and major trend shifts.

Settings

The script plots five distinct levels, each representing a different SMA period:

  • 10 Period: The thinnest line, representing short-term support/resistance.
  • 20 Period: A slightly thicker line for short-term trend identification.
  • 50 Period: An intermediate-term level used by many trend followers.
  • 100 Period: A thick line representing medium-to-long-term market structure.
  • 200 Period: The thickest line, widely regarded as a primary indicator for long-term bull or bear market regimes.

FAQ

How do I interpret the colors of the lines?

Green lines indicate that the price is currently above that specific moving average, suggesting it may act as support. Red lines indicate the price is below the average, suggesting it may act as resistance.

On which timeframes does this work best?

While it can be applied to any chart, it is recommended for use on the 15-minute timeframe or higher to filter out market noise.

How can I access the Support & Resistance Levels 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

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