OPEN-SOURCE SCRIPT

Day of Week and HTF Period Separator

205
Day of Week & HTF Period Separator
A minimalist Pine Script indicator that adds clear, time-based separators and labels to intraday charts for better structure and analysis.

Key Features
• Day Labels
• Displays abbreviated weekday names (MON, TUE, WED, etc.) at a user-defined hour
• Custom text color and position
• Limits display to the most recent 28 days for a clean view
• Time Separators
• Daily: Vertical line at 00:00 each trading day
• 4-Hour: Lines at 00:00, 04:00, 08:00, 12:00, 16:00, 20:00
• Hourly: Divisions at every hour for detailed timing
• Customization
• Individual color picker for each separator type
• Choose line style: Solid, Dashed or Dotted
• Enable or disable any separator or label independently
• Smart limits to avoid clutter on extended history
• Smart Behavior
• Active only on intraday timeframes
• Projects upcoming separators into the future for planning
• Automatically caps historical plotting for performance
• Lines extend across full visible price range

Perfect for traders who need distinct session breaks, precise time-based zoning and an organized chart layout.

Inputs
• Show Day Labels (true/false)
• Label Hour (0–23)
• Day Label Color
• Show Daily Separators (true/false)
• Show 4H Separators (true/false)
• Show 1H Separators (true/false)
• Daily Line Color, Style
• 4H Line Color, Style
• Hourly Line Color, Style
• Max Days to Display

Enhance your intraday analysis with clean, customizable time markers. 👁

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.