Back to builder reference

Condition

flat_before_close
exit

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

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

kindstring-
Quawd

A subscription SaaS platform for designing, backtesting, and paper-trading algorithmic trading strategies on equities and crypto — described in plain English to an AI agent, no code required.

© 2026 Quawd. All rights reserved.

Quawd is a software tool, not a broker-dealer or investment adviser, and does not provide investment advice. Trading involves substantial risk of loss. Backtested and hypothetical results have inherent limitations and are not indicative of future performance.