Calculates gains based on vector or matrix of prices.
Numeric matrix with 1 column of prices for each investment (can be a vector if there is only one).
Numeric vector or matrix.
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.