Create return data per contract for each contrato
A position data.frame object assumed to be generated using
A boolean indicated whether returns are cumulative or daily. Defaults to FALSE
This function takes a position data.frame and uses it to compute the return of the contrato by taking the percent change
of each date's valuation and its previous valuation indicated by the column named
xts (time series) object indexed by the date and with each column representing the daily return of the contrato.
Returns are give in the form of valuation ratio (final_price/initial_price)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.