TA-Lib : Technical Analysis Library

Timeseries Members

Timeseries overview

Public Static (Shared) Methods

CorrelCalculate Pearson's R correlation between two time series.
RandomTimeseriesCreate a Timeseries with a variable containing random values. The timestamps are daily starting on January 1st, 1970. The variable is named "Random".
RandomTimeseriesOHLCCreate a Timeseries with variables containing random values. The timestamps are daily starting on January 1st, 1970. The variable are named "Open", "High", "Low", "Close" with values having the following relationships: (1) High >= Close >= Low (2) High >= Open >= Low
SyncOverloaded. Synchronized two time series against each other. Interpolation will take place in both time series. (See Mode8 of SyncMode).

Public Static (Shared) Operators and Type Conversions

Addition OperatorOverloaded. Add the default variable of two time series.
Timeseries to Variable ConversionImplicit cast operator from Timeseries to Variable.

Public Instance Constructors

TimeseriesOverloaded. Initializes a new instance of the Timeseries class.

Public Instance Fields

AddConvenient access object allowing to use the time series as both the input and output for a built-in function.
ApplyConvenient access object allowing to transform an existing variable.
TimestampsArray of Timestamps. Accessible with index that range from 0 to Length-1 when Length >= 1

Public Instance Properties

AllowEmptyVariablesThe user can choose to be notified or not by an exception when an operation did generate and empty variable because of lack of sufficient data from the inputs variables.
CloseAllows direct access to the variable named "Close". If such variable does not exist, an exception is thrown.
DefaultAllows direct access the the default variable of this timeseries.
HighAllows direct access to the variable named "High". If such variable does not exist, an exception is thrown.
InterpolationSpecify how missing values are calculated on interpolation. Variable can overide this value with their own Interpolation property.
ItemAccess by name to variable belonging to this Timeseries.
LengthWhen Length is different than zero, Length represents the range of the index [0..Length-1]
LowAllows direct access to the variable named "Low". If such variable does not exist, an exception is thrown.
NaturalPeriodControl the NaturalPeriod for this timeseries.
OpenAllows direct access to the variable named "Open". If such variable does not exist, an exception is thrown.
PaddingUser can enable padding of a time series for the purpose to iterate on the whole range of values among all variables.
PeriodicitySpecify the amount of time that are covered by each value.
SyncModeSpecify the action taken when synchronization is required when a variable is being added.
TimestampTypeControl the TimestampType for this timeseries.
VolumeAllows direct access to the variable named "Volume". If such variable does not exist, an exception is thrown.

Public Instance Methods

AddVariableBuild a new named variable from an existing array of double. The first entry in the array is assumed aligned with the first timestamps that was used to build this timeseries.
ApplyToSelect a variable to which transformation will be applied.
AroonTechnical analysis function Aroon.
CloneMake a deep copy of the Timeseries. The new timeseries is independent with a copy of all the variable(s) and their value(s).
ConvertBarPeriodOverloaded. Compress or expand the "Open","High","Low","Close","Volume" and "OpenInterest" to a different periodicity. The new variables are returned in a new Timeseries.
ConvertPeriodOverloaded. Compress or expand the default variable to a different periodicity. The new variable is returned in a new Timeseries.
CorrelValueReturn the Pearson correlation between the first two default variables.
CreateBarCreate a new timeseries with Open, High, Low, Close variables at the specified period. The input is the default vaiable. Data compression and expansion will take place when needed e.g. a variable that is of period of 1 second can be compress into hourly bar.
DeleteDelete the specified variable.
delValueOverloaded. Delete all values at the specified dateTime.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
ExistOverloaded. Verify if a variable exist in this timeseries.
GetEnumeratorAllows to iterate the list of variable belonging to this time series.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
GetVarAccess a variable by name.
MacdMoving Average Convergence/Divergence
RenameOverloaded. Rename the default variable. Take note that upon rename, the variable might not be the default anymore.
SelectAllows to express concisely the creation of a new timeseries by enumerating a subset of variables of this timeseries. Example: Timeseries ts2 = ts1.Select( "Open", "Close" ); will create a new timeseries ts2 with a copy of the variable "Open" and "Close" of the timeseries ts1.
SelectInOrderAllows to express concisely the creation of a new time series built with variables in a specific order. The variables name in the new time series are unspecified. The user can only assume that the variables names are in the proper sorted order.
SetAllVarAdd all variables from a timeseries at once. The variable name will be appended with the specified prefix.
SetVarOverloaded. Add a variable to this time series with the specified name. If a variable of the same name already exist, it will be replaced.
SmaSimple moving average.
ToString (inherited from Object)Returns a String that represents the current Object.
TypPriceTypical price. High+Low+Close/3.0;

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

Timeseries Class | TA.Lib Namespace