Hello, I would like to implement a statistic to show the Tail Ratio.
To psudocode is the following:

// Get all the daily profit returns as a %
// orderedDailyProfits = order them from lowest to highest.
// get 5% of the number of days. (250 days would = 12.5 ~ 13
// get SUM(orderedDailyProfits[0:13]) / SUM(orderedDailyProfits[-13:-1])

So my question is, how can I get a list of all the daily returns? : -)

Author