OPEN-SOURCE SCRIPT

time NY

91
This TradingView Pine Script plots vertical lines at specific key times throughout the trading day based on the New York timezone (Eastern Time), which aligns with Colombian time during Daylight Saving Time (UTC-4). It also highlights the opening price of the 00:00 candle and shades a specific time range on the chart.

Key Features:
Timezone Configuration:

Uses "America/New_York" to define the trading session times.

Opening Price at 00:00:

Captures and stores the opening price of the candle at exactly 00:00.

Optionally stores the bar index (although it's not used visually here).

Vertical Lines at Key Times:

Draws vertical dashed lines at these specific times each day:

00:00

07:30

08:30

09:45

10:00

10:15

10:30

10:45

11:00

13:30

16:30

These lines extend above and below the chart range, from the highest to the lowest price over the last 500 bars.

Background Highlight:

Shades the time interval between 11:00 and 13:30 with a semi-transparent gray background, but only for the current day.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。