Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Suggestion: add more timeframes

Hello,

I would like to suggest you add more timeframes, especially monthly, weekly, hourly.

Thanks,

JM

5 responses

You can roll your own hourly data by aggregating minute data every event. Check the time and reset every hour.

How does someone calculate monthly and weekly data though?

Say, if I wanted to compare something two weeks ago like a macd histogram to one last week?

Steven

Hello Steven,

The batch transform provides access to a trailing window of data. Or as Dennis describes above, you can make your own accumulator by storing the data in a context variable.

Grant

Hello,

timeframes FREQUENCY=monthly, yearly, hourly... how to implement in research...

Thanks

Pandas resample