Files
2024-01-25 04:03:36 +03:30

13 lines
415 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# VWMA
Volume-Weighted Moving Average (VWMA)
## Calculation process
TradingView calculates the Volume-Weighted Moving Average with two Simple Moving Averages (SMAs) [1] . The first SMA multiplies each bar’s data with that bar’s volume. The second SMA is the volume average. Dividing those gives the VWMA.
```pine
pine_vwma(source, length) =>
ta.sma(source * volume, length) / ta.sma(volume, length)
```