Node reference

Cross Above

True only on the candle where A crosses from at-or-below B to above B.

Rev. 2026.06

Cross Abovecondition
InputsOutputs
A
a · number
B
b · number
Cross Above
Result
main · boolean

What it does

Fires once, on the bar where A transitions from ≤ B to > B.

What happens

Evaluated each candle using the current and previous values of both inputs; emits true only at the crossing bar, false otherwise.

When to use

Entry triggers — e.g. fast EMA crossing above slow EMA.

Gotchas

  • Only true at the crossing bar, not while A stays above B — use Compare for a level.
  • Needs a previous bar; it can't fire on the very first candle.