OPEN-SOURCE SCRIPT
Updated Not really a CVD

This is not really a CVD, more like an experiment.
Because we don't have access to bid or ask volume for BTCUSD/XBTUSD, we can't really make a CVD.
So this one instead is based on the 1 min timeframe. When the 1 min candle is up/green, the volume is positive, but when the candle is down/red, the volume is negative.
An other point is that the "security" function used in the script have an approx max history of 137 days for the 1 min timeframe.
This script is very simple but if you have any questions, feel free to ask.
Because we don't have access to bid or ask volume for BTCUSD/XBTUSD, we can't really make a CVD.
So this one instead is based on the 1 min timeframe. When the 1 min candle is up/green, the volume is positive, but when the candle is down/red, the volume is negative.
An other point is that the "security" function used in the script have an approx max history of 137 days for the 1 min timeframe.
This script is very simple but if you have any questions, feel free to ask.
Release Notes
- You can now select the resolution on which you want to base the calculation. 1min is the default value. The higher the timeframe, the lower is the precision but the longer is the history,Release Notes
- minor changesRelease Notes
- Change demo timeframe for convenienceOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.