update_ema | R Documentation |
Efficient EMA updates
update_ema(x_new, ema_last, alpha, n)
x_new |
the new log-return value |
ema_last |
the last ema value |
alpha |
the smoothing factor |
n |
the total size |
vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.