PROTECTED SOURCE SCRIPT
Aggiornato Sessions OHLC - NY Time

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.
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.
Note di rilascio
troubleshootingScript protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.