Indicators

Gap Detection

Flags up and down gaps where the current bar opens away from the prior close.

1 min readUpdated Jun 19, 2026

A gap up is open[t] > high[t-1] (the bar opens above the prior bar's entire range). A gap down is open[t] < low[t-1]. This indicator publishes both as booleans plus the gap magnitude.

Logic

gap_up[t]   = open[t] > high[t-1]
gap_down[t] = open[t] < low[t-1]
gap_size_pct[t] = |open[t] - prev_reference| / prev_reference * 100

Params

None (the gap-magnitude conditions take their own thresholds).

Output

Several boolean and magnitude columns. The exact list depends on the engine version; check the live tooltip on the indicator card.

Usage

  • Gap fade: enter against the gap direction expecting the gap to close. Common in equities; less reliable in 24/7 crypto.
  • Gap and go: enter with the gap on strong volume.
  • Skip filter: refuse to take entries on gap-up bars when the strategy assumes orderly opens.

Crypto vs equities

Crypto markets are 24/7 and rarely produce true gaps. Strategies that hold across maintenance windows or rebrands may still pick up the odd gap; otherwise this indicator is mostly a no-op on crypto.

Gap Detection | Help Center | LucraX · LucraX