public static WilderMA Series(DataSeries source, int period) public WilderMA(DataSeries source, int period, string description)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators;namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { // Compare a Simple and Exponential Moving Average with Wilder's MA int n = 14; PlotSeries( PricePane, WilderMA.Series( Close, n ), Color.Lime, LineStyle.Solid, 2 ); PlotSeries( PricePane, SMA.Series( Close, n ), Color.Red, LineStyle.Solid, 1 ); PlotSeries( PricePane, EMA.Series( Close, 2*n, EMACalculation.Modern ), Color.Blue, LineStyle.Solid, 1 ); } } }