Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Schedule Function Loop?

Hello,

I am using the schedule function to filter out stocks for the day, but was wondering if theres a way to make it run more than once. I want to use the schedule function to tell parts of the algo when to start running, but I want those parts to loop every 5 mins. Is this possible?

Also, I want to store cumulative data from separate methods. How do i achieve this?

I want my algo to take the volume every 5 mins after the open and add it to a DataFrame or some sort of storage that can then be accessed in handle_data.

EX. (this isn't code, just bullet point explanation of how it should go down)

9:30 - 9:35 AAPL VOL 1000 -> DataFrame
DataFrame then has AAPL at 1000 shares of traded volume
9:35 - 9:40 AAPL VOL 1500 -> DataFrame
DataFrame now has AAPL at 2500 shares of traded volume

Thank you,
Dante Migale