Dual Dynamic Fibonacci Retracement — Long and Short Duration
May 17, 2023

The Dual Dynamic Fibonacci Retracement — Long and Short Duration indicator identifies and plots two separate sets of Fibonacci levels based on different lookback periods to provide a comprehensive view of market trends and near-term fluctuations. This tool helps traders analyze broad trends alongside granular price action by dynamically adjusting levels based on the market's position relative to pivot midpoints.
Usage
The tool can be used to identify potential support and resistance levels across different time horizons simultaneously. For example, a trader might use the primary set with a long lookback (e.g., 50 bars) to find major reversal zones, while enabling the second set with a shorter lookback (e.g., 14 bars) to time entries on smaller pullbacks.
The indicator automatically detects the highest high and lowest low within the selected lookback periods. If the current price is above the midpoint of these pivots, the Fibonacci levels are calculated from top to bottom (retracement of an uptrend). If below, they are calculated from bottom to top. This ensures the retracement levels always align with the prevailing directional bias within that specific lookback window.
Details
The script utilizes ta.highest() and ta.lowest() to determine the boundaries for Fibonacci calculations. Unlike static drawing tools, these levels update automatically as new price extremes are reached, ensuring the chart remains current. The "Shift" and "Extend" features use bar-index offsets to move the horizontal lines horizontally, allowing users to clear the immediate price action or project levels into the future.
Settings
Primary Fibonacci Set
- Lookback Period: Sets the number of bars used to find the highest and lowest points for the main Fibonacci levels.
- Left Line Shift: Adjusts the starting point of the levels left (negative) or right (positive).
- Right Line Shift: Adjusts the ending point/extension of the levels left or right.
- Plot 0.114 and 0.886 levels?: Toggles the visibility of deep retracement and early breakout levels.
Secondary Fibonacci Set
- Plot second set of levels?: Enables or disables the second independent set of Fibonacci retracements.
- Lookback Period 2: Sets the lookback length for the secondary set.
- Second Left Line Shift: Adjusts the horizontal start of the second set.
- Second Right Line Shift: Adjusts the horizontal end of the second set.
- Plot 0.114 and 0.886 levels for second set?: Toggles the extra levels for the secondary calculation.
FAQ
How do I access Dual Dynamic Fibonacci Retracement — Long and Short Duration?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Can I use this for day trading?
Yes, by setting shorter lookback periods (e.g., 10-20), the indicator will focus on intraday volatility and immediate price pivots.
Why do the lines disappear and reappear?
The indicator is designed to maintain a clean visualization. It updates the lines whenever a new high or low is detected within your specified lookback window to ensure the retracement levels are always based on the most relevant data points.
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.

