Description Usage Arguments Details Value Author(s) Examples

Calculate the (rate of) change of a series over `n`

periods.

1 2 3 4 |

`x` |
Price, volume, etc. series that is coercible to xts or matrix. |

`n` |
Number of periods to use. |

`type` |
Compounding type; either |

`na.pad` |
Should periods prior to |

The ROC indicator provides the percentage difference of a series over two observations, while the momentum indicator simply provides the difference.

A object of the same class as `x`

or a vector (if
`try.xts`

fails) containing the rate-of-change (or
return) values for `ROC`

or a vector containing the
differenced price series for `momentum`

.

Joshua Ulrich

1 2 3 |

```
```

TTR documentation built on April 15, 2017, 8:31 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.