39 public override bool IsReady => _rollingSumPriceMultipliedByVolume.IsReady && _rollingSumVolume.IsReady;
49 _rollingSumPriceMultipliedByVolume =
new Sum(name +
"_SumPxV", period);
50 _rollingSumVolume =
new Sum(name +
"_SumVolume", period);
58 : this($
"VWMA({period})", period)
69 _rollingSumPriceMultipliedByVolume.Update(input.
Time, input.
Close * input.
Volume);
70 _rollingSumVolume.Update(input.
Time, input.
Volume);
71 var sumVolume = _rollingSumVolume.Current.Value;
74 return _rollingSumPriceMultipliedByVolume.Current.Value / sumVolume;
84 _rollingSumPriceMultipliedByVolume.Reset();
85 _rollingSumVolume.Reset();