Hi Roberto,
My logic was this:
Ind310 is the difference between SMA3 and SMA10, in a downward movement the SMA3 will always be below the SMA10 and the difference will be negative…
With a further decrease, the difference between SMA3 and SMA10 will become larger or more negative (because the SMA3 will decrease faster than the SMA10)
So, ind310 < ind310[1] indicates that a downward movement is underway…
Bearish = summation[5](ind310 < ind310[1]) = 5 (if true) this indicates that this downward movement has been going on for five consecutive days…
1 user thanked author for this post.