The Perfect Support & Resistance
Feb 12, 2023

The The Perfect Support & Resistance indicator identifies key market levels by correlating price pivots with overbought and oversold RSI conditions across multiple lookback periods and timeframes. It aims to provide traders with robust horizontal levels that represent significant areas of supply and demand based on historical momentum extremes.
Usage
The tool can be used to identify potential reversal zones or breakout levels. When the RSI reaches an overbought state and confirms a price peak within a specific lookback period, a resistance level is plotted. Conversely, when the RSI is oversold and a price trough is found, a support level is established.
Traders can use these levels as:
- Targets: Aiming for the next plotted support or resistance level.
- Entry Points: Looking for price action confirmation (like pin bars or engulfing candles) near the circles.
- Multi-Timeframe Analysis: By default, the script displays levels from two higher timeframes (5m and 30m), allowing users to see significant zones from a broader perspective while trading on lower timeframes.
Details
The script operates by tracking five distinct lookback zones (ranging from 10 to 200 periods). For each zone, it evaluates if the current RSI value is higher than the highest RSI in that lookback or lower than the lowest. If this condition coincides with the RSI being above the overbought threshold (70) or below the oversold threshold (30), the corresponding price high or low is captured as a level. These levels are requested using the request.security function to provide multi-timeframe insights.
Settings
RSI Settings
- RSI Length: The number of bars used to calculate the Relative Strength Index.
- Source: The price data used for the RSI calculation (default is Close).
- Overbought Threshold: The level above which the RSI is considered overbought (default 70).
- Oversold Threshold: The level below which the RSI is considered oversold (default 30).
Lookback
- Lookback zone 1 - 5: Defines the five window sizes (e.g., 200, 100, 50, 20, 10) used to find pivots and establish support/resistance levels.
HTF
- Timeframe1: The first higher timeframe from which levels are pulled (default 5m).
- Timeframe2: The second higher timeframe from which levels are pulled (default 30m).
FAQ
How do I interpret the circles on the chart?
The circles represent historical support and resistance levels. Circles above the current price generally act as resistance, while circles below act as support. The color changes based on whether the price is currently above or below those specific levels.
Can I change the strength of the levels?
Yes, by adjusting the "Lookback" settings. Larger lookback values (like 200) will result in more significant, longer-term levels, while smaller values (like 10) will capture more frequent, short-term fluctuations.
How can I access The Perfect Support & Resistance?
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.

