Description Usage Arguments Value Examples
Using moving averages to compute the z-score of the ratio at each given time. This will tell us how extreme the ratio is and whether it's a good idea to enter a position at this time.
1 | zscores.ma(t, long = 60, short = 10)
|
t |
a time-series to be normalized |
long |
days of long-term moving averages |
short |
days of short-term moving averages |
A normalized time-series
1 2 3 | library(quantmod)
getFX("AUD/USD")
zscores.ma(AUDUSD, 60, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.