OPEN-SOURCE SCRIPT
Обновлено Trailing Fibonacci + Golden Zone

█ OVERVIEW
Trailing Fibonacci + Golden Zone is a dynamic Fibonacci-based indicator designed for automated analysis of market structure, trend direction, and corrective zones using trailing swing highs and lows combined with pivot-based market structure logic.
Unlike classic Fibonacci tools drawn manually between two selected points, this indicator continuously updates the active market range as new price extremes appear.
As a result, Fibonacci levels automatically adapt to current market structure, enabling real-time analysis of corrections, impulses, and dominant directional movement.
The indicator combines three main components:
• trailing Fibonacci structure
• adaptive Golden Zone model
• breakout and retest/exit signal system
Additionally, the indicator can be used as a standalone trend tool, visualizing market direction through range expansion and price reactions within the Golden Zone.
█ CONCEPTS
Trailing Range Logic
The indicator builds its active range using:
• trailing highs and trailing lows (dynamic mode)
• pivot-based structure (alternative measurement mode)
The side that is not currently in trailing mode updates its structure using pivot points. The minimum pivot length for a valid structure is 10, which helps filter market noise and stabilize swing structure.
Increasing pivot length results in:
• a wider, more macro-level structure
• analysis focused on larger impulses
• more trend-oriented behavior
Decreasing pivot length results in:
• more localized structure
• faster reaction to price changes
This allows users to adapt market scale to their trading style.
Dynamic Fibonacci Structure
• new highs extend the bullish range
• new lows extend the bearish range
• Fibonacci levels automatically adapt to structure changes
• the entire framework behaves like a living swing structure
Dynamic Zero Level Orientation
The zero level is always assigned to the most recent range anchor (latest extreme).
Each new high or low can shift the base of the measurement range, dynamically repositioning the entire Fibonacci structure.
Golden Zone Model
The Golden Zone represents the key corrective area between 0.618 and 0.786, acting as a dynamic price reaction zone.
• serves as a market reaction area
• acts as dynamic support/resistance
• changes color depending on market structure
• adapts to the current range
Trend Logic (Golden Zone)
• trend shifts when price breaks the Golden Zone
• breakout defines a change in market dominance
• price staying inside the zone represents consolidation
• return to the zone may indicate structural retest
Signal System
Breakout Signals
• triggered when price breaks the Golden Zone
• indicate structural change in the market
• mark the start of a new impulse phase
Retest / Exit Signals
• appear after price returns and exits the zone
• confirm continuation of the move
█ FEATURES
INPUTS / SETTINGS
Main Settings
• Pivot Length
→ defines swing structure size
→ minimum value: 10
→ lower values = more local structure
→ higher values = broader, trend-based structure
• Show Fib Labels
→ toggles Fibonacci level labels
• Fib Right Offset
→ shifts Fibonacci levels to the right
• Fib Labels Y Offset (%)
→ vertical label positioning adjustment
• Fib Line Width
→ controls Fibonacci line thickness
Golden Zone Settings
• Enable Golden Zone
→ enables/disables the zone
• Upper Ratio (0.618)
• Lower Ratio (0.786)
Signal Settings
• Signal Type (Breakout / Retest / Both)
→ selects signal type
• Signal Size (Tiny / Small / Normal)
→ visual signal size
Color Settings
• Fib Lines Color
• Fib Labels Text Color
• Golden Zone Bullish Color
• Golden Zone Bearish Color
Fibonacci Levels
• enable/disable individual levels
• ratio customization
• full Fibonacci grid configuration
█ APPLICATIONS
1. Market Structure Mapping
The indicator automatically visualizes market structure without manual swing drawing.
It allows users to observe:
• market expansion phases
• corrections and retracements
• key price reaction zones
The Golden Zone range can also be adjusted to individual preferences, allowing multi-layered market analysis across different scales.
2. Confluence-Based Trading (Corrections & Continuations)
Signals should always be evaluated together with additional context:
• momentum strength (does the move have power)
• resistance above LONG signals
• alignment with higher timeframe trend
• volume confirmation (activity at signal zone)
• overlap of Golden Zone with high-volume areas
The strongest setups occur when multiple confluence factors align in the same direction.
3. Trend Mode Usage (Trend Filter)
The indicator can be used as a trend filter by:
• increasing Pivot Length
• filtering signals according to overall market direction
• ignoring lower-timeframe noise and corrections
In this mode, it functions as a directional bias tool for other trading systems.
█ NOTES
The indicator should be used only as a supportive tool for confirmation alongside other indicators or trading methods.
Trailing Fibonacci + Golden Zone is a dynamic Fibonacci-based indicator designed for automated analysis of market structure, trend direction, and corrective zones using trailing swing highs and lows combined with pivot-based market structure logic.
Unlike classic Fibonacci tools drawn manually between two selected points, this indicator continuously updates the active market range as new price extremes appear.
As a result, Fibonacci levels automatically adapt to current market structure, enabling real-time analysis of corrections, impulses, and dominant directional movement.
The indicator combines three main components:
• trailing Fibonacci structure
• adaptive Golden Zone model
• breakout and retest/exit signal system
Additionally, the indicator can be used as a standalone trend tool, visualizing market direction through range expansion and price reactions within the Golden Zone.
█ CONCEPTS
Trailing Range Logic
The indicator builds its active range using:
• trailing highs and trailing lows (dynamic mode)
• pivot-based structure (alternative measurement mode)
The side that is not currently in trailing mode updates its structure using pivot points. The minimum pivot length for a valid structure is 10, which helps filter market noise and stabilize swing structure.
Increasing pivot length results in:
• a wider, more macro-level structure
• analysis focused on larger impulses
• more trend-oriented behavior
Decreasing pivot length results in:
• more localized structure
• faster reaction to price changes
This allows users to adapt market scale to their trading style.
Dynamic Fibonacci Structure
• new highs extend the bullish range
• new lows extend the bearish range
• Fibonacci levels automatically adapt to structure changes
• the entire framework behaves like a living swing structure
Dynamic Zero Level Orientation
The zero level is always assigned to the most recent range anchor (latest extreme).
Each new high or low can shift the base of the measurement range, dynamically repositioning the entire Fibonacci structure.
Golden Zone Model
The Golden Zone represents the key corrective area between 0.618 and 0.786, acting as a dynamic price reaction zone.
• serves as a market reaction area
• acts as dynamic support/resistance
• changes color depending on market structure
• adapts to the current range
Trend Logic (Golden Zone)
• trend shifts when price breaks the Golden Zone
• breakout defines a change in market dominance
• price staying inside the zone represents consolidation
• return to the zone may indicate structural retest
Signal System
Breakout Signals
• triggered when price breaks the Golden Zone
• indicate structural change in the market
• mark the start of a new impulse phase
Retest / Exit Signals
• appear after price returns and exits the zone
• confirm continuation of the move
█ FEATURES
INPUTS / SETTINGS
Main Settings
• Pivot Length
→ defines swing structure size
→ minimum value: 10
→ lower values = more local structure
→ higher values = broader, trend-based structure
• Show Fib Labels
→ toggles Fibonacci level labels
• Fib Right Offset
→ shifts Fibonacci levels to the right
• Fib Labels Y Offset (%)
→ vertical label positioning adjustment
• Fib Line Width
→ controls Fibonacci line thickness
Golden Zone Settings
• Enable Golden Zone
→ enables/disables the zone
• Upper Ratio (0.618)
• Lower Ratio (0.786)
Signal Settings
• Signal Type (Breakout / Retest / Both)
→ selects signal type
• Signal Size (Tiny / Small / Normal)
→ visual signal size
Color Settings
• Fib Lines Color
• Fib Labels Text Color
• Golden Zone Bullish Color
• Golden Zone Bearish Color
Fibonacci Levels
• enable/disable individual levels
• ratio customization
• full Fibonacci grid configuration
█ APPLICATIONS
1. Market Structure Mapping
The indicator automatically visualizes market structure without manual swing drawing.
It allows users to observe:
• market expansion phases
• corrections and retracements
• key price reaction zones
The Golden Zone range can also be adjusted to individual preferences, allowing multi-layered market analysis across different scales.
2. Confluence-Based Trading (Corrections & Continuations)
Signals should always be evaluated together with additional context:
• momentum strength (does the move have power)
• resistance above LONG signals
• alignment with higher timeframe trend
• volume confirmation (activity at signal zone)
• overlap of Golden Zone with high-volume areas
The strongest setups occur when multiple confluence factors align in the same direction.
3. Trend Mode Usage (Trend Filter)
The indicator can be used as a trend filter by:
• increasing Pivot Length
• filtering signals according to overall market direction
• ignoring lower-timeframe noise and corrections
In this mode, it functions as a directional bias tool for other trading systems.
█ NOTES
The indicator should be used only as a supportive tool for confirmation alongside other indicators or trading methods.
Информация о релизе
Added Pivot Confirmation Filter to prevent signals from being generated on the same bar where a new pivot is confirmed, helping reduce false signals caused by Golden Zone recalculation.Информация о релизе
Added Pivot Confirmation Filter to prevent signals from being generated on the same bar where a new pivot is confirmed, helping reduce false signals caused by Golden Zone recalculation.Информация о релизе
Enhanced the pivot filter logic to prevent signals from triggering immediately after a pivot change.Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.