Fibonacci Structure Engine

Mar 22, 2026

Static chart image
Signals
Fibonacci
Liquidity
Patterns
Pivot Based (Retrospective)

The Fibonacci Structure Engine indicator is a comprehensive technical analysis tool that integrates live market structure, Smart Money Concepts (SMC), and weighted Fibonacci confluence to identify high-probability entry zones. It automates the process of anchoring Fibonacci levels from significant structure breaks (BOS/CHoCH) and dynamically updates them as price action evolves, ensuring levels remain relevant to the current trend leg.

Usage

The Usage section describes how the script can be used to analyze market trends and identify setups. The indicator functions as an all-in-one analysis engine where every component serves as a filter for the next.

  • Structure Detection: The script automatically identifies Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL). It highlights Break of Structure (BOS) for trend continuation and Change of Character (CHoCH) for trend reversals.
  • Automated Fibonacci Anchoring: Upon a structure break, the tool anchors Fibonacci levels. For a bullish break, it anchors between the most recent swing low and the current high. It trails the "live edge" as price makes new highs and locks the levels once a confirmed pivot is detected.
  • Confluence Scoring: The tool measures price proximity to specific Fibonacci levels (0.236, 0.382, 0.500, 0.618, 0.786). A score (0–100) is generated based on weighted importance, with the 0.618 "Golden Ratio" carrying the most weight.
  • Entry Signals: Bullish or bearish engulfing patterns are detected but only triggered when they occur in the correct context—either within a "Discount" zone (below the 0.50 level) for longs or a "Premium" zone (above the 0.50 level) for shorts, ideally combined with a high confluence score.

Details

The script follows a specific execution logic to ensure signal quality and prevent noise:

  • ATR-Filtered Pivots: Unlike standard pivot detection, this script uses an ATR-based filter. A swing is only confirmed if the price distance from the previous opposite swing exceeds a set volatility threshold (ATR × Multiplier).
  • Premium/Discount Logic: The 0.50 Fibonacci level serves as the equilibrium. The engine classifies price as "Premium" (expensive) or "Discount" (cheap) relative to the current swing, which acts as a directional filter for the engulfing signals.
  • Four-Phase Fibonacci Lifecycle: Levels move through four stages: Anchor on break, Trail live edge, Lock on pivot, and Update on new swings. This ensures the Fibonacci grid is always reflective of the most recent volatility.
  • Zones of Interest: The "Golden Zone" (0.500–0.786) is highlighted as the primary area for retracement entries, while the "Target Zone" (-0.500 to -0.618) provides automated Fibonacci extension targets.

Settings

  • Swing Detection Length: Sets the lookback period for pivot detection. Higher values result in more significant, macro-level structures.
  • ATR Swing Filter & Multiplier: When enabled, it suppresses minor price fluctuations. The multiplier determines how large a move must be relative to volatility to be considered a swing.
  • Signal Cooldown: Defines the minimum number of bars between consecutive Buy or Sell signals to prevent clustering in choppy markets.
  • Fibonacci Level Toggles: Allows users to individually enable or disable levels (0.236, 0.382, 0.500, 0.618, 0.786) and extension targets.
  • Confluence ATR Tolerance: Adjusts the "nearness" required for price to trigger a confluence score point based on current ATR.
  • Show Buy/Sell Signals: Toggles the visibility of the final entry labels, which are calculated based on the combination of structure, confluence, and candlestick patterns.

FAQ

How do the Fibonacci levels update without repainting? The levels update dynamically during the "live" phase as price extends a move. However, once a structural pivot is confirmed (based on the Swing Detection Length), the levels lock. Signals (BOS/CHoCH/Buy/Sell) only trigger on confirmed bar closes to ensure they do not disappear.

What is the difference between BOS and CHoCH in this script? A BOS (Break of Structure) occurs when the price continues in the direction of the established trend. A CHoCH (Change of Character) occurs when the price breaks a swing point in the opposite direction, signifying a potential trend reversal.

How do I access the Fibonacci Structure Engine? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free access on the following platforms
tradingviewSymbolTradingView
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

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.