OPEN-SOURCE SCRIPT

Buy/Sell Volume Calculator

Updated
This script is calculating difference between buy and sell orders, realtime when the candle is build, using the accessible data.
Since we do not know how many stocks every single trade is executing, It only can use number of trades, showing how many trades resulting in price raising or lowering.
But it seems to be pretty god anyway.
The script is supposed to be a fine tuning when a trade is running, and early signals is needed.
When the green candle is larger than the red, price is supposed to rice, and the other way around when the red candle is larger the the green.
It calculate ONLY realtime. When starting the script there is no data, until candlesticks is builded.
Release Notes
Scale moved to zero, and not open price
Release Notes
Code is optimized and percent calculation added after request
Release Notes
Percentage added in this new version, and a weighted calculation, using same formula as WVAP
Release Notes
Version 1.1
Release Notes
Percent added for the weighted calculation
Release Notes
Updated with a more informative and useful way of showing the candlesticks.
Volume

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer