Summary
The Weighted Moving Average smoothes the price data producing a trend indicator.
Syntax
public WeightedMovingAverage WeightedMovingAverage(DataSeries source, int periods)
Parameters
Name | Description |
---|
Example 1
private WeigthedMovingAverage wma; protected override void Initialize() { wma = Indicators.WeightedMovingAverage(MarketSeries.Close, 20); } public override void Calculate(int index) { Result[index] = wma.Result[index]; }