Auto Fibonacci V1.0
Sep 8, 2020

The Auto Fibonacci V1.0 indicator automatically calculates and plots Fibonacci retracement and extension levels based on the highest high and lowest low within a user-defined lookback period. It provides traders with an automated way to identify key support and resistance zones without manual drawing.
Usage
The tool is designed to identify potential reversal or continuation levels by tracking price action over a specific timeframe. For example, in an uptrend (where the high occurs after the low), the levels are calculated from the high to the low to find retracement points. In a downtrend (where the low occurs after the high), the levels are inverted accordingly.
Users can use these levels to:
- Identify potential entry points at the 50% or 61.8% "Golden Pocket" retracements.
- Set profit targets at the 161.8% extension level.
- Visualize the current trend direction based on the relative position of the period's extreme prices.
Details
The script evaluates the highest high and lowest low over the number of bars defined in the "Period" setting. It then determines the direction of the Fibonacci sequence by comparing the bar indices of these extremes. If the highest high occurred more recently than the lowest low, the trend is considered bullish for the purpose of the Fibonacci calculation; otherwise, it is considered bearish.
The indicator uses the trackprice parameter to project levels horizontally across the chart, ensuring that the current levels are always visible at the leading edge of price action.
Settings
- Period: Determines the number of bars used to calculate the highest high and lowest low for the Fibonacci levels. Adjusting this will shift the scale of the retracements.
- Ver retroceso 0%: Toggles the visibility of the 0% baseline.
- Show 23,6%: Toggles the visibility of the 23.6% retracement level.
- Show 38,2%: Toggles the visibility of the 38.2% retracement level.
- Show 50,0%: Toggles the visibility of the 50.0% retracement level.
- Show 61,8%: Toggles the visibility of the 61.8% retracement level.
- Show 78,6%: Toggles the visibility of the 78.6% retracement level.
- Show 100%: Toggles the visibility of the 100% level (the opposite extreme).
- Show 161.8%: Toggles the visibility of the 161.8% golden ratio extension level.
FAQ
How do I adjust the sensitivity of the levels?
You can modify the "Period" setting in the inputs. A larger number will look at a wider range of historical data, creating more significant "macro" levels, while a smaller number will respond to more recent price swings.
Can I use this for both long and short setups?
Yes, the indicator automatically detects if the recent trend within the lookback period is up or down and flips the Fibonacci levels to match the appropriate direction.
How can I access Auto Fibonacci V1.0?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.

