TA-Lib : Technical Analysis Library

Variable.CreateBar Method 

Create a new timeseries with Open, High, Low, Close variables at the specified period. 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.

[Visual Basic]
Public Function CreateBar( _ 
   ByVal newPeriod As Periodicity _ 
) As Timeseries
[C#]
public Timeseries CreateBar(
   Periodicity newPeriod
);
[C++]
public: Timeseries* CreateBar(
   Periodicity newPeriod
);
[JScript]
public function CreateBar(
   Periodicity newPeriod
): Timeseries;

Parameters

newPeriod
is the periodicity of the new timeseries created.

Return Value

The new timeseries.

See Also

Variable Class | TA.Lib Namespace