Quick question - is there a compact way to write the following: Close > At least 4 of the previous 5 Closes
I know I can write out each case like: Case_1 = C > ref(C,-1) and C > ref(C,-2)and C > ref(C,-3)and C > ref(C,-4)and C > ref(C,-5) Case_2 = C < ref(C,-1) and C > ref(C,-2)and C > ref(C,-3)and C > ref(C,-4)and C > ref(C,-5) etc.... and then write if Case _1 or Case _2 or Case_3 or ... But I'm guessing there must be a simpler way to do this? Any feedback appreciated.
