Instantly visualize the time structure on your charts with this simple and efficient indicator. It automatically plots vertical lines to mark the start of each new trading day, week, month, quarter, and year. Helping you segment price action, this tool allows you to seamlessly understand the temporal context of the market. It is an essential addition for multi-timeframe analysis, identifying key period-open levels, and massively improving the visual clarity of your trading workspace.
2. Logic
2.1. Time Period Detection: The script dynamically evaluates bar timestamps to pinpoint exactly when a new daily, weekly, monthly, quarterly, or yearly session begins.
2.2. ICT True Day Alignment: Instead of relying purely on local or exchange time, the logic includes a precise option to use New York Midnight as the true start of the period. This ensures your vertical dividers align perfectly with standard session opens and ICT methodologies.
2.3. Smart Vertical Reach & Gapping: To prevent full vertical lines from cluttering your price action, the indicator calculates the absolute highs and lows of the visible chart. By adjusting the "Reach Scale", the indicator can create a "Center Gap," drawing lines only at the top and bottom extremes while keeping the middle of your chart pristine.
2.4. Dynamic Label Stacking: The script intelligently stacks labels (Daily, Weekly, Monthly) using an automated tier-gap system and customizable edge offsets. This guarantees that labels never overlap or block each other, regardless of your zoom level.
3. Settings & Options
3.1. Display Divider Lines Settings
Timeframe Toggles: Independently show or hide Daily, Weekly, Monthly, Quarterly, and Yearly divider lines.
Past Bars: Define how many historical bars are evaluated (up to 5000) to keep your chart uncluttered and optimize loading performance.
Center GAP / Vertical Reach: Controls how far the lines extend from the top and bottom towards the center (e.g., a 0.5 value leaves a 50% gap in the middle of the chart).
Extend Lines Outward: Ensures line segments extend infinitely outward to hit the absolute top and bottom boundaries of your visible chart pane.