TAIndicator | R Documentation |
An R6 class for technical analysis indicator(s). Its purpose is to facilitate calculations on time-series of data. The fields specify the 'func' and parameters for the calculation(s). The indicator(s) can be constructed with the function 'taFactory()'.
TDI::baseTDI
-> TAIndicator
label
Unique label for the indicator.
method
Indicator calculation method.
columns
List with input data column(s).
args
Arguments for the calculation.
new()
Object constructor for class 'taIndicator'.
TAIndicator$new(label, method, columns, args = list())
label
Label for the indicator.
method
Method to calculate the indicator.
columns
List of input data column(s).
args
List of arguments for the indicator function.
An object of class 'taIndicator'.
calculate()
Calculate the indicator for the time series.
TAIndicator$calculate(x)
x
Time-series object with input data.
xts Time-serie with the indicator(s).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.