Class TimeSeriesFloat
Time series for floating point data. This is mainly used for indicators.
Inherited Members
Namespace: TuringTrader.SimulatorV2
Assembly: TuringTrader.Simulator.dll
Syntax
public class TimeSeriesFloat : TimeSeries<double>
Constructors
| Edit this page View SourceTimeSeriesFloat(Algorithm, string, List<BarType<double>>)
Create and cache new time series.
Declaration
public TimeSeriesFloat(Algorithm owner, string name, List<BarType<double>> data)
Parameters
Type | Name | Description |
---|---|---|
Algorithm | owner | |
string | name | |
List<BarType<double>> | data | data for time series |
TimeSeriesFloat(Algorithm, string, Task<List<BarType<double>>>)
Create and cache new time series.
Declaration
public TimeSeriesFloat(Algorithm owner, string name, Task<List<BarType<double>>> retrieve)
Parameters
Type | Name | Description |
---|---|---|
Algorithm | owner | |
string | name | |
Task<List<BarType<double>>> | retrieve | task to retrieve data |
TimeSeriesFloat(Algorithm, string, Task<object>, Func<object, List<BarType<double>>>)
Create and cache new time series.
Declaration
public TimeSeriesFloat(Algorithm owner, string name, Task<object> retrieve, Func<object, List<BarType<double>>> extract)
Parameters
Type | Name | Description |
---|---|---|
Algorithm | owner | |
string | name | |
Task<object> | retrieve | task to retrieve data |
Func<object, List<BarType<double>>> | extract | function to extract data |