OPEN-SOURCE SCRIPT
Session Highlighter & Fractals

Session Highlighter & Fractals
A clean session-tracking tool built for intraday traders who want to see exactly where price sits relative to the Asian, London, and New York sessions — combined with Williams Fractal swing points for structure reference.
Features:
Three independently configurable sessions (Asian, London, New York) — each with its own time window, on/off toggle, and color
Background highlighting for the full duration of each active session, with an adjustable transparency slider so the shading never overwhelms your price action
Start/End labels on every session transition — fully customizable text (defaults to "Asian Start", "Asian End", etc.) so you can rename them to match your own trading vocabulary
Timezone control — a dropdown of standard timezones so session boundaries align exactly with whatever timezone your chart is displaying, rather than relying on the exchange's default timezone
Williams Fractals — classic 5-bar swing high/low detection, plotted directly on the chart with green/red triangle markers
Built-in alerts for both bullish and bearish fractal prints, so you can get notified the moment a new swing point forms without watching the chart
How to use it:
Set your chart's timezone (bottom-right clock icon), then match that same timezone in the indicator's settings so session windows line up correctly. Adjust each session's start/end time if you trade a custom window rather than the standard session hours. Toggle labels on or off depending on whether you want a cleaner chart or explicit markers at every transition.
This script is intended as a visual and structural reference tool — it does not generate buy/sell signals and should be combined with your own strategy, risk management, and market analysis.
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.