Skip to content
All library documents

Counting Consecutive Rises and Falls in a Time Series

Article BigQuant

Summary

The discussion asks how to detect whether a value, such as a closing price or trading volume, has risen or fallen continuously over a chosen number of days. It points to a pair of time-series functions: one counts consecutive rises, and a corresponding function handles consecutive declines. These counts can be used to identify runs of monotonic movement within a series.

The document offers no formula, function parameters, worked example, or test results. It briefly notes that the requested capability was considered for development before identifying an existing function. Users would need to consult the linked implementation or platform documentation to learn its precise behavior, including how it treats equal values, missing observations, and window boundaries. The post establishes the general method but does not show whether it was evaluated as a trading signal or how well it performs.

Key ideas

  • A consecutive-rise count can measure uninterrupted upward moves in a time series.
  • A corresponding consecutive-decline function can identify downward runs.
  • The proposed use includes checking price or volume over a specified number of days.
  • The post does not explain edge cases or provide performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.