Days Up and Days Down Functions

Author: Optuma Team Last updated: Jul 14, 2020 05:04

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:


Consecutive lower volume days:


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.