OPEN-SOURCE SCRIPT
Daily BB (Historical Plotting with RTH/ETH/24H)

Daily BB (RTH/ETH/24H) projects Daily Bollinger Bands onto intraday charts using Regular Trading Hours (RTH) daily data as the underlying daily reference.
The script plots a projected Daily Bollinger Band basis together with projected upper and lower bands. By default, the basis uses a 20-day calculation and the bands use ±2 standard deviations. The length, standard-deviation multiplier, and band fill can be adjusted in the indicator settings.
Unlike a standard Bollinger Band calculated from the chart’s intraday bars, this indicator maintains a Daily calculation. Completed RTH daily closes provide the historical portion of the Daily window, while the current intraday price is used as the projected close for the unfinished Daily period. This allows the Daily basis and bands to update throughout the trading day rather than remaining fixed until the Daily candle closes.
The indicator is designed for use on intraday charts with TradingView’s RTH, ETH, or 24H session settings. Daily history is sourced from the symbol’s regular trading session, so overnight and extended-hours prices can update the projected Daily values without becoming separate completed Daily observations.
Daily rollover is based on the New York calendar date. On normal 24H weekdays, the projected Daily window advances at 00:00 ET. After a weekend, TradingView has no intervening Saturday bars and does not resume data until Sunday evening. Sunday 20:00 ET is therefore the first available Sunday candle, so the projection can reseed there using Friday’s completed RTH close. This does not create a Sunday RTH Daily candle. At Monday 00:00 ET, there may be no additional visible seed change because Sunday did not produce a completed RTH Daily candle.
At the first RTH bar, the script synchronizes the projection with the confirmed RTH Daily history. Higher-timeframe data requests are structured so unfinished Daily values are not inserted into earlier historical bars.
How to use it: The projected bands show where the Daily Bollinger Band would be if the current intraday price were the Daily close. They can therefore be used to view the developing Daily BB structure before the session has finished. The values remain projections until the applicable RTH Daily candle is complete.
This script uses the same RTH-based projected Daily framework as my Daily SMA indicator, but performs a distinct Bollinger Band calculation. In addition to the projected Daily mean, it calculates projected Daily variance and standard-deviation bands to produce the upper and lower envelope. This provides functionality beyond a moving-average variation and is intended for traders who want developing Daily Bollinger Band context visible directly on an intraday RTH, ETH, or 24H chart.
The script plots a projected Daily Bollinger Band basis together with projected upper and lower bands. By default, the basis uses a 20-day calculation and the bands use ±2 standard deviations. The length, standard-deviation multiplier, and band fill can be adjusted in the indicator settings.
Unlike a standard Bollinger Band calculated from the chart’s intraday bars, this indicator maintains a Daily calculation. Completed RTH daily closes provide the historical portion of the Daily window, while the current intraday price is used as the projected close for the unfinished Daily period. This allows the Daily basis and bands to update throughout the trading day rather than remaining fixed until the Daily candle closes.
The indicator is designed for use on intraday charts with TradingView’s RTH, ETH, or 24H session settings. Daily history is sourced from the symbol’s regular trading session, so overnight and extended-hours prices can update the projected Daily values without becoming separate completed Daily observations.
Daily rollover is based on the New York calendar date. On normal 24H weekdays, the projected Daily window advances at 00:00 ET. After a weekend, TradingView has no intervening Saturday bars and does not resume data until Sunday evening. Sunday 20:00 ET is therefore the first available Sunday candle, so the projection can reseed there using Friday’s completed RTH close. This does not create a Sunday RTH Daily candle. At Monday 00:00 ET, there may be no additional visible seed change because Sunday did not produce a completed RTH Daily candle.
At the first RTH bar, the script synchronizes the projection with the confirmed RTH Daily history. Higher-timeframe data requests are structured so unfinished Daily values are not inserted into earlier historical bars.
How to use it: The projected bands show where the Daily Bollinger Band would be if the current intraday price were the Daily close. They can therefore be used to view the developing Daily BB structure before the session has finished. The values remain projections until the applicable RTH Daily candle is complete.
This script uses the same RTH-based projected Daily framework as my Daily SMA indicator, but performs a distinct Bollinger Band calculation. In addition to the projected Daily mean, it calculates projected Daily variance and standard-deviation bands to produce the upper and lower envelope. This provides functionality beyond a moving-average variation and is intended for traders who want developing Daily Bollinger Band context visible directly on an intraday RTH, ETH, or 24H chart.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.