OPEN-SOURCE SCRIPT
3D Candles & Volume [Afnan]

This script takes a small group of candles and builds a shaded 3D exhibit from their OHLC and volume data. Candle bodies and centred wicks sit above a matching volume shelf. It's an alternative view of candle structure, not another trading signal.
How it's drawn
The renderer projects 3D coordinates into the pane and draws the faces with Pine's polylines. Faces are shaded and depth-sorted. Wicks pass through the centre of each body, with the covered part of the lower wick hidden behind opaque faces.
Volume sits below its corresponding candle on a separate scale. Prism height is proportional to volume relative to the largest sample in the selection. Body depth can also respond to volume, using square-root scaling with a baseline and spacing limits. That depth is a visual encoding—not order-book liquidity. Missing volume uses fixed body depth.
Getting started
The default view shows the 10 latest candles, so panning the chart won't select a different group. Switch to Visible window when you want to inspect historical bars. The enlarged candles are arranged as a right-aligned exhibit; their horizontal positions are not their original chart timestamps.
Keep the pane on Auto scale and leave enough height for the title and OHLC readout. Start with Readable Front, then change the camera settings to rotate the scene. OHLC inspection gives you a flat view. Materials, palettes and the volume shelf are adjustable.
A few things to keep in mind: price height is linear within the selected range, and both price and volume normalization change with the selected bars. Rotation also changes their screen positions, so use the readout for exact OHLC values of the latest selected candle. Developing candles update until close; turn that option off to include only confirmed bars.
This is a projected 3D visualization built with Pine drawings, not a native 3D chart. Very narrow views and distant history are still subject to drawing limits.
How it's drawn
The renderer projects 3D coordinates into the pane and draws the faces with Pine's polylines. Faces are shaded and depth-sorted. Wicks pass through the centre of each body, with the covered part of the lower wick hidden behind opaque faces.
Volume sits below its corresponding candle on a separate scale. Prism height is proportional to volume relative to the largest sample in the selection. Body depth can also respond to volume, using square-root scaling with a baseline and spacing limits. That depth is a visual encoding—not order-book liquidity. Missing volume uses fixed body depth.
Getting started
The default view shows the 10 latest candles, so panning the chart won't select a different group. Switch to Visible window when you want to inspect historical bars. The enlarged candles are arranged as a right-aligned exhibit; their horizontal positions are not their original chart timestamps.
Keep the pane on Auto scale and leave enough height for the title and OHLC readout. Start with Readable Front, then change the camera settings to rotate the scene. OHLC inspection gives you a flat view. Materials, palettes and the volume shelf are adjustable.
A few things to keep in mind: price height is linear within the selected range, and both price and volume normalization change with the selected bars. Rotation also changes their screen positions, so use the readout for exact OHLC values of the latest selected candle. Developing candles update until close; turn that option off to include only confirmed bars.
This is a projected 3D visualization built with Pine drawings, not a native 3D chart. Very narrow views and distant history are still subject to drawing limits.
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.
Access the powerful Demand and Supply Zone Pro indicator at:
marketup2date.com
Stay updated on Telegram:
t.me/MarketUp2Date
Join our WhatsApp channel:
whatsapp.com/channel/0029Va6ByyH0LKZCc4Az4x0u
marketup2date.com
Stay updated on Telegram:
t.me/MarketUp2Date
Join our WhatsApp channel:
whatsapp.com/channel/0029Va6ByyH0LKZCc4Az4x0u
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.
Access the powerful Demand and Supply Zone Pro indicator at:
marketup2date.com
Stay updated on Telegram:
t.me/MarketUp2Date
Join our WhatsApp channel:
whatsapp.com/channel/0029Va6ByyH0LKZCc4Az4x0u
marketup2date.com
Stay updated on Telegram:
t.me/MarketUp2Date
Join our WhatsApp channel:
whatsapp.com/channel/0029Va6ByyH0LKZCc4Az4x0u
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.