PROTECTED SOURCE SCRIPT
Updated

Consecutive Up/Down Bar Labels

45
Mean reversion likelihood tends to increase with number of consecutive up/down days. This indicator plots a signal when the number of consecutive up/down days exceeds 3, in increasingly bright colors.
Release Notes
Updated to allow two options for up/down:

Close > Open
and Close > Prev Day Close
Release Notes
Added option for up days to be defined by increasing lows / down days by decreasing highs.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.