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
Directory
Gets the directory from which the data was read.
public string Directory { get; set; }
Property Value
EndDate
Gets the end date passed to the bar server.
public DateTime EndDate { get; set; }
Property Value
StartDate
Gets the start date passed to the bar server.
public DateTime StartDate { get; set; }
Property Value
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
Save(string)
Saves this DataSource to a json text representation.
public void Save(string fileName)
Parameters
fileName
string