OPEN-SOURCE SCRIPT
Updated

Run Up/Down Counter

3 746
Counter for number of periods going up or down, given as a positive or negative integer.
Release Notes
Improvements:
- corrected condition: comparison to close[1] instead of open
- simplified logic

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.