Node reference

Is In Position

True whenever you hold an open position.

Rev. 2026.06

Is In Positionstate
No inputsOutputs
Is In Position
Result
main · boolean
Configure
side
— Which book to read — net, long, or short
default net

What it does

Reports whether the strategy currently holds any position (size ≠ 0).

What happens

Read from the engine's live execution context each candle — it reflects the current run (position, equity, time, trade history), not a computed indicator.

When to use

Gate entries ('only enter when flat') or guard exits.

Gotchas

  • Hedge mode: set side to test one book; net (default) is true if either side is open.