OPEN-SOURCE SCRIPT
Обновлено

Time-Based Vertical Lines

402
Features:

8 Customizable Lines: Each line can be individually enabled/disabled
Time Selection: Set specific times for each line (e.g., 9:30 AM)
Daily Repetition: Lines automatically repeat at the same time every trading day
Color Customization: Choose any color for each line
Additional Options: Width and style (solid, dashed, dotted) for each line

How to Use:

Copy the entire script
In TradingView, open the Pine Editor (at the bottom of the chart)
Create a new indicator and paste the code
Click "Add to Chart"
Configure your lines by clicking the settings gear icon:

Enable/disable each line
Set the time using the time picker
Choose colors
Adjust width and style as desired



Default Setup:

Line 1 is enabled by default at 9:30 AM (blue)
Lines 2-8 are disabled by default but can be enabled
Each line has a different default color for easy identification

The indicator will draw vertical lines that extend across the entire price range at your specified times, repeating every day. The lines use your chart's timezone settings, so they'll appear at the correct local time for your market.
Информация о релизе
I've added width and style options for each line. Now you can customize:

Width: Choose from 1-4 (thicker lines are more visible)
Style: Choose between Solid, Dashed, or Dotted

Each of the 4 lines has its own independent width and style settings in the indicator settings panel.
Информация о релизе
Now the lines will appear in the future at their target times. The script:

Calculates the bar index where each target time will occur
Draws the lines ahead of time at those future bar positions
Updates the lines on each bar until the target time is reached
Marks them as drawn once we pass the target time so they stop updating

The lines will now be visible before the price action reaches them, making them useful for anticipating key times during the trading session. They'll extend both up and down across the entire chart.
Информация о релизе
Update

Added historical bars

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.