public static DX Series(Bars bars, int period)
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() { // Show how Average Directional Movement (ADX) relates to DX on the chart ChartPane ADXPane = CreatePane( 50, true, true ); PlotSeries( ADXPane, DX.Series( Bars, 20 ), Color.DarkGray, WealthLab.LineStyle.Histogram, 3 ); PlotSeries( ADXPane, ADX.Series( Bars, 20 ), Color.Blue, WealthLab.LineStyle.Solid, 3 ); } } }