This **Pine Script v6** indicator for **TradingView** plots **vertical dotted lines** at user-specified times, marking key time ranges during the day. It is designed to help traders visually track market movements within specific timeframes.
#### **Features:** ✔ **Custom Timeframes:** - Two separate time ranges can be defined: - **Morning Session:** (Default: 9 AM - 10 AM, New York Time) - **Evening Session:** (Default: 9 PM - 10 PM, New York Time)
✔ **Adjustable Line Properties:** - **Line Width:** Users can change the thickness of the vertical lines. - **Line Colors:** Users can select different colors for morning and evening session lines.
✔ **New York Local Time Support:** - Ensures that the vertical lines appear correctly based on **Eastern Time (ET)**.
✔ **Full-Height Vertical Lines:** - Lines extend across the **entire chart**, from the highest high to the lowest low, for clear visibility. - Uses **dotted line style** to avoid cluttering the chart.
#### **How It Works:** 1. The script retrieves the **current date** (year, month, day) in **New York time**. 2. Converts the **user-defined input times** into **timestamps** for accurate placement. 3. When the current time matches a specified session time, a **dotted vertical line** is drawn. 4. The script **repeats this process daily**, ensuring automatic updates.
#### **Customization Options (Inputs):** - **Morning Start & End Time** (Default: 9 AM - 10 AM) - **Evening Start & End Time** (Default: 9 PM - 10 PM) - **Line Width** (Default: 2) - **Morning Line Color** (Default: Blue) - **Evening Line Color** (Default: Green)
#### **Use Case Scenarios:** 📈 Marking market **open & close** hours. 📊 Highlighting **key trading sessions** for day traders. 🔎 Identifying time-based **price action patterns**.