Table of Contents

Class DataSource

Namespace
Balsam
Assembly
Balsam.Backtester.dll

Encapsulates information about a datasource, typically from a call to a BarServer.

public class DataSource : ICloneable
Inheritance
DataSource
Implements
Inherited Members
Extension Methods

Properties

BarServer

Gets the type of BarServer used.

public string BarServer { get; set; }

Property Value

string

Directory

Gets the directory from which the data was read.

public string Directory { get; set; }

Property Value

string

EndDate

Gets the end date passed to the bar server.

public DateTime EndDate { get; set; }

Property Value

DateTime

StartDate

Gets the start date passed to the bar server.

public DateTime StartDate { get; set; }

Property Value

DateTime

Symbols

Gets the symbols that were loaded. Does not include those that were requested but not returned.

public string[] Symbols { get; set; }

Property Value

string[]

Methods

Load(string)

Loads a json text file representation.

public static DataSource Load(string fileName)

Parameters

fileName string

Returns

DataSource

Save(string)

Saves this DataSource to a json text representation.

public void Save(string fileName)

Parameters

fileName string