Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Monday after first Friday

I need to schedule a function to run on the Monday after the first Friday of the calendar month. As an experienced programmer, but newbee to Python, I need help in figuring out how to do this.

Thanks in advance.

1 response

Use schedule_function() to run your function every Monday. Then at the top of your monday function check if get_datetime().day is between the 4th and 10th of the month (inclusive), and if not just return.