Node reference
Position Side
1 long, −1 short, 0 flat — for comparisons.
Rev. 2026.06
Position Sidestate
No inputsOutputsPosition Side
Side
main · number
Configure
- side
- — Which book to read — net, long, or short
- default net
What it does
Encodes direction as a number so you can branch logic with Compare.
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
Direction-aware rules (e.g. only exit longs).
Gotchas
- Net (default) uses long − short; set side to read one book.