Skip to content

Market stats data sources

2 messages · Dan Avery, Brian G. Peterson

#
Dan Avery wrote:
Normally I would calculate the stats you are talking about from the 
price history.  Both 'quantmod' and 'PerformanceAnalytics' have a number 
of functions to pull out trends, runs, and drawdown periods from a time 
series of prices or returns.

Regards,

   - Brian