public static void CreatePaneList(this WealthScript obj, DataSeries[] dsArray) public static void CreatePaneList(this WealthScript obj, List<DataSeries> dsList)public void CreatePaneList(DataSeries[] dsArray) public void CreatePaneList(List<DataSeries> dsList)
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() { //Creation from array //DataSeries[] dsArray = new DataSeries[] { Open, Close, High, Low, Volume }; //this.CreatePaneList( dsArray ); //Creation from List List<DataSeries> dsList = new List<DataSeries>(); dsList.Add(Open); dsList.Add(Close); dsList.Add(High); dsList.Add(Low); dsList.Add(Volume); this.CreatePaneList( dsList ); } } }
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; using Community.Components;namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { Utility u = new Utility(this); //Creation from array //DataSeries[] dsArray = new DataSeries[] { Open, Close, High, Low, Volume }; //u.CreatePaneList( dsArray ); //Creation from List List<DataSeries> dsList = new List<DataSeries>(); dsList.Add(Open); dsList.Add(Close); dsList.Add(High); dsList.Add(Low); dsList.Add(Volume); u.CreatePaneList( dsList ); } } }