The Day Trade Close rule flattens open positions at a fixed UTC time each day. It supports day-trading workflows and risk limits that avoid overnight exposure.
Behavior
- Exit section only; synced when day-trade mode is enabled at strategy level
- Uses execution tick UTC time, not candle close time
- Full exit when clock ≥ configured close time
- Fires once per UTC day per position session
Default parameters
| Parameter | Default |
|---|---|
| closeTimeUtc | 21:00 |
Use 24-hour HH:MM format in UTC.
Enabling
Turn on day-trade mode in strategy settings. dogabot ensures a dayTradeClose rule exists in exit rules (same as Go EnsureDayTradeCloseRule).
Tips
- Align close time with your exchange session or personal cutoff (e.g. before funding).
- Independent of UTC time window filters—you can block morning hours and still flat by evening.
Example
dayTradeMode on, closeTimeUtc 21:00, long opened at 14:00 UTC. At 21:00 UTC on the execution tick, Day Trade Close forces a full exit even if Take profit has not hit. Fires once per UTC day per position session.