We do not know that a run of red bars has come to an end until we have a set of dots that is not a run of red dots and not a run of green dots but a bunch of ‘indecision’ mixed dots.
If you just want to know at the close of a bar that it has been a run of 8 red dots then this should simply do that:
1
ifdown=5anddcount=8then
The next set could be a 9th set of red dots and the original code was about spotting the end of runs and not just about counting them!
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.