Skip to content

Hold

Signals · Utility

Hold node on the canvas

Latch the signal true for N bars after each rising edge.

Hold latches a signal true for a set number of bars after it fires. A one-bar pulse goes in; a steady true lasting N bars comes out. It's how you give a brief event a window — "this trigger stays valid for the next 3 bars" — so other conditions have a chance to line up with it instead of needing to coincide on the exact same bar.

How it works

The block watches the input for a rising edge (a false→true transition) and, on each one, holds its output true for Hold bars (default 3) bars before releasing. If the input fires again during a hold, the window extends from the new edge. The effect is a debounce-and-stretch: momentary signals become short sustained windows.

When to use it

Use Hold to widen a trigger's window so it can combine with other conditions that won't always agree on the very same bar. The classic case: a Liquidity Sweep or Crosses Above happens on one bar, but your confirming condition (a structure shift, a zone touch) lands a bar or two later — wrap the trigger in Hold so it's still "active" when the confirmation arrives, then And them. It's also a simple way to keep a signal alive long enough for an entry to process.

Example

Combine signals that fire a bar apart: take a Liquidity Sweep event, pass it through Hold with 3 bars so it stays active, then And it with a bullish Market Structure confirmation that may print a bar or two later — into a Buy Signal. Backtest in the Tester.

Tips & gotchas

  • Stretches a pulse into a window — the fix for "two signals that rarely fire on the exact same bar."
  • Re-firing extends the window from the new edge.
  • Mind double entries — a held signal stays true for N bars; pair with an Edge Trigger downstream if you need a single entry from the combined logic.
  • Opposite intent to Delay — Hold keeps a signal alive now; Delay moves it later.

Inputs

Socket Type What to wire in
In signal Input signal

Outputs

Output Type Plots as Description
Out signal Signal arrows Shaped signal

Parameters

Parameter Type Default What it does
Hold bars number · 1–500 3

Reference auto-generated from the block catalog · category Signals.