Hi, How do I test whether, as an example, 5 out of the last 7 candles were red (in a downtrend) . Any green candles can be ignored unless they break the previous high. Opposite for uptrend.