Support & Resistance Levels
Sep 18, 2017

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.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

