OPEN-SOURCE SCRIPT
Context Fibonacci Key Levels

Context Fibonacci Key Levels automatically plots Fibonacci retracement and extension levels using the most recently completed Day, Week and Month candles while preserving the directional context of each timeframe.
Rather than treating every Fibonacci equally, the indicator determines whether the previous higher timeframe candle closed bullish or bearish and automatically adjusts the Fibonacci orientation to reflect that completed price movement.
This creates objective reference levels that remain consistent across every chart timeframe.
Optional labels:
Full Name or Shorthand display mode
How it works
The indicator evaluates the previous completed candle of each selected higher timeframe.
If the candle closed bullish, the Fibonacci is drawn from Low to High.
If the candle closed bearish, the Fibonacci is drawn from High to Low.
This allows every Fibonacci to represent the completed directional movement of its corresponding candle.
Included Fibonacci Levels
Customization
Use Cases
These levels can be used as objective higher timeframe reference zones for technical analysis, confluence studies, liquidity mapping, retracement analysis, extension targets and general market structure observations.
Because the calculations are always based on the latest completed higher timeframe candle, the levels automatically update whenever a new Day, Week or Month closes.
Disclaimer
This indicator is designed as a technical analysis tool and does not generate trading signals or predict future market direction. It is intended to be used alongside your own trading methodology and additional sources of market confluence.
Rather than treating every Fibonacci equally, the indicator determines whether the previous higher timeframe candle closed bullish or bearish and automatically adjusts the Fibonacci orientation to reflect that completed price movement.
This creates objective reference levels that remain consistent across every chart timeframe.
- Automatic Past Day Fibonacci
- Automatic Past Week Fibonacci
- Automatic Past Month Fibonacci
- Automatic bullish or bearish orientation
- Retracement and extension levels
- Works on every timeframe
- Independent colors for each timeframe
Optional labels:
Full Name or Shorthand display mode
How it works
The indicator evaluates the previous completed candle of each selected higher timeframe.
If the candle closed bullish, the Fibonacci is drawn from Low to High.
If the candle closed bearish, the Fibonacci is drawn from High to Low.
This allows every Fibonacci to represent the completed directional movement of its corresponding candle.
Included Fibonacci Levels
- 0%
- 23.6%
- 38.2%
- 50%
- 61.8%
- 78.6%
- 100%
Customization
- Enable or disable Past Day Fibonacci.
- Enable or disable Past Week Fibonacci.
- Enable or disable Past Month Fibonacci.
- Choose an individual color for each timeframe.
- Adjust line width.
- Show or hide labels.
- Display labels using Full Name (Past Day, Past Week and Past Month) or Shorthand (PD, PW and PM).
Use Cases
These levels can be used as objective higher timeframe reference zones for technical analysis, confluence studies, liquidity mapping, retracement analysis, extension targets and general market structure observations.
Because the calculations are always based on the latest completed higher timeframe candle, the levels automatically update whenever a new Day, Week or Month closes.
Disclaimer
This indicator is designed as a technical analysis tool and does not generate trading signals or predict future market direction. It is intended to be used alongside your own trading methodology and additional sources of market confluence.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.