Skip to content
Prev 8068 / 15274 Next

Volume stats and 5 minute bars

On Thu, Jun 16, 2011 at 2:08 PM, Noah Silverman <noahsilverman at ucla.edu> wrote:
Look at the source for apply.daily and write an analogous
apply.minutely function (with an arg to specify the number of
minutes).  Or just use period.apply:

R> period.apply(x, endpoints(x, "minutes", 5), function(y) c(mean(y), sd(y)) )
HTH,
--
Joshua Ulrich  |  FOSS Trading: www.fosstrading.com