footlz

Cumulative Volume Delta

This indicator is called Cumulative Volume Delta (CVD), and it is the cumulative difference between buying and selling pressure.
Note, however, that it is not an exact CVD, because Pine Script does not allow you to get the Bid Volume and Ask Volume.

Instead, it uses volume and candlestick length to determine the pressure.
Example: Volume is 100, price change is +1.0% → Buying pressure is 1
  Volume is 100, price change is -0.5% → Selling pressure is 0.5

このインジケーターは、Cumulative Volume Delta(CVD)と呼ばれるもので、買い圧力と売り圧力の差を累積したものです。
しかし、Pine Scriptでは買い圧力と売り圧力(Bid VolumeとAsk Volume)を取得することはできないため、正確なCVDではないことに注意してください。

代わりに出来高とローソク足の長さで圧力を判断判断しています。
例:出来高が100、価格の変動が+1.0% → 買い圧力は1
  出来高が100、価格の変動が-0.5% → 売り圧力は0.5

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?