Back to builder reference
Condition
flat_before_closeexit
End-of-day flat window exit: closes the position at its at instant and keeps it flat until the session close; entries decided in the window are skipped. Attach it as its own exit.
Category
Time & events
Discriminator
kind = "flat_before_close"
Roles
exit
Required fields
FieldTypeDescription
atreqanyOf (4 variants)When the flat window opens: "close" (one minute before the close), {"close": -N} minutes before the close, a clock time "HH:MM", or {"open": N} minutes after the open. The position stays flat from then until the session close.Optional fields
FieldTypeDescription
kindstring-