Fibonacci Grid [LuxAlgo]

LuxAlgo Wizard Updated   
The following indicator returns multiple diagonal lines forming a grid. Each line has 45-degree and is set depending on Fibonacci ratios as well as the maximum and minimum price value over a certain lookback period. These can be used as potential support and resistance.

Users also have the option to set equidistant lines instead of having them determined by Fibonacci ratios.

  • Length: Lookback period for determining the maximum/minimum price value used for constructing the grid.
  • Resolution: Grid resolution, higher values will return more lines (only available when the "Use Fibonacci Ratios" is disabled)
  • Use Fibonacci Ratios: Set the lines based on Fibonacci Ratios, 6 ratios are used.


Each individual diagonal line can be used as support/resistance. Two Diagonal lines form channels where the price might evolve until a breakout.

The underlying logic of this grid determined by Fibonacci ratios is that price variations farther away from the main diagonals (in orange) would tend to move inside tighter channels.

Diagonals set using Fibonacci Ratios will form tighter channels when away from the center of the Lookback area. While equidistant lines will keep the same distance between each line.

Release Notes:
Minor changes.
Release Notes:
Users can select anchor points for the indicator to display a Fibonacci Grid.

The indicator is no longer based on recent data which prevents back-painting.
Release Notes:
Diagonals now only extend to the right side of chart.

Get access to our exclusive tools:

Join our 150k+ community:

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?