Run Length
The signed length of the current run of same-direction changes in a series — a streak counter.
Each update compares the value to the previous one and extends, flips, or breaks the streak: a positive value is an up-streak of that many consecutive rises, a negative value is a down-streak, and zero means the last change was flat (an unchanged value breaks the run). There is no lookback window; the streak accumulates from the last direction change.
e.g. closes 100, 101, 102, 103 → +3 (three consecutive rises); a following 101 flips it to -1; a following 101 again (unchanged) breaks it to 0.
Value is null until the first change is seen (one prior value is needed). Deterministic across backtest and live. Fed the close series it counts a daily-close run; fed any expression it counts that expression's run.
Properties
True once the indicator has received at least warmupBars samples.
Number of inputs the indicator must observe before value returns non-null.
Functions
Latest computed value, or null until isReady is true.