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 * 100Params
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.
