Poor man's volume profile

The code is generated using a template. To change the settings, you may need to regenerate the code. The code has a link to the repository with the template.
- Decouple width of history and recent profiles
- Make profile value independent from profile height
- Fix width with disabled history/last profiles
- Do not clip recent profile
- Fix server study error by adding max_bars_back.
- Rewrite code to make it simpler but slower.
- Add option to use custom ticker as volume source.
- Use nz() instead of own nan_to_float()
- Fix history block offset
Study has been significantly optimized. Now you can set the profile size up to 500 bars (limit can be lifted if you change max_bars_back in the source code).
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.