This helper function calculates the summary of the input data set. The function takes in the sliced data set and the calculated trading frequency, and calculate statistics about the market value, returns and volatility for later display.
is the input data set. Such data set has been sliced by slice_data function, and is labeled as "intermediate data set".
f A list that contains all calculated numbers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.