OPEN-SOURCE SCRIPT
Mis à jour

Volume Density Candle

5 127
A candle chart that indicates congestion or resistance by the color of each candle.

The transparency of each candle is based on volume density.
Volume density is calculated as follows.
Volume density = Volume / Price range
Price range uses true range "max(high - low, abs(high - close[1]), abs(low - close[1]))".
Since volume density varies drastically by stock or time, the transparency is calculated based on the deviation rate from the average volume density.

If the candle is shorter and the color is brighter (less transparency), there is more transactions in the narrow price range than usual, and it could mean the candle's price range is congestion or resistance.
If the price breaks through that price range or rebounds from it, the price could move further in that direction.
Notes de version
Added "Max Transparency" setting to avoid invisible candle.
Fixed a bug when the price range is 0.
Notes de version
Removed candles with no price change from average calculation.
Notes de version
Added options to exclude the first or last candle of the intraday session from the average because those two candles distort the average in some markets.
Notes de version
Added an option to change the max deviation rate.
Notes de version
Minor fix.
Notes de version
Fixed max deviation rate option.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.