Initial Commit ...
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# 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)
|
||||
```
|
||||
Reference in New Issue
Block a user