DataSeries Choppiness( Bars bars, 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 DCI_demo : WealthScript { private StrategyParameter paramPeriod; public DCI_demo() { paramPeriod = CreateParameter("DCI Period", 14, 2, 50, 1); } protected override void Execute() { int period = paramPeriod.ValueInt; Choppiness dci = Choppiness.Series(Bars,period); ChartPane dciPane = CreatePane( 30, true, true ); PlotSeriesOscillator( dciPane, dci, 61.8, 38.2, Color.FromArgb( 60, Color.Gray ), Color.FromArgb( 60, Color.Gray ), Color.Blue, WealthLab.LineStyle.Solid, 2 ); } } }