Back to builder reference

Condition

eod_flatten
exit

End-of-day flatten exit: close open positions N minutes before session close. No-op for crypto (24h sessions); silently inert outside session. NaN trap: NotCondition wrapping evaluates True outside session; prefer AllOf with an in-session gate over Not.

Category

Time & events

Discriminator

card_type = "eod_flatten"

Roles

exit

Required fields

None.

Optional fields

card_typestring-
flatten_minutes_before_closeintegerMinutes before session close at which to flatten open positions.
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.