OPEN-SOURCE SCRIPT

Timebender - Day Separator

33
Timebender — NY Anchored Day Separator

Many traders rely on broker-based day boundaries, which often do not align with New York time — the primary liquidity clock for FX and macro-driven markets. When the trading day is anchored incorrectly, it can distort the reading of weekly structure, session behavior, and intraday narrative.

This script provides a clear and configurable way to anchor trading days to a user-defined timezone and visually separate them on the chart.

What This Script Does

Highlights individual trading days using background shading

Draws vertical separators at the exact start of each shifted trading day

Allows independent toggling of background highlights and separator lines

Supports day-specific coloring so each trading day is immediately recognizable

Enables manual timezone shifting so traders can align charts to New York regardless of broker feed

What Makes It Different

Most day separators rely strictly on exchange time. This script detects calendar transitions from a manually shifted timestamp, allowing traders to define their own day boundary.

This is particularly useful for traders who anchor their analysis to New York time rather than broker session clocks.

Combining optional background shading with precision separators also allows traders to switch between a macro view (highlighted days) and a minimal execution view (lines only) without loading multiple indicators.

How It Works (High-Level)

The script internally offsets the chart’s timestamp by the number of hours specified in the timezone setting. It then detects when a new calendar day begins from that adjusted time and renders the visual separator accordingly.

Because the calculation is based on shifted time rather than exchange time, the indicator maintains consistent day structure across brokers.

How To Use

Set the timezone shift to match the session you anchor your analysis to.

Example: New York is typically UTC-5 or UTC-4 during daylight saving time.

Enable background highlighting for a broader structural view.

Use vertical separators when a cleaner chart is preferred for execution.

Customize colors to match your chart template.

Who This Script Is For

FX traders

Session-based traders

ICT-style market structure traders

Traders using multiple brokers

Anyone who wants consistent day boundaries across charts

Notes

This script is designed as a chart-organization utility. It does not generate trade signals or provide market predictions.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน