Fibonacci MA Trend Gap V1Overview
The Smart Fibonacci Trend Gap is a comprehensive momentum and mean-reversion oscillator designed to identify when price action has overextended relative to its Fibonacci-weighted trend. By calculating the squared variance between the current price and a composite average of 17 Fibonacci lengths, this tool highlights high-probability reversal zones and trend exhaustion points.
Key Features
📐 Multi-Fibonacci Core: Calculates an aggregate mean from up to 17 different Fibonacci moving average lengths (2 to 4181), providing a much "smoother" and more reliable trend baseline than a single MA.
🔍 Auto-Divergence Detection: Automatically identifies and draws Regular and Hidden bullish/bearish divergences directly on the oscillator. Solid lines indicate Regular divergence; dashed lines indicate Hidden.
⚡ Dual Signal Lines: Includes a Fast (Red) and Slow (Green) signal crossover system for confirming momentum shifts and trend changes.
🌈 Visual Sentiment: The background dynamically shifts color based on the Signal Line crossover, providing an instant "at-a-glance" read on the current trend bias.
🛠 Fully Customizable: Choose from 7 different MA types (SMA, EMA, WMA, HMA, VWMA, SMMA, DEMA) and toggle exactly how many Fibonacci lengths to include in the calculation.
How to Use
Mean Reversion: When the cyan oscillator line reaches extreme peaks or valleys away from the zero line, look for Regular Divergence (Triangles) to signal a potential snap-back to the mean.
Trend Following: Use the background color and Signal Line crossovers (Red/Green) to stay on the right side of the macro trend.
Hidden Divergence: Use dashed-line signals to identify trend continuation opportunities during pullbacks.
Settings
MA Type: Change the underlying math of the trend (HMA for speed, EMA for standard trend following).
Number of MAs: Scale the sensitivity by including more or fewer Fibonacci lengths.
Divergence Lookback: Fine-tune how sensitive the pivot detection is to fit your specific timeframe.
Indicatore Pine Script®






