Node reference

Exit

Closes a position and carries the stop-loss / take-profit brackets.

Rev. 2026.06

Exitaction
InputsNo output
SL Price
slPrice · number
TP Price
tpPrice · number
Exit
Performs an action — no value out
Configure
entryNodeRef
— Which entry this exit closes
closeOrder
— Order positions are closed in (FIFO or LIFO)
default fifo
exits
default [object Object]
slEnabled
default false
slType
default percent
slValue
default 2
slNodeId
tpEnabled
default false
tpType
default percent
tpValue
default 4
tpNodeId
trailEnabled
default false
trailActivation
default immediate
trailActivationValue
default 0
trailOffsetType
default percent
trailOffsetValue
default 1

What it does

Links to an Entry and closes its position via signal rules and/or SL/TP brackets and trailing stops.

What happens

Each candle it checks its exit rules and brackets against the open position and closes lots when one triggers.

When to use

Every strategy that opens a position — this is where stops and targets live.

Gotchas

  • Stop-loss and take-profit are brackets configured HERE, not separate risk nodes.
  • Scope it to the right Entry, or it may close the wrong-side position.