- Desktop
- Scripting
- Formulas and Scripting Functions
- Days Up and Days Down Functions
Days Up and Days Down Functions
The Days Up DU() and Days Down DD() functions count continuous higher and lower closes.
They can be used in a watchlist column to calculate the values, or a scan. By default it will use closing prices, as in this watchlist example sorted by the most consecutive higher closes, with TWE, QBE and IEL all with 6:

Nest other functions inside the DU or DD function, such as consecutive higher lows:
DU(LOW())
Consecutive lower volume days:
DD(VOL())
To scan for at least 3 days with a consecutive higher highs and higher lows:
DU(HIGH()) > 2 and DU(LOW()) > 2
Note: the functions will use the timeframe of the scan/watchlist/chart it is applied to eg a weekly watchlist will count the weeks.
Your privacy choices
We use cookies and similar technologies to make the site work, see how it's used, and improve it. Analytics and advertising cookies only run with your consent — see our Privacy Policy for details.