OPEN-SOURCE SCRIPT

Volume Weighted Price Over A Moving 60 Bar Window

// By S.Black
// 4/24/2019
// Pine on TradingView.com
//
// This plot takes a simple 60 bar window
// For each bar in the window 3 things are plotted:
// 1.) The volume-weighted average, each bar's volumne * price summed, then divided by total volume
// 2.) The simple 60 bar average (not weighted)
// 3.) The close price (for reference)
//
// Green is used when the weighted price is above the average
// This is meant to indicate that actually, by volume the stock may be worth more that it is currently trading at.
// I made a new script was because I didn't see one that had a rolling hour window.
Moving AveragesVolume

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