PROTECTED SOURCE SCRIPT
Telah dikemas kini

Sessions OHLC - NY Time

99
This Pine Script indicator, "Session OHLC Rays & Boxes - NY Time (Current Day)," visualizes trading sessions on a chart by marking the Open, High, Low, and Close (OHLC) levels for four predefined sessions—Asia, London, NY AM, and NY PM—based on New York time (EDT, UTC-4).

It draws the following for the current day:
Colored Boxes: Each session is enclosed in a semi-transparent box (e.g., green for Asia, blue for London) spanning the session’s duration, with the top and bottom at the session’s High and Low.

Horizontal Rays: Dashed lines extend rightward from the OHLC levels of each session, color-coded to match the session, if enabled via user inputs (e.g., "Show Asia Open").

OHLC Labels: Yellow labels display the OHLC prices at the start of each session box, updated dynamically: Open at session start, High and Low during the session, and Close at session end or during the session if active.

Additionally, users can display up to four previous days’ sessions (boxes and labels) by adjusting the "Show Previous Days" input. The indicator is customizable, allowing users to toggle OHLC labels and rays for each session and adjust session times and colors.

Nota Keluaran
troubleshooting

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.