> For the complete documentation index, see [llms.txt](https://docs.optionomega.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.optionomega.com/backtesting/early-exits-during-holidays-and-weekends.md).

# Early Exits during Holidays and Weekends

For both backtesting and automation, OO can close a trade prior to expiration, without having to rely on a stop loss or profit target. This can be done through the [Early Exit](https://docs.optionomega.com/backtesting/backtest-setup#use-early-exit-1) setting, which closes the entire trade, or the [Time Actions](https://docs.optionomega.com/backtesting/backtest-setup#use-techincal-indicators) setting, which closes portions of the trade.

Early exits can be specified as DTE (Days to Expiration), DIT (Days In Trade) and MIT (Minutes In Trade). While MIT (Minutes in Trade) is used for intraday management<sup>1</sup>, DTE and DIT exits can sometimes fall on days the market is closed, such as holidays and weekends. OO uses different logic to select DTE and DIT dates when trading cannot occur on the "true" DTE or DIT.

The following table shows the difference between DTE and DIT date selection over a holiday, New Year’s Day, as well as a weekend. In this example, a 7 DTE trade opens on Tuesday, 30 Dec 2025, and expires on Tuesday, 06 Jan 2026. The DTE and DIT columns show the "true" value, and the Early Exit Date columns show the value that OO would select if the "true" value lands on a market closure.

<table data-header-hidden="false" data-header-sticky data-first-column-sticky><thead><tr><th width="142.26953125">Date</th><th width="133.953125">Event</th><th width="99.58203125">DTE</th><th width="138.68359375">Early Exit Date (DTE)</th><th width="95.6796875">DIT</th><th>Early Exit Date (DIT)</th></tr></thead><tbody><tr><td>Tue 30 Dec 25</td><td><mark style="color:$success;">Opening Trade</mark></td><td>7</td><td>Tue 30 Dec 25 (7 DTE)</td><td>0</td><td>Tue 30 Dec 25 (0 DIT)</td></tr><tr><td>Wed 31 Dec 25</td><td></td><td>6</td><td>Wed 31 Dec 25 (6 DTE)</td><td>1</td><td>Wed 31 Dec 25 (1 DIT)</td></tr><tr><td><mark style="color:$info;">Thu 01 Jan 26</mark></td><td><mark style="color:$info;">Closed for New Years</mark></td><td>5</td><td>Wed 31 Dec 25 (6 DTE)</td><td>2</td><td>Fri 02 Jan 26 (3 DIT)</td></tr><tr><td>Fri 02 Jan 26</td><td></td><td>4</td><td>Fri 02 Jan 26 (4 DTE)</td><td>3</td><td>Fri 02 Jan 26 (3 DIT)</td></tr><tr><td><mark style="color:$info;">Sat 03 Jan 26</mark></td><td><mark style="color:$info;">Closed for Weekend</mark></td><td>3</td><td>Fri 02 Jan 26 (4 DTE)</td><td>4</td><td>Mon 05 Jan 26 (6 DIT)</td></tr><tr><td><mark style="color:$info;">Sun 04 Jan 26</mark></td><td><mark style="color:$info;">Closed for Weekend</mark></td><td>2</td><td>Mon 05 Jan 26 (1 DTE)</td><td>5</td><td>Mon 05 Jan 26 (6 DIT)</td></tr><tr><td>Mon 05 Jan 26</td><td></td><td>1</td><td>Mon 05 Jan 26 (1 DTE)</td><td>6</td><td>Mon 05 Jan 26 (6 DIT)</td></tr><tr><td>Tue 06 Jan 26</td><td><mark style="color:$danger;">Expiration Day</mark></td><td>0</td><td>Tue 06 Jan 26 (0 DTE)</td><td>7</td><td>Tue 06 Jan 26 (7 DIT)</td></tr></tbody></table>

## Early Exit - DTE

* When an Early Exit with DTE is used, OO will close the trade by the specified number of days prior to expiration day.
* If the calculated date falls on a holiday or weekend, OO will select the *closest* date, while biasing an *earlier* exit / greater DTE where needed. For example:
  * If an option expires on Tuesday, 06 Jan 26, and a 2 DTE early exit is specified that lands on a weekend (Sunday), OO will select Monday, 05 Jan 26 (1 DTE) rather than Friday, 02 Jan 26 (4 DTE) to exit.
    * If Monday is a holiday (three day weekend), OO will select the next Tuesday<sup>2</sup>.
  * If an option expires on Tuesday, 06 Jan 26, and a 3 DTE early exit is specified that lands on a weekend (Saturday), OO will select Friday, 02 Jan 26 (4 DTE) rather than Monday, 05 Jan 26 (1 DTE) to exit.
    * If Friday is a holiday (three day weekend), OO will select the previous Thursday<sup>2</sup>.
  * If an option expires on Tuesday, 06 Jan 26, and a 5 DTE early exit is specified that lands on a holiday (New Year's Day, Thursday, 01 Jan 26), OO will select Wednesday, 31 Dec (6 DTE) rather than Friday, 02 Jan 26 (4 DTE)
* The logic for selecting the exit date looks at whole days, rather than the exit time. Once the date is selected, the early exit will initiate at the specified time.

## Early Exit - DIT

* When an Early Exit with DIT is used, OO will close the trade only *after* the specified number of days in trade.
* If the calculated date falls on a holiday or weekend, OO will select the *closest* date that ensures a *minimum* of the specified DIT has been fulfilled, so the DIT value serves as a trade duration *floor.*
  * If a trade opens on Tuesday, 30 Dec 25, and a 5 DIT early exit is specified that lands on a weekend (Sunday), OO will select Monday, 05 Jan 26 (6 DIT).
  * If a trade opens on Tuesday, 30 Dec 25, and a 4 DIT early exit is specified that lands on a weekend (Saturday), OO will still select Monday, 05 Jan 26 (6 DIT) rather than Friday, 02 Jan 26 (3 DIT), to ensure the trade was open at least 4 days.
  * If a trade opens on Tuesday, 30 Dec 25, and a 2 DIT early exit is specified that lands on a holiday, New Year’s Day, Thursday, 01 Jan 26, OO will select Friday, 02 Jan 26 (3 DIT) rather than Wednesday, 31 Dec 25 (1 DIT) to ensure the trade was open at least 2 days.
* The logic for selecting the exit date looks at whole days, rather than the exit time. Once the date is selected, the early exit will initiate at the specified time.

## Notes

1. Early exit via Minutes In Trade (MIT) should be limited to 0DTE / intra-day trades only. Using a Minutes In Trade value that extends past market close of the day can result in unpredictable trade management behavior.
2. During three day / holiday weekends, a "tie" scenario can occur where the specified DTE lands on the 2nd day of a 3-day market closure period. OO first applies the weekend check logic, which may land on the holiday, then selects the closest date from there using the holiday date selection logic.
3. When [CSV Signal files](https://docs.optionomega.com/backtesting/advanced-options/custom-signals-tester) are used and the Use CSV Exit Times setting is enable, Early Exit and Time Actions are ignored. Exits are determined by the dates/times on the CSV file.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.optionomega.com/backtesting/early-exits-during-holidays-and-weekends.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
