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