← Script Marketplace
Open-source scriptindicator/v1

Volume-Weighted Moving Average

by Kodexius·@kodexius·

Weight a moving price average by traded volume to emphasize more active periods.

#moving-average#volume#vwma
Volume-Weighted Moving Average chart preview

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
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View 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

Loading…

No comments yet. Start the discussion.