Description Usage Arguments Value
Used to calculate close-to-close, open-to-close, etc, returns from given price matrices. Duration can be 0 or any positive integers.
1 | SimpleReturn(priceFrom, priceTo, diff = 0)
|
priceFrom |
A matrix with the beginning prices. |
priceTo |
A matrix with the ending prices. |
diff |
Number of rows for the two matrices' dislocation. |
A matrix, of corresponding returns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.