public McGinleyDynamic(DataSeries ds, int period, string description) public static McGinleyDynamic Series(DataSeries ds, int period)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; using Community.Indicators;namespace WealthLab.Strategies { public class MyStrategy : WealthScript { private StrategyParameter paramPeriod; public MyStrategy() { paramPeriod = CreateParameter("Period", 10, 2, 100, 2); } protected override void Execute() { int period = paramPeriod.ValueInt; McGinleyDynamic mcgd = McGinleyDynamic.Series( Close,period ); PlotSeries( PricePane, mcgd, Color.Blue, LineStyle.Solid, 1 ); PlotSeries( PricePane, SMA.Series( Close,period ), Color.Red, LineStyle.Solid, 1 ); } } }