Wealth-Lab Wiki

API ChartStyles Community Components Community Indicators IndexDefinitions Knowledge Base Misc Optimizers Pending Deletion PosSizers Providers Standard Indicators TASC Traders Tips TASCIndicators Tutorial Videos Visualizers
RSS

Navigation


Quick Search
»
Advanced Search »


CreatePaneList

RSS

Syntax


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)

Parameter Description

dsArrayArray of DataSeries or...
dsList...List of DataSeries

Description

This handy shortcut method allows to plot multiple DataSeries at once w/o having to create ChartPanes. Before using, create a List or an array, add to it as many DataSeries as you like, and then call CreatePaneList.

Example

Example below plots five DataSeries (OHLCV) to an array and plots them at once:

Example using C# extension methods:


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 ); } } }

Legacy syntax example:


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 ); } } }

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.

Used under license from FMR Corp. Copyright 2008 FMR Corp. All rights reserved.


ScrewTurn Wiki. Some of the icons created by FamFamFam.