Description Usage Arguments Value See Also Examples
Creates a ranking by strength of simple moving average deviation
over time.
Uses the TTR::ROC
function for rate-of-change value.
Uses the TTR:SMA
function for moving average of the value.
Applies the TTR::runSD
running standard deviations.
Computes strength as strength <- (x - sma) / rd
.
Uses the discrete ROC type.
1 | strength_SMA(x, roc_n = 1, sigma_n = 5, sma_n = 10)
|
x |
price history as XTS, more than one column of asset prices. |
roc_n |
ROC lookback period in same periodicity as |
sigma_n |
running standard deviation period lookback; default 5. |
sma_n |
simple moving average period lookback; default 10 |
a row rank as determined by row_rank
row_rank, TTR::ROC, TTR::runSD
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.