I'm trying to figure out how to code a signal for an event that happened within the last 5 days. I know how to check to see if it happened a fixed # of days ago, but it's the range I'm having trouble with.
Specifically, in this example I want to know if the W%R went below -80 or above -20 at any time within the last 5 periods (days in this case). How does one code this sort of thing?
Thanks!
Jonathan
Specifically, in this example I want to know if the W%R went below -80 or above -20 at any time within the last 5 periods (days in this case). How does one code this sort of thing?
Thanks!
Jonathan
Comment