Auto Fibonacci Lines

Jan 23, 2025

Static chart image
Support and Resistance
Signals
Fibonacci

The Auto Fibonacci Lines indicator automatically identifies the highest and lowest price points within the visible chart area and plots dynamic Fibonacci retracement levels to help traders identify potential support, resistance, and reversal zones.

Usage

The tool is designed to simplify technical analysis by removing the need to manually draw Fibonacci retracements. As you scroll or zoom through your chart, the indicator recalculates the absolute high and low points of the visible range and updates the levels in real-time.

Traders can use these levels to:

  • Establish Profit Targets: Use extension or retracement levels to set price targets.
  • Identify Reversal Points: Monitor key ratios like 0.618 or 0.50 for potential price Exhaustion or pullbacks.
  • Dynamic Analysis: Since the tool updates based on the visible chart, it provides a localized view of price action relevant to the current zoom level.

Details

This script is a modified implementation of the "VisibleChart" concept. It functions by calculating the highest and lowest price values specifically within the time range defined by chart.left_visible_bar_time and chart.right_visible_bar_time.

The script determines the trend direction based on whether the visible high occurred after the visible low. It then calculates standard Fibonacci ratios (0, 0.236, 0.382, 0.5, 0.618, 0.786, and 1.0) relative to that range. The logic includes built-in alert conditions for price crossovers and crossunders at each Fibonacci level.

Settings

Highest and Lowest Values

  • Enable Highest and Lowest Values Visualization: Toggles the display of the absolute high and low price labels and the connecting trend line.
  • Line Color: Sets the color for the line connecting the high and low points.
  • Line Width: Adjusts the thickness of the high-low line.
  • Line Type: Choose between dashed, dotted, or solid lines for the range visualization.

Fibonacci Levels

  • Enable Fibonacci Levels Visualization: Toggles the display of the horizontal Fibonacci ratio lines.
  • Line Color: Sets the color for the Fibonacci level lines.
  • Line Width: Adjusts the thickness of the level lines.
  • Line Type: Sets the style (Solid, Dashed, Dotted) for the ratio lines.
  • Extend: Determines if the Fibonacci lines should extend to the right, left, or remain contained.

FAQ

How do I use this indicator to find support and resistance?

The horizontal lines generated by the indicator represent standard Fibonacci ratios. Prices often react, stall, or reverse at these levels, making them effective "hidden" support and resistance zones during a trend or retracement.

Does this indicator repaint?

The indicator calculates based on the visible chart range. While it does not "repaint" historical signals in the traditional sense, the levels will shift dynamically if you scroll the chart or change the zoom level, as the "Visible High" and "Visible Low" parameters will change.

How can I access Auto Fibonacci Lines?

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

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.