Fibonacci Retracement MTF/LOG
Jan 12, 2025

The Fibonacci Retracement MTF/LOG indicator automatically identifies and plots Fibonacci levels derived from higher timeframes on both linear and logarithmic scales to establish dynamic support and resistance zones.
Usage
This indicator can be used to visualize key Fibonacci retracement levels from a user-defined higher timeframe (HTF) without switching charts.
- Higher Timeframe Analysis: By setting a "TimeFrame," you can view daily, weekly, or monthly Fibonacci levels on an intraday chart.
- Historical Reference: Use the "Reference" setting to look back at previous periods (e.g., viewing yesterday's Fibonacci levels while trading today).
- Scale Alignment: Switch between "Linear" and "Logarithmic" calculations to match your chart's scale, ensuring the levels align correctly with price action.
- Trend Identification: The tool automatically identifies the high and low of the selected period and determines the trend direction based on which point occurred first.
Details
The script functions by identifying the extreme price points (highest high and lowest low) within the specified timeframe. Once these points are found, it checks their chronological order to determine if the "retracement" should be calculated from an uptrend or a downtrend.
The calculation supports two mathematical approaches:
- Linear: Standard arithmetic calculation for Fibonacci levels.
- Logarithmic: Calculates levels based on percentage-based price moves, which is often preferred for long-term charts or assets with high volatility.
Settings
Main Configuration
- TimeFrame: Specifies the higher timeframe used for the calculation (e.g., 1D, 1W).
- Reference: Determines which period to reference. A value of 0 is the current period, 1 is the previous period, and so on.
- Scale: Choose between Linear or Logarithmic calculation methods.
- Avoid Repaint: When enabled, levels are drawn permanently from the bar they occur, preventing historical recalculations.
Display
- Trend: Toggles the visibility of the internal trend line connecting the high and low points.
- Extend Line: Extends the Fibonacci levels horizontally across the right side of the chart.
- Line Width/Style: Customizes the visual appearance of the retracement lines.
- Label Position: Adjusts the horizontal offset for the price and ratio labels.
Configuration
- Level Visibility/Values: Individual checkboxes and inputs to enable specific Fibonacci ratios (0.236, 0.382, 0.5, 0.618, 0.786, etc.) and customize their colors.
FAQ
How do I access Fibonacci Retracement MTF/LOG?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Why are the levels not appearing correctly on my chart?
Ensure that the "Scale" setting in the indicator matches your chart's scale (Linear vs. Log). Additionally, the starting bar of the selected timeframe must be visible on the chart for the indicator to determine the trend direction.
Can I set alerts for these levels?
Yes, the script includes alert conditions for price crossing over or under any of the enabled Fibonacci levels.
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.

