OPEN-SOURCE SCRIPT
Volume Difference Indicator

This indicator is a simple volume difference indicator.
How it works:
First we calculate the on balance volume, and then we calculate the price volume trend.
For those unaware, the OBV subtracts all volumes when price records a lower close and adds them in the case of a higher price close. In contrast, PVT subtracts or adds only a proportion of the volume from its cumulative total in relation to a percentage change in price.
Using this knowledge, we are using the difference of OBV (the indicator with the entire amount added or subtracted), minus PVT (which subtracts a percent based on the percentage in price), this gives us a unique indicator which out puts a more whole picture of the two indicators. It shows us the difference of absolute volume minus relative volume based on the percent of close price. It allows us to see large shifts in volume BEFORE it happens.
How to use this indicator:
When there is a sharp increase of Volume Difference Indicator, but close has NOT risen, price tends to rise immediately following this. When the Volume Difference Indicator drops, but price has NOT changed, price tends to fall immediately following this.
How it works:
First we calculate the on balance volume, and then we calculate the price volume trend.
For those unaware, the OBV subtracts all volumes when price records a lower close and adds them in the case of a higher price close. In contrast, PVT subtracts or adds only a proportion of the volume from its cumulative total in relation to a percentage change in price.
Using this knowledge, we are using the difference of OBV (the indicator with the entire amount added or subtracted), minus PVT (which subtracts a percent based on the percentage in price), this gives us a unique indicator which out puts a more whole picture of the two indicators. It shows us the difference of absolute volume minus relative volume based on the percent of close price. It allows us to see large shifts in volume BEFORE it happens.
How to use this indicator:
When there is a sharp increase of Volume Difference Indicator, but close has NOT risen, price tends to rise immediately following this. When the Volume Difference Indicator drops, but price has NOT changed, price tends to fall immediately following this.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.