Fibonacci Auto Retracement & HTF candles Reference
Nov 2, 2025

The Fibonacci Auto Retracement & HTF candles Reference indicator provides a comprehensive visualization of price structure by overlaying dynamic Fibonacci levels and higher timeframe (HTF) candle data onto your current chart. It aims to help traders identify key support and resistance zones, daily ranges, and multi-timeframe price action without the need to switch tabs or charts.
Usage
The Usage section focuses on how to interpret the visual elements for day trading or swing trading. The Fibonacci levels are automatically projected based on the user-defined daily range, adjusting dynamically as price creates new highs or lows.
- Intraday Analysis: Use the HTF candle reference to see the price action of a larger timeframe (e.g., 2-hour or Daily) while trading on a 1-minute or 5-minute chart.
- Fibonacci Confluence: Identify retracement zones (23.6%, 38.2%, 50%, 61.8%, 78.6%) to find high-probability entry points during a trend.
- Range Trading: The indicator tracks the high and low of a specified number of previous days (up to 7), providing clear targets for breakouts or mean reversion.
Details
The script utilizes request.security to fetch data from higher timeframes. The Fibonacci calculations are "dynamic," meaning they automatically flip orientation based on whether the price has crossed the bottom or top of the current session's range. This ensures that the 0% and 100% anchors remain relevant to the current directional bias. The HTF candles are rendered using Pine Script's drawing objects (boxes and lines) and are positioned with a horizontal offset to keep the current price action visible.
Settings
Fibonacci Settings
- Number of Previous days for Range: Determines how many historical days are used to calculate the session range (0-7).
- Label Text Size: Adjusts the font size of the Fibonacci level labels.
- Label Background Transparency: Sets the opacity of the label backgrounds.
- Fibonacci Line Color: Customizes the color of the retracement lines.
- Label Offset: Controls how many bars to the right the labels are positioned.
- Show 0% / 100% Level: Toggles the visibility of the anchor range lines.
Higher Timeframe Candles
- Show HTF Candles: Toggles the display of the HTF candle overlays.
- Timeframe: Selects the timeframe for the HTF candles (e.g., 60, 120, 240, D).
- Number of HTF Candles: Sets how many historical HTF candles are displayed on the side.
- Body/Wick Colors: Individual color and transparency settings for bullish and bearish HTF candles.
Location Settings
- Horizontal Offset: Adjusts the positioning of the HTF candle display relative to the current bar.
FAQ
How do I use the HTF candles to confirm a trade?
You can look for candle closures on the HTF display; for example, if the HTF candle is strongly bullish while price sits at a 61.8% Fibonacci retracement on your local timeframe, it may provide a confluence for a long position.
Why do the Fibonacci levels shift automatically?
The script is programmed to detect whether the price is currently trending toward the upper or lower boundary of the range. If the bottom is crossed, the Fibonacci sequence flips to align with a bearish retracement perspective, and vice versa.
How can I access Fibonacci Auto Retracement & HTF candles Reference?
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.

