OPEN-SOURCE SCRIPT
Day/Session Separator for TTW

TTW — Session Ranges, Opens & Border Suite
Overview
Introducing TTW, an all-in-one session and range-mapping toolkit built on ICT-style concepts such as Killzones, CBDR, the Asian Range, and Flout, alongside key opening price references. Rather than stacking several separate scripts on your chart, TTW consolidates the session structure most day-to-day price action traders reference into a single, configurable indicator.
Features
Session Highlighting — Toggle background highlighting and vertical session boundary lines for London, New York, London Close, PM, Asia, and a fully custom "Free Session," each with independently adjustable start/end times and colors.
Session High/Low Border Lines (Asia, London, NY) — Draws a running high line, low line, and optional range fill for the Asia, London, and New York sessions using a robust hour-based session engine, so each session's range is fully self-contained and never bleeds into the next day's session across the midnight boundary. Colors, line width, and fill are shared across all three sessions so they read as one congruent system.
CBDR, Asia & Flout Range Boxes — Auto-plots the high/low box for the Central Bank Dealer's Range, Asian Range, and Flout, each with optional text labels and up to 4 standard deviation projection lines (upside only, downside only, or both directions).
Auto Standard Deviation Table — An optional table compares the CBDR and Asian Range pip counts on forex pairs and recommends which range's standard deviation projections are best suited for the session, based on typical range-size thresholds.
Opening Price Lines — Plots Midnight, New York, Equities, and Afternoon opening price levels, each with an optional label showing the time or a custom description, with price values shown or hidden.
HTF Weekly & Monthly Opens — Displays the current week's and month's opening price as a horizontal reference line with an optional label.
Historical Session Control — Choose to display only today's sessions, the current week's sessions, or the last four weeks of sessions, with automatic cleanup of older drawing objects to keep the chart light.
Day-of-Week Labels — Optional labels marking each day of the week at a chosen hour and chart location.
Bias & Notes Tables — Optional, fully customizable tables for logging directional bias on key correlated markets and freeform session notes, positionable anywhere on the chart.
Global Timezone Selection — All sessions, opens, and labels shift together based on a single timezone input covering all standard UTC offsets, so the whole indicator stays aligned regardless of your exchange's default timezone.
Auto-Interval Guard — Automatically hides session/box drawing above a configurable timeframe so the chart doesn't become cluttered on higher timeframes.
Overview
Introducing TTW, an all-in-one session and range-mapping toolkit built on ICT-style concepts such as Killzones, CBDR, the Asian Range, and Flout, alongside key opening price references. Rather than stacking several separate scripts on your chart, TTW consolidates the session structure most day-to-day price action traders reference into a single, configurable indicator.
Features
Session Highlighting — Toggle background highlighting and vertical session boundary lines for London, New York, London Close, PM, Asia, and a fully custom "Free Session," each with independently adjustable start/end times and colors.
Session High/Low Border Lines (Asia, London, NY) — Draws a running high line, low line, and optional range fill for the Asia, London, and New York sessions using a robust hour-based session engine, so each session's range is fully self-contained and never bleeds into the next day's session across the midnight boundary. Colors, line width, and fill are shared across all three sessions so they read as one congruent system.
CBDR, Asia & Flout Range Boxes — Auto-plots the high/low box for the Central Bank Dealer's Range, Asian Range, and Flout, each with optional text labels and up to 4 standard deviation projection lines (upside only, downside only, or both directions).
Auto Standard Deviation Table — An optional table compares the CBDR and Asian Range pip counts on forex pairs and recommends which range's standard deviation projections are best suited for the session, based on typical range-size thresholds.
Opening Price Lines — Plots Midnight, New York, Equities, and Afternoon opening price levels, each with an optional label showing the time or a custom description, with price values shown or hidden.
HTF Weekly & Monthly Opens — Displays the current week's and month's opening price as a horizontal reference line with an optional label.
Historical Session Control — Choose to display only today's sessions, the current week's sessions, or the last four weeks of sessions, with automatic cleanup of older drawing objects to keep the chart light.
Day-of-Week Labels — Optional labels marking each day of the week at a chosen hour and chart location.
Bias & Notes Tables — Optional, fully customizable tables for logging directional bias on key correlated markets and freeform session notes, positionable anywhere on the chart.
Global Timezone Selection — All sessions, opens, and labels shift together based on a single timezone input covering all standard UTC offsets, so the whole indicator stays aligned regardless of your exchange's default timezone.
Auto-Interval Guard — Automatically hides session/box drawing above a configurable timeframe so the chart doesn't become cluttered on higher timeframes.
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.