Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
buy or sell on after x no. of days

hi, i was just wondering how to buy/sell, say spy, after meeting 2 sets of criteria .

so for example, the code will analyse data for a set of 4 days pattern, plus a following 3 days pattern, then would buy/sell based on these two criteria. any suggestions?

Thanks,
chris