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

Hi,

It's been a long time since I've been on Quantopian, other stuff got in the way, but I'm finally back. Unfortunately, I have almost no experience with python (I mostly use matlab) and Quantopian, so this question may seem obvious or dumb to some of you (sorry in advance).

I'm trying to figure out if there is a way to pass data from a scheduled function that runs on Monday on to a function that runs later in the week. The application is that my code on Monday looks at my pipeline of stocks and sets a weighting and day to purchase based on various inputs. Then, on each day of purchase, the stocks specified for purchase on that day are purchased.

Is this possible?

Thanks,

Tane

3 responses

I guess what I may be asking is if context is reset every day or if the data in context is the same on Wednesday as it was on Monday (assuming nothing altered it in between).

context isn't reset, context.mondaysdata would still be the same later in the week, you can clone this simple algo and look at the logs it produces

Thanks Dustin. That algo helped a lot.