Risk Management4 min readUpdated Mar 2026

EOD Flatten (End-of-Day Flatten)

The automatic closure of all open intraday positions before market close to eliminate overnight gap risk and ensure flat positioning at the end of the trading session.

See EOD Flatten (End-of-Day Flatten) in real trade signals

Tradewink uses eod flatten (end-of-day flatten) as part of its AI signal pipeline. Get signals with full analysis — free to start.

Start Free

Explained Simply

Day trading strategies are designed to profit from intraday price movements and should not be held overnight. Overnight gaps — caused by earnings releases, geopolitical events, or macro news after hours — can gap a stock 5–20% against your position before you can exit. EOD flattening is a hard rule that guarantees all day trade positions are closed before this risk window opens. The standard practice is to close all positions 5–15 minutes before the 4:00 PM ET close, leaving a buffer to exit at reasonably liquid prices rather than scrambling at the last second. For systems that also trade extended hours, the EOD flatten time is adjusted to the relevant session boundary.

Why Overnight Gap Risk Is Asymmetric

Overnight gap risk is not symmetric with intraday risk. During trading hours, adverse moves of more than 2 to 3% on liquid large-cap stocks are relatively rare and typically develop over minutes, giving active traders time to react. After hours, a single earnings announcement, FDA decision, geopolitical event, or analyst downgrade can gap a stock 10 to 30% before the next regular session opens. There is no way to exit at your stop — the gap simply moves past it. The day trading strategy that entered on a momentum breakout at 10:15 AM had no thesis for holding through unknown overnight news. EOD flattening eliminates this category of risk entirely by ensuring no overnight exposure exists.

The Optimal EOD Flatten Window

Closing all positions exactly at 4:00 PM ET is inadvisable. The final minutes of the session — particularly 3:58 to 4:00 PM — often see wide spreads, thin liquidity, and erratic price behavior as market-on-close orders are processed. Exiting in the last 30 seconds can mean significantly worse fills. The professional standard is to begin flattening 5 to 15 minutes before close — typically between 3:45 and 3:55 PM ET — while there is still sufficient liquidity for orderly execution. Tradewink uses 3:55 PM ET as the default flatten time. Positions with larger size are targeted for closure earlier to minimize market impact during the closing period.

EOD Flatten and Bracket Order Cleanup

When a day trade is entered, the trading system typically submits bracket orders: a stop-loss order and a profit target order that remain open at the broker until either one is triggered or the position is closed. If a position is closed by the EOD flatten routine, both bracket orders must be immediately cancelled to prevent them from triggering in after-hours trading. An untriggered stop order that remains live after the position is closed can create an unintended short position if it executes post-market. Tradewink's flatten routine cancels all open child orders (stops, targets, OCO brackets) for each position before submitting the market close order, ensuring no stale orders remain that could create phantom positions.

Tracking EOD Flatten P&L Separately

EOD flatten exits represent forced closures rather than strategy-driven decisions. Mixing their P&L with strategy-driven exits creates a misleading picture of system performance. A profitable position closed by EOD flatten does not validate the exit strategy — the strategy never triggered. A losing position closed by EOD flatten does not represent a stop-loss working correctly — it represents a timed close. Tradewink separates EOD flatten outcomes in the trade journal by recording exit_reason as 'eod_flatten', enabling analysis that distinguishes session-end forced exits from the system's active exit decisions. This separation is essential for honest performance attribution and strategy improvement.

How to Use EOD Flatten (End-of-Day Flatten)

  1. 1

    Set a Hard Close Time

    For day traders, set a rule to close all positions by a specific time — typically 3:45-3:55 PM ET (10-15 minutes before the close). This prevents overnight gap risk and aligns with the day-trading mandate of no overnight exposure.

  2. 2

    Start Closing Early for Large Positions

    If you have large positions or trade less-liquid stocks, begin closing at 3:30 PM to avoid end-of-day slippage. The last 15 minutes can be volatile and unpredictable — don't rush large exits into a thin order book.

  3. 3

    No Exceptions Unless Pre-Planned

    The EOD flatten rule is absolute. Don't convince yourself a position is 'too good to close' — overnight gaps can erase a day's profits. The only exception is positions deliberately planned as swing trades with appropriate overnight risk sizing.

Frequently Asked Questions

What if a position is profitable — should I still flatten at EOD?

Yes, for pure day trading strategies. The overnight gap risk is asymmetric and unquantifiable — you cannot predict what news will emerge after hours. If you want to hold overnight, consider swing trading with appropriate overnight position sizing, stops, and a different entry thesis. The EOD flatten rule should be inviolable for day trade positions.

What happens to my stop orders when EOD flatten runs?

Tradewink's flatten routine cancels all open child orders — stops, targets, and bracket OCO orders — before or simultaneously with submitting the closing market order. This prevents stale stop orders from executing in after-hours trading and creating unintended short positions or additional fills.

Does EOD flatten apply to swing trades or options?

No. EOD flatten applies only to positions entered under day trade strategies. Swing trade positions, long-term holds, and options positions entered with multi-day theses are not affected by the EOD flatten routine. Tradewink tracks which positions were entered as day trades versus other strategy types and applies the flatten rule only to the former.

How Tradewink Uses EOD Flatten (End-of-Day Flatten)

Tradewink's DayTradeManager runs an EOD flatten routine 5 minutes before market close (3:55 PM ET). The `flatten_all()` method closes all open positions and marks them with exit_reason 'eod_flatten' in the trade journal. EOD flatten P&L is tracked separately to distinguish session-end forced exits from strategy-driven exits. The flatten also cancels any open bracket orders (stops and targets) to prevent stale orders from executing post-market.

Trading Insights Newsletter

Weekly deep-dives on strategy, signals, and market structure — written for active traders. No spam, unsubscribe anytime.

Related Terms

See EOD Flatten (End-of-Day Flatten) in real trade signals

Tradewink uses eod flatten (end-of-day flatten) as part of its AI signal pipeline. Get daily trade ideas with full analysis — free to start.

Enter the email address where you want to receive free AI trading signals.