Skip to content

Days Up and Days Down Functions

By Optuma Team · Updated 2020-07-14

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:

Capture

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.

Choose which categories of cookies you allow. Strictly-necessary cookies are always on. You can change this any time via the "Cookie Settings" link in the footer.

  • Functional

    Remember preferences like dismissed banners and your dark-mode choice.

  • Analytics

    Help us understand how the site is used so we can improve it.

  • Marketing

    Measure our advertising and help us reach people who may be interested in Optuma.