Exit Hours

The Exit Hours feature restricts indicator exits to a daily time window. When enabled, the strategy closes a position by its exit signal only between the configured times.

What the feature is for

Use this feature when a strategy's exit signal should only be honored during specific market hours, such as a single trading session, while keeping protective and forced exits always active.

An EA Studio strategy imported with its Exit Time close filter gets this feature: the filter's From/Until window becomes the exit hours. EA Studio treats equal times as the whole day, so such a filter leaves the feature off rather than creating an equal-times window.

Exit window

The exit hours define the daily time window for indicator exits.

  • From time: the earliest indicator exit time of the day.
  • To time: the latest indicator exit time of the day.
  • Default: 00:00 to 23:59, which allows indicator exits all day.
  • Both boundaries are inclusive, and the window is evaluated at the bar open time (server time, UTC).
  • A From time equal to the To time leaves a zero-length window: no indicator exit can close a position while the feature stays enabled. The feature list shows the error 'The Exit hours are equal'. A From time later than the To time is allowed and means the window crosses midnight.

What the window does not restrict

The window only gates exits produced by the exit point indicator and its exit rules. It never blocks:

  • Stop Loss and Take Profit exits (including a trailing Stop Loss).
  • Break-even stop adjustments.
  • The Grid averaging-down take profit.
  • Reduce, Close, and Reverse on Opposite Signal actions (these follow entry signals in the opposite direction).
  • Exit at Session Close and Exit at Friday Close.
  • Max position duration, margin close, Monte Carlo close, and the backtest-end close.

Form fields

  • From time: the earliest indicator exit time of the day.
  • To time: the latest indicator exit time of the day.