Log in to see Cloud of Tags

Wealth-Lab Wiki




public static DataSource GetDataSource(this WealthScript obj)
public static DataSource GetDataSource(this string dataSetName)
public static DataSource GetDataSource(this int barInterval, string staticProviderString)

public DataSource GetDataSource() public DataSource GetDataSource(string dataSetName) public DataSource GetDataSource(int barInterval, string staticProviderString)

Parameter Description

dataSetNameName of the DataSet associated with the DataSource to be returned
barIntervalBar Interval of the DataStore
staticProviderStringName of the Static Provider


GetDataSource is a Utility class function that returns the current DataSource object or the one that will by identified by the specified parameters. GetDataSource is used by the PositionHelper class in order to facilitate locating the WL data files, which are read by the SetTimeOfDayPriority method.


Example using C# extension methods:

using System;
using System.Text;
using WealthLab;
using WealthLab.Indicators;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { // Call the method DataSource ds = this.GetDataSource(); // The name of this DataSource Provider PrintDebug( ds.ProviderName ); } } }

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.

ScrewTurn Wiki. Some of the icons created by FamFamFam.