copesprings

Volume Density Candle

copesprings 已更新   
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), abs(low - close))".
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.
版本注释:
Added "Max Transparency" setting to avoid invisible candle.
Fixed a bug when the price range is 0.
版本注释:
Removed candles with no price change from average calculation.
版本注释:
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.
版本注释:
Added an option to change the max deviation rate.
版本注释:
Minor fix.
版本注释:
Fixed max deviation rate option.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?