Skip to content
StatePath
Tool Atlascalc.streak

Tool

Streak

calc.streak

CalculationStreak

Inputs

valueBoolean

The yes/no condition whose consecutive true bars are counted (e.g. ‘close above the 20-EMA’).

Outputs

Buffer (time series)

A count line: how many bars in a row the input has been true, climbing while the condition holds and dropping to zero when it breaks.

Streak counts how many bars in a row the yes/no input has stayed true, resetting to zero the moment it turns false. It is handy for ‘N bars in a row’ rules — like three consecutive closes above a moving average.

Streak overview diagram

How it works

Each bar the node looks at the boolean input `value`: if it is true, the running count goes up by one; if it is false, the count resets to zero. There are no settings — the output is simply the current run length, which you can threshold to require a streak of a given size.

Connects to

Reads from
Feeds into

Examples

  • Confirmation: wire ‘close above the 20-EMA’ into value and require the streak to reach 3 before entering, filtering out one-bar pokes.
  • Exhaustion: watch for a long streak of up-closes as a hint the move may be overextended and due for a pause.

Common mistakes

  • Forgetting the reset — the count returns to zero on a single false bar, so an occasional miss inside an otherwise strong run keeps the streak short.
  • Counting a condition that is true almost every bar, which produces an ever-growing streak that carries little information.

See also