Class TimeSeriesFloat
Time series for floating point data. This is mainly used for indicators.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.SimulatorV2
Assembly: TuringTrader.Simulator.dll
Syntax
public class TimeSeriesFloat : TimeSeries<double>
Constructors
| Improve this Doc 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 | |
System.Collections.Generic.List<T><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 | |
System.Threading.Tasks.Task<TResult><System.Collections.Generic.List<T><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 | |
System.Threading.Tasks.Task<TResult><object> | retrieve | task to retrieve data |
System.Func<T, TResult><object, System.Collections.Generic.List<T><BarType<double>>> | extract | function to extract data |