Node reference

Limit Entry

Places a limit order on the gate and waits for a touch/fill.

Rev. 2026.06

Limit Entryaction
InputsNo output
Gate
gate · boolean
Quantity
quantity · number
Price
price · number
Reference
reference · number
Limit Entry
Performs an action — no value out
Configure
direction
— Long or short
default long
priceSource
default offset
priceNodeId
referenceNodeId
offsetType
default percent
offsetValue
default 0.1
expiryBars
default 20
quantitySource
— Where size comes from — a constant or a node
default constant
quantity
— Order size
default 1
quantityNodeId
— Node supplying the order size

What it does

When the gate fires, it posts a limit order and waits up to expiryBars for price to reach it.

What happens

Fires when its gate input is true — or every candle if it has no gate — and translates into an order or position change in the backtest and live engine.

When to use

Patient entries at a better price than market.

Gotchas

  • It may never fill if price doesn't reach the limit before expiry.
  • Set expiryBars to bound the wait.