I took the Volume Profile from kv4coins and added different colors to identify net bearish and net bullish volume. The original code required me to switch the settings from bullish, bearish, or both, but both was monochromatic, so I couldn't identify the sells from the buys. The author recommended opening up two instances of the script, one for bullish and one for bearish, but I would have to upgrade my TV account to display more scripts. So this combines the two.
Here is the original explanation: ______________________________________________________________________ This is a Volume Profile based on pine script arrays. The main idea behind this script is from the user IldarAkhmetgaleev[script: Poor man's volume profile]. He created an awesome piece of code for free users on tradingview. Here are some changes to the main script: 0. Used Pine Script Arrays for doing/storing calculations. 1. The bar labels are replaced with lines. 2. Added a POC line. 3. Bar growing directions changed from right to left. 4. Added an option to change bar width.
Inputs: 0. Volume Lookback Depth [10-1000] : Number of bars to look back for volume calculations. 1. Bar Length Multiplier [10-100] : Bar length multiplier to make bar long or short. 2. Bar Horizontal Offset [0-100] : Horizontal distance from the current bar in the right direction. 3. Bar Width [1-20] : Width of the bars. 4. Show POC Line : Show or hide the POC line.
Happy trading. Oct 20, 2020 Release Notes Added option for changing Bar and POC line colors. Nov 12, 2020 Release Notes According to the latest update from the Tradingview, now we can define number of drawable lines in the study parameter as 'max_lines_count' up to the 500. So here are our Volume Profile script with updated features.
Changes: 1. Added option for setting number of bars from 10 to 500. 2. Codes cleaned little bit. Feb 22, 2021 Release Notes Added delta option as suggested by @NXT2017. Options: Both, Bullish and Bearish.
Both: bullish and bearish both candles ae used to calculate volume profile (default). Bullish: only bullish candles are used. Bearish: only bearish candles are used. Feb 22, 2021 Release Notes For viewing delta in volume profile, add this indicator two times and set delta type to bullish on the first one and bearish on the second one, now set same bar numbers on both.
Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.