All indicators

Fibonacci retracement lines

Aug 10, 2019

Static chart image
Support and ResistanceFibonacci

The Fibonacci retracement lines indicator automatically identifies and plots key Fibonacci levels based on price action over a user-defined historical lookback period to help traders spot potential support and resistance zones.

Usage

The tool can be used to identify potential reversal points or areas where price might consolidate. When the tool detects a downward trend relative to the lookback period, it plots the levels accordingly; the same logic applies to upward trends. Traders can use these levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, and 1) to set price targets or stop-loss orders. The indicator includes circle-style plots for each level and dynamic labels to show the specific Fibonacci ratio.

Details

The script calculates the highest high and lowest low over a specified number of bars. It then determines the trend direction by comparing the current close to the close at the start of the lookback period.

  • In a bullish context, the levels are calculated from the bottom (lowest low) upwards.
  • In a bearish context, the levels are inverted, measuring the retracement from the top (highest high) downwards. The primary ratios included are based on standard Fibonacci sequences used in technical analysis to find equilibrium and retracement targets.

Settings

  • Calculate for last bars: Determines the lookback period (number of bars) used to find the highest high and lowest low for calculating the Fibonacci range.

FAQ

How do I use the Fibonacci retracement lines for trading?

You can use the plotted levels to identify areas where the price might bounce or break through. Common levels like 0.618 are often watched by traders for significant trend pullbacks.

Can I change the lookback period?

Yes, you can adjust the "Calculate for last bars" setting to better fit different timeframes or specific market cycles you are analyzing.

How can I access Fibonacci retracement lines?

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

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.