# Maximum time a trade may remain open, in minutes

* **0 (Disabled):**\
  By default, when set to 0 (Disabled), the EA will close trades based on its **internal logic in profit**.
* **Custom Value**:  (e.g., 60, 90, etc. minutes) \
  Once the specified number of minutes has passed, the EA evaluates the trade’s current profit or loss. If the trade P/L is at or below the configured [P/L threshold for timeout exit](/smartchoise-manual/options/trade-timeout-exit/p-l-threshold-for-timeout-exit.md), the trade will be closed automatically.

{% hint style="success" %}

#### **Usage notes**

* Use lower values for faster cleanup of slow or underperforming trades.
* Use higher values to give trades more time to develop
* This setting works together with [P/L threshold for timeout exit](/smartchoise-manual/options/trade-timeout-exit/p-l-threshold-for-timeout-exit.md).
  {% endhint %}

**Example**\
If this option is set to `60`, the EA will evaluate each trade after it has been open for 60 minutes.


---

# Agent Instructions: 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://smartchoise.gitbook.io/smartchoise-manual/options/trade-timeout-exit/maximum-time-a-trade-may-remain-open-in-minutes.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.
