Fibonacci Retracement levels Automatically D/W/M
Jul 14, 2025

The Fibonacci Retracement levels Automatically D/W/M indicator automatically plots Fibonacci retracement levels based on the high and low prices of a user-selected higher timeframe or detected pivot points. It aims to provide real-time visualization of potential support and resistance zones using dynamic lines, labels, and color-coded zones.
Usage
The indicator can be used to identify key retracement levels for entries, exits, or stop-loss placement. Traders can select between different modes:
- Higher Timeframe (D/W/M): Selecting Daily, Weekly, or Monthly will fetch the High and Low of the previous completed period.
- Pivot High / Low: Selecting this mode uses local price action extremes based on the "Lookback" and "Wait" settings.
The tool detects the direction of the previous period's candle. For bullish periods, levels are calculated from low to high; for bearish periods, levels are calculated from high to low. The levels provided include 0.236, 0.382, 0.5, 0.618, and 0.786.
Details
This script utilizes request.security to fetch data from higher timeframes without lookahead bias. It stores price extremes in arrays to maintain persistence across the current active period. When a new period starts, the script clears previous drawing objects (lines, boxes, and labels) and recalculates the range to ensure the chart remains clean and relevant. The visual zones are created using semi-transparent boxes to help traders distinguish between different Fibonacci "pockets" or interest areas.
Settings
Timeframe Settings
- Timeframe: Choose the anchor for the Fibonacci range: Pivot High / Low, Daily, Weekly, or Monthly.
Pivot Settings
- Pivot Lookback Left: Sets the number of bars to the left required to confirm a pivot high or low.
- Pivot Wait Right: Sets the number of bars to the right required to confirm a pivot high or low.
Visual Settings
- Show Info script name Symbol and Timeframe: Toggles the visibility of the information table in the top-right corner of the chart.
- Text Color: Customizes the color of the labels and table text.
FAQ
How do I access Fibonacci Retracement levels Automatically D/W/M?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Can I use this on any asset?
Yes, the indicator is designed to work on any ticker provided by the platform, including stocks, forex, and crypto.
Why do the lines disappear and move?
The indicator is dynamic; it recalculates at the start of every new period (e.g., at the start of a new week) to show the most recent completed range for retracement analysis.
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.

