OPEN-SOURCE SCRIPT
Aggiornato Day Range EU/Rome 00:00-22:30 - live + storico (colori)

# Day Range EU/Rome 00:00–22:30 — live + historical (colors)
**What it does**
Draws, for each day (timezone **Europe/Rome**), a rectangle that contains the **high** and **low** recorded between **00:00** and **22:30**.
* During the day it creates a **live box** that updates bar by bar (it extends to the latest candle).
* At the end of the session (after 22:30) it saves a **fixed historical box** for that day.
* The rectangle is **split horizontally**: half **top** and half **bottom** (customizable colors).
* Boxes are **anchored in time** (*xloc = bar\_time*): they don’t “slide” when you zoom or pan the chart.
* Works on **intraday** timeframes (recommended **15m**; also fine on 5m, 30m, 1h).
* Includes **all days**, **Friday included**.
---
## How it works
* The code detects the **00:00 → 22:30 (Europe/Rome)** session with `time("0000-2230","Europe/Rome")`.
* Within that window it continuously updates the day’s **High/Low**.
* When the **session closes** it creates two historical boxes (upper and lower halves) using the **H/L** of the day that just ended.
* The current day’s box remains **live** and follows the chart until 22:30.
**What it does**
Draws, for each day (timezone **Europe/Rome**), a rectangle that contains the **high** and **low** recorded between **00:00** and **22:30**.
* During the day it creates a **live box** that updates bar by bar (it extends to the latest candle).
* At the end of the session (after 22:30) it saves a **fixed historical box** for that day.
* The rectangle is **split horizontally**: half **top** and half **bottom** (customizable colors).
* Boxes are **anchored in time** (*xloc = bar\_time*): they don’t “slide” when you zoom or pan the chart.
* Works on **intraday** timeframes (recommended **15m**; also fine on 5m, 30m, 1h).
* Includes **all days**, **Friday included**.
---
## How it works
* The code detects the **00:00 → 22:30 (Europe/Rome)** session with `time("0000-2230","Europe/Rome")`.
* Within that window it continuously updates the day’s **High/Low**.
* When the **session closes** it creates two historical boxes (upper and lower halves) using the **H/L** of the day that just ended.
* The current day’s box remains **live** and follows the chart until 22:30.
Note di rilascio
# Day Range EU/Rome 00:00–22:30 — live + historical (colors)**What it does**
Draws, for each day (timezone **Europe/Rome**), a rectangle that contains the **high** and **low** recorded between **00:00** and **22:30**.
* During the day it creates a **live box** that updates bar by bar (it extends to the latest candle).
* At the end of the session (after 22:30) it saves a **fixed historical box** for that day.
* The rectangle is **split horizontally**: half **top** and half **bottom** (customizable colors).
* Boxes are **anchored in time** (*xloc = bar\_time*): they don’t “slide” when you zoom or pan the chart.
* Works on **intraday** timeframes (recommended **15m**; also fine on 5m, 30m, 1h).
* Includes **all days**, **Friday included**.
---
## How it works
* The code detects the **00:00 → 22:30 (Europe/Rome)** session with `time("0000-2230","Europe/Rome")`.
* Within that window it continuously updates the day’s **High/Low**.
* When the **session closes** it creates two historical boxes (upper and lower halves) using the **H/L** of the day that just ended.
* The current day’s box remains **live** and follows the chart until 22:30.
Note di rilascio
# Day Range EU/Rome 00:00–22:30 — live + historical (colors)**What it does**
Draws, for each day (timezone **Europe/Rome**), a rectangle that contains the **high** and **low** recorded between **00:00** and **22:30**.
* During the day it creates a **live box** that updates bar by bar (it extends to the latest candle).
* At the end of the session (after 22:30) it saves a **fixed historical box** for that day.
* The rectangle is **split horizontally**: half **top** and half **bottom** (customizable colors).
* Boxes are **anchored in time** (*xloc = bar\_time*): they don’t “slide” when you zoom or pan the chart.
* Works on **intraday** timeframes (recommended **15m**; also fine on 5m, 30m, 1h).
* Includes **all days**, **Friday included**.
---
## How it works
* The code detects the **00:00 → 22:30 (Europe/Rome)** session with `time("0000-2230","Europe/Rome")`.
* Within that window it continuously updates the day’s **High/Low**.
* When the **session closes** it creates two historical boxes (upper and lower halves) using the **H/L** of the day that just ended.
* The current day’s box remains **live** and follows the chart until 22:30.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
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 open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
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.