OPEN-SOURCE SCRIPT
已更新 Volume Density Candle

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.
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.
發行說明
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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。