Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to use schedule_function to run every X days?

How can I use schedule_function to run , for example, every 40 days?

3 responses

And to make sure that it fires on a business day.

Try attached code. N is set to run every 7 days that market is open.

Richard

A question to the Quantopian developers? Is it possibile to code an own date_rule? Could you provide us with some examples?

Thanks
Costantino