Open-source scriptindicator/v1
Volume-Weighted Moving Average
Weight a moving price average by traded volume to emphasize more active periods.
#moving-average#volume#vwma
Description
The Volume-Weighted Moving Average combines price and volume inside a rolling window. Bars with more activity have greater influence, which can help compare the prevailing traded price with the current market price.
Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.
Release notes
Version history · 1 published version
Version 1CurrentChart updatedVolume-Weighted Moving Average · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("Volume-Weighted Moving Average", { overlay: true });
const length = input.int("Length", 20, { min: 1, max: 500 });
const source = input.source("Source", "close");
plot(vwma(source, length), { title: "VWMA", color: "#00bcd4", lineWidth: 2 });
Community discussion
0 comments
No comments yet. Start the discussion.