Node reference

Avg Trade Duration

Average duration in candles of closed trades. -1 if no trades. Hedge: set side to read one book.

Rev. 2026.06

Avg Trade Durationstate
No inputsOutputs
Avg Trade Duration
Bars
main · number
Configure
side
— Which book to read — net, long, or short
default net

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.