Description Usage Arguments Value Author(s)
Meta labeling, including three options: triple barriers, upper and vertical barriers, and lower and vertical barriers.
1 | label_meta(x, events, ptSl, n_ex = 0)
|
x |
a vector of prices series to be labeled. |
events |
a dataframe that has the following columns:
|
ptSl |
a vector of two multipliers for the upper and lower barriers, respectively. |
n_ex |
number of excluded observations at the begining of x; default is 0. |
data frame with the following columns:
T_up: local time index when the upper barrier is hit; Inf means that upper is not hit.
T_lo: local time index when the lower barrier is hit; Inf means that lower is not hit.
t1: local time index when the vertical barrier is hit.
ret: return associated with the event.
label: low:-1, vertical:0, upper:1.
t0Fea: begining time index of feature bars.
t1Fea: ending time index of feature bars.
tLabel: ending time index of events, i.e., when the labels are created. Both t1Fea and tLabel will be useful for sequential bootstrap.
Larry Lei Hua
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.