PROTECTED SOURCE SCRIPT

Days Of The Week

16
📌 Indicator Description

Days of the Week (Color + UTC-5 Auto) is a visual time-structure indicator designed to clearly separate trading days on the chart and highlight the day of the week using customizable colors.
It is especially useful for traders who analyze market behavior by weekday or who want a clean and intuitive way to identify weekly cycles, weekend transitions, and session-based structure.

🔹 Key Features

1. Automatic New York Timezone (UTC-5 / UTC-4 with DST)
The indicator automatically calculates time using the America/New_York timezone with full daylight saving time support.
This ensures that day changes, weekdays, and labels always align with the New York trading session regardless of the chart’s local timezone.


2. Day Separator Background (Vertical Highlighting)
A vertical background separator is drawn at the beginning of each New York trading day.
Users can independently customize:

-Weekday separator color
-Saturday separator color
-Sunday separator color
-Separator transparency

This makes weekends and weekly boundaries instantly visible on any timeframe.


3. Day-of-Week Text Labels at NY 09:00
At exactly 09:00 New York time, the indicator displays a text label at the bottom of the chart showing the current day of the week.

Sunday displays “Beginning of week – Sunday”
Monday through Friday display their respective weekday names
Saturday displays “Saturday”

This timing aligns with the New York session open, making it useful for intraday and session-based traders.


4. Separate Color Control for Weekdays vs Weekends
Text colors are fully customizable and separated into:

Weekday text color
Saturday text color
Sunday text color

Additionally, the script supports dark-background and light-background text modes, allowing the user to toggle which version is displayed depending on their chart theme.


5. Minimal, Non-Intrusive Design

No repainting
No future-looking logic
No impact on price data
Lightweight and optimized

The indicator is purely visual and does not interfere with other studies or trading systems.


🔹 Customization Options

Users can control:
Whether the day separator is shown
Separator colors for weekdays, Saturday, and Sunday
Separator transparency
Whether dark or light background text is displayed
Individual text colors for weekdays, Saturday, and Sunday
All settings update instantly from the indicator’s settings panel.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.