Hello,
I'm currently trying to perform a check for whether or not a certain criteria was met in the past 10 days using pipeline factors. For example, was the RSI > 70 in the past 10 days? Right now my code looks something like this (it's not working, of course):
RSIbase = RSI(inputs = [USEquityPricing.close], window_length = 14)
RSIhigh_10_days = RSIbase > 70 | RSIbase[-1] > 70 | RSIbase[-2] > 70, ... | RSIbase[-10] > 70
Checking just for the RSIbase works fine, it's getting the RSIbase for yesterday, and all days prior to that which isn't working, and I can't seem to find any examples doing something similar. Is there any way to actually do this?
Thanks,
David