public static double[] ToArray(this DataSeries ds)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using System.Linq; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions, 2012.10 or later***/namespace WealthLab { public class MyStrategy : WealthScript { protected override void Execute() { var ds2List = Bars.Close.ToArray(); var dsAverage = ds2List.Average( i => i ); PrintDebug(dsAverage); } } }