copesprings

Volume Density Candle

copesprings Telah dikemas kini   
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.
Nota Keluaran:
Added "Max Transparency" setting to avoid invisible candle.
Fixed a bug when the price range is 0.
Nota Keluaran:
Removed candles with no price change from average calculation.
Nota Keluaran:
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.
Nota Keluaran:
Added an option to change the max deviation rate.
Nota Keluaran:
Minor fix.
Nota Keluaran:
Fixed max deviation rate option.
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

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.

Ingin menggunakan skrip ini pada carta?