25 Largest consecutive Higher or lower highs or lows and green and red candles

Count the largest number of consecutive red candles, lower highs, lower lows (descending trends) and green, higher highs and higher lows (ascending trend). Then it calculates the difference between the two, to determine which direction has the most strength.

It is expected that larger values in one direction will correlate with larger profit in the opposite direction, as there is just so much high a trend can go (basically, a correction due to extreme declines or increases).