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**.
Script de código aberto
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.