Skip to content

WeightedMovingAverage.Result

property · WeightedMovingAverage · cAlgo.API.Indicators

DesktopCLICloud

Gets the resulting time series of the Weighted Moving Average indicator calculation.

Definition

IndicatorDataSeries Result {get;}
weightedMovingAverage.Result: IndicatorDataSeries

Returns IndicatorDataSeries

Examples

var weightedMovingAverage = Indicators.WeightedMovingAverage(Bars.ClosePrices, 14);
Print("Weighted Moving Average of the last closed bar: {0}", weightedMovingAverage.Result.Last(1));
weightedMovingAverage = api.Indicators.WeightedMovingAverage(api.Bars.ClosePrices, 14)
api.Print(f"Weighted Moving Average of the last closed bar: {weightedMovingAverage.Result.Last(1)}")