Currently i set it up to calculate based on checking each manually
&& High[2] < High[3]
&& Low[2] < Low[3]
&& Low[1] < Low[2]
&& High[1] < High[2]
&& High[0] < High[1]
&& Low[0] < Low[1])
Is there anyway I could have this process calculate based on number of days?
My goal is to use the optimizer on the number of days of consecutive lower lows or lower highs, but I can't optimize if I use this hard logic and don't have a parameter/variable that denotes # of days of this behavior.
Thanks for all your help on all my questions

Comment