OPEN-SOURCE SCRIPT
Session Fibonacci Tracker with Dynamic Range Freeze

Session Fibonacci Tracker with Dynamic Range Freeze
This indicator plots Fibonacci retracement and extension levels based on session high/low ranges with a unique "freeze" mechanism that locks levels during volatility and recalculates only when price returns to the established range.
How It Works:
The indicator uses a three-stage process to maintain stable Fibonacci levels:
Range Establishment: At the start of each session (default 1800 ET), the indicator tracks the session high and low. Fibonacci levels are calculated with dynamic anchoring - when price is above the session open, 0 anchors at the high with 1 at the low; when below, 0 anchors at the low with 1 at the high.
Freeze Mechanism: Once the range is established, it immediately freezes. If a candle closes outside this range, the Fibonacci levels remain locked at their current values even as new session highs or lows form. This prevents levels from constantly recalculating during trending moves.
Recalculation: The frozen range only updates when price action (high or low) touches back inside the established range. At this point, levels recalculate based on the current session high/low, then freeze again.
Key Features:
Customizable Fibonacci levels: All retracement (0.236, 0.382, 0.500, 0.618, 0.786) and extension levels (-1.0, -0.618, -0.272, 1.272, 1.618, 2.0) can be enabled/disabled and adjusted to custom values
Time-based line extension prevents historical buffer overflow errors
Works across all timeframes
Session start time fully customizable
Visual status indicator shows whether levels are frozen or active
All lines and labels are fully customizable (colors, width, labels, prices)
Use Cases:
This indicator is particularly useful for traders who want stable reference levels during volatile periods. Traditional Fibonacci tools recalculate with every new extreme, making them difficult to use as support/resistance during trends. This implementation keeps levels stable until price returns to consolidation, providing consistent reference points for entries, exits, and stop placement.
Settings:
Session Settings: Configure session start time (default 1800 ET)
Fibonacci Levels: Enable/disable and customize each retracement level value
Extension Levels: Enable/disable and customize each extension level value
Visual Settings: Adjust line extension, width, labels, and price display
Colors: Customize colors for open line, 0 level, 1 level, retracements, and extensions
This indicator plots Fibonacci retracement and extension levels based on session high/low ranges with a unique "freeze" mechanism that locks levels during volatility and recalculates only when price returns to the established range.
How It Works:
The indicator uses a three-stage process to maintain stable Fibonacci levels:
Range Establishment: At the start of each session (default 1800 ET), the indicator tracks the session high and low. Fibonacci levels are calculated with dynamic anchoring - when price is above the session open, 0 anchors at the high with 1 at the low; when below, 0 anchors at the low with 1 at the high.
Freeze Mechanism: Once the range is established, it immediately freezes. If a candle closes outside this range, the Fibonacci levels remain locked at their current values even as new session highs or lows form. This prevents levels from constantly recalculating during trending moves.
Recalculation: The frozen range only updates when price action (high or low) touches back inside the established range. At this point, levels recalculate based on the current session high/low, then freeze again.
Key Features:
Customizable Fibonacci levels: All retracement (0.236, 0.382, 0.500, 0.618, 0.786) and extension levels (-1.0, -0.618, -0.272, 1.272, 1.618, 2.0) can be enabled/disabled and adjusted to custom values
Time-based line extension prevents historical buffer overflow errors
Works across all timeframes
Session start time fully customizable
Visual status indicator shows whether levels are frozen or active
All lines and labels are fully customizable (colors, width, labels, prices)
Use Cases:
This indicator is particularly useful for traders who want stable reference levels during volatile periods. Traditional Fibonacci tools recalculate with every new extreme, making them difficult to use as support/resistance during trends. This implementation keeps levels stable until price returns to consolidation, providing consistent reference points for entries, exits, and stop placement.
Settings:
Session Settings: Configure session start time (default 1800 ET)
Fibonacci Levels: Enable/disable and customize each retracement level value
Extension Levels: Enable/disable and customize each extension level value
Visual Settings: Adjust line extension, width, labels, and price display
Colors: Customize colors for open line, 0 level, 1 level, retracements, and extensions
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.