OPEN-SOURCE SCRIPT
Diupdate Candle Overlay

Candle Overlay draws higher-timeframe candles directly on top of your current chart, so you can see the bigger-picture trend without switching timeframes or opening a second chart.
Each higher-timeframe candle is rendered as a box (body) with connecting wick lines, built directly from your chart's own bars — no repainting, no lag.
Features:
If the selected higher timeframe isn't actually higher than your chart's own timeframe, the overlay simply won't draw anything — set the timeframe input to something coarser than your chart to see it.

Each higher-timeframe candle is rendered as a box (body) with connecting wick lines, built directly from your chart's own bars — no repainting, no lag.
Features:
- Any higher timeframe — pick the timeframe to overlay (defaults to 4H), independent of your chart's own timeframe.
- Custom candle start time — anchor the candle grid to a specific time of day (e.g. start blocks at 5:00 instead of midnight), in a timezone of your choosing.
- Live or closed-only candles — optionally hide the still-forming candle and only show completed ones.
- Full color control — separate fill and border colors for up vs. down candles, plus adjustable border thickness.
- Performance-friendly — automatically prunes older candles past a configurable limit so the chart stays fast on long histories.
If the selected higher timeframe isn't actually higher than your chart's own timeframe, the overlay simply won't draw anything — set the timeframe input to something coarser than your chart to see it.
Catatan Rilis
Fixed a visual bug where the currently forming candle's wick could be hidden under the previous candle's border, and fixed the forming candle briefly showing the wrong color (or Pine's default blue) on its very first bar.Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.