Moving Average - Volume Weighted (VWMA)
<< Click to Display Table of Contents >> Moving Average - Volume Weighted (VWMA) |
The Volume Weighted Moving Average is a weighted moving average that uses the volume as the weighting factor, so that higher volume days have more weight. It is a non-cumulative moving average, in that only data within the time period is used in the calculation.
VWMA(int period)
VWMA(ISeries<double> input, int period)
Returns default value
VWMA(int period)[int barsAgo]
VWMA(ISeries<double> input, int period)[int barsAgo]
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.
input |
Indicator source data (?) |
period |
Number of bars used in the calculation |
// OnBarUpdate method |
You can view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.