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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.