Description Usage Arguments Details Value
An asset is identified with an accumulator. It takes an increment and returns the asset's percent change over that increment.
1 | make_returns(x)
|
x |
a vector of prices |
An asset should in addition have as an attribute 'dates' the vector of dates over which it is defined. If left as 'NULL' it is assumed to be valid for any date. Compute absolute returns of an asset
Computes the absolute returns of an asset given its prices over some regular period, that is \frac{x_k - x_{k-1}}{x_{k-1}}.
a vector of absolute returns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.