Description Usage Arguments Examples
a funtion which an help you do forward sampling easier
1 | ForwardSlidingWindow(accRt, win_size)
|
accRt |
an accumulate return xts object |
win_size |
the size of forward sampling slide window |
1 2 | Xt = getSymbols('2330.TW', auto.assign = F)
Xt %>% Pt2Rt %>% ForwardSlidingWindow(20) %>% head
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.