Customizable Pivot Support/Resistance Zones
Jul 28, 2022

The Customizable Pivot Support/Resistance Zones indicator identifies key market reversal points and visualizes them as dynamic supply and demand zones for improved technical analysis. By utilizing pivot-high and pivot-low calculations, the tool plots zones that extend from the pivot price to the nearest body edge of the candle, providing a more comprehensive view of price reaction areas compared to standard lines.
Usage
The tool can be used to identify potential entry and exit points based on historical price reversals. When a new pivot is confirmed, the script draws a horizontal zone that remains on the chart until a new zone is formed.
- Zone Identification: Users can see where price has historically stalled or reversed.
- Price Interaction: By enabling "Change Colors According To Price," zones will dynamically swap between support (green) and resistance (red) colors based on whether the current market price is trading above or below them.
- Custom Filtering: A unique feature of this tool is the ability to filter zones using external indicators. For example, you can link an RSI and configure the tool to only plot support zones when the RSI is below 30, or link a Moving Average to only show resistance zones when the price is below the MA.
Details
The indicator relies on the ta.pivothigh() and ta.pivotlow() functions. A pivot is confirmed after a specific number of "Right Bars" have closed, meaning the zones appear with a slight delay to ensure the validity of the structural point. Unlike basic pivot indicators that only mark a single price point, this script captures the "wick-to-body" area of the pivot candle, which often represents a more accurate zone of liquidity.
Settings
Pivot Settings
- Left Bars: The number of bars to the left of a point required to confirm a pivot.
- Right Bars: The number of bars to the right required to confirm a pivot. This setting determines the lag/confirmation delay of the zone.
Custom Indicator Filter
- Enable Custom Source #1: Activates the external filtering logic.
- Custom Indicator Source #1: Allows selecting a source from another indicator on the chart (e.g., RSI, MACD, or MA).
- Value Must Be (Above/Below/Equal): Defines the mathematical condition for the filter to be valid for support or resistance.
- Value Requirement: The threshold the custom source must meet.
- Use Closing Price For Requirement: If enabled, compares the custom source against the closing price instead of a fixed numerical value.
Color Settings
- Support/Resistance Colors: Customize the edge and background colors for zones.
- Change Colors According To Price: Enables dynamic color switching based on current price location relative to the zone.
FAQ
How do I access the Customizable Pivot Support/Resistance Zones? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Why do the zones appear several bars after the high or low? This is due to the "Right Bars" setting. The script must wait for a specific number of bars to close to confirm that the high or low was indeed a pivot point.
Can I use this for automated trading? Yes, the script includes built-in alert conditions for new zone creation, price touches, and zone breakouts which can be used to trigger notifications or automated strategies.
Unlock Unlimited Access to the LuxAlgo Library
Upgrade your plan to get all indicators, strategies, charts, and full access to Quant, our AI agent.
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.

