Fibonacci Range Detector

Jul 27, 2025

Static chart image
Support and Resistance
Fibonacci

The Fibonacci Range Detector tool identifies and visualizes key price ranges using Fibonacci retracement levels to help traders contextualize market structure. It automatically tracks swing highs and lows to map out critical support, resistance, and value zones in real-time.

Usage

The indicator can be used in two primary ways to accommodate different trading styles:

  • Auto Selection: In this mode, the script employs an adaptive ZigZag system to automatically detect market swings. Traders can choose between ATR ZigZag (based on volatility) or % ZigZag (based on price percentage movement) to define what constitutes a meaningful structural shift.
  • Manual Selection: For traders who want full control, this mode allows the manual selection of specific swing highs and lows directly on the chart to generate custom Fibonacci ranges.

The tool maps out essential Fibonacci retracement levels (0%, 25%, 50%, 75%, 100%) and optional extensions (127.2%, 161.8%). These zones help identify Discount (0-25%) and Premium (75-100%) areas, which are useful for identifying optimal trade entries and exits.

Details

The script's core logic centers on "Range Confirmation." In Auto mode, a range is only fully confirmed after a user-defined number of bars has passed without the swing high being breached, preventing premature range mapping during high-volatility moves.

The indicator also maintains a Historical Memory feature. It can store and display up to 20 past ranges simultaneously. This allows traders to see how current price action interacts with historical structural levels, providing deeper confluence for technical analysis.

Settings

Mode Selection

  • Selection Mode: Switch between "Auto" for algorithmic detection or "Manual" for user-defined levels.
  • Manual Inputs: Define the specific High and Low price levels when in Manual mode.

Auto Settings

  • Detection Method: Choose between "ATR ZigZag" or "% ZigZag" for identifying swings.
  • ATR Length/Multiplier: Configures the volatility sensitivity for the ATR detection method.
  • Reversal %: Sets the percentage threshold required to trigger a new swing point in % mode.
  • Confirmation Bars: The number of candles required to "lock in" a new high and confirm the active range.

Visual Settings

  • Show Price Labels: Toggles the visibility of price values at each Fibonacci level.
  • Show Extensions: Enables or disables the 127.2% and 161.8% extension lines.
  • Historical Ranges: Determines how many previous ranges remain visible on the chart.
  • Color Scheme: Customize the colors and transparency for the Discount and Premium zones.

Table Settings

  • Show Info Table: Toggles the live data panel displaying range metrics.
  • Table Position: Adjusts where the information panel appears (e.g., Top Right, Bottom Left).

FAQ

How do I access Fibonacci Range Detector?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

What is the difference between the ATR and % ZigZag methods?

The ATR method adjusts to market volatility, expanding or contracting based on recent price range, while the % method uses a fixed percentage move regardless of volatility.

Can I use this for automated buy and sell signals?

No, this tool is designed as a visual framework for structure-based analysis and should be used in conjunction with a complete trading strategy and risk management plan.

Free access on the following platforms
tradingviewSymbolTradingView
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

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.