Then you see that Code1 and Code3 give the same results (0 or 1) but that Code2 is always true (always 1). This is probably because in Code2 you don’t give a condition to Low[2], Low[3] and Low[4]. So you’re basically saying here, is there a Low[2] or a Low[3] or a Low[4] (and there always are).
the first line is correct, it’ll be true whenever CLOSE < anyone of the previous 4 LOWs
the second line is logically incorrect, as it will ALWAYS be true, as you do not compare CLOSE to those LOWS; you compare CLOSE to the fact that anyone of those LOWs is <> 0, which cannot be false.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok