Anchored Auto Fibonacci Retracement with Alerts
Jul 29, 2024

The Anchored Auto Fibonacci Retracement indicator automatically generates and updates Fibonacci levels based on a user-selected anchor point. This tool streamlines technical analysis by dynamically adjusting the retracement levels as price creates new highs or lows relative to the chosen starting candle.
Usage
To use the indicator, select a starting candle via the chart interaction or settings. The tool automatically detects whether to draw a bullish or bearish retracement by analyzing subsequent price action. If new highs are formed after the anchor, it anchors to the low; if new lows are formed, it anchors to the high.
As price expands, the Fibonacci levels adjust automatically to encompass the entire move. If price retraces fully beyond the anchor point (mitigation), the levels become static, signifying the end of that specific price move's relevance. Users can also enable the "Freeze" feature to stop expansion once a certain retracement level is reached after a grace period.
Details
The script is designed to handle dynamic market environments where manual Fibonacci drawing would require constant adjustment. It supports up to twelve customizable levels. A key implementation detail is the "Mitigation" logic: once the originating price is breached, the script ceases to update its calculations to maintain the historical context of the broken move. This indicator was inspired by the Fibonacci Toolkit by LuxAlgo and utilizes optimized alert logic to minimize the need for multiple alert configurations.
Settings
Main Settings
- Start: Select the anchor candle for the Fibonacci retracement.
- Extend Retracement Levels: When enabled, level lines extend beyond the current candle into the future using dashed lines.
- Freeze level/Grace: Stops the Fibonacci expansion once price retraces to a specific level after a set number of bars.
Retracement Levels
- Level Visibility: Checkboxes to toggle up to 12 different Fibonacci levels.
- Level Value: Numerical input for the specific Fibonacci ratio (e.g., 0.618).
- Color: Customizable color picker for each level's line.
- Alert: Individual toggle and text box for per-level retracement alerts.
Other Alerts
- Alert on expansion: Triggers when price moves further from the anchor, causing levels to adjust.
- Alert on mitigation: Triggers when the Fibonacci levels are fully retraced.
- Alert on freeze/stop: Notifies the user when the levels stop extending due to price action.
FAQ
How do I access Anchored Auto Fibonacci Retracement?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Can I set alerts for specific levels?
Yes, each level has a dedicated alert checkbox and a custom message field. When price crosses a visible level with an active alert, a notification will trigger.
Why did the Fibonacci levels stop moving?
The levels stop adjusting if the "Freeze" level is reached or if the anchor point is "mitigated" (price pulls back beyond the starting point). This preserves the structure for analysis even after the move is completed.
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.

