Description Usage Arguments Value
View source: R/labeling_triple_barrier.R
Exponential moving average standard deviation
1 | apply_pt_sl_on_t1(price, events, pt_sl = c(1, 1))
|
price |
xts or data.table with index and price columns |
events |
Indices that signify "events" (e.g. CUSUM events) |
pt_sl |
Element 0, indicates the profit taking level; Element 1 is stop loss level |
data.table; timestamps of when first barrier was touched
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.