Entry Hours

The Entry Hours feature restricts entries to a daily time window. When enabled, the strategy may only open new positions between the configured times.

What the feature is for

Use this feature when a strategy should only trade during specific market hours, such as a single trading session.

Entry window

The entry hours define the daily time window for entries.

  • From time: the earliest entry time of the day.
  • To time: the latest entry time of the day.
  • Default: 00:00 to 23:59, which allows entries 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 entry can open while the feature stays enabled. The feature list shows the error 'The Entry hours are equal'. A From time later than the To time is allowed and means the window crosses midnight.

Feature errors

The feature list shows an error when the entry window has zero length:

  • Equal entry hours: with the From time equal to the To time, the entry window has zero length and no entry can open. The feature list shows the error 'The Entry hours are equal'. A From time later than the To time is allowed and means the window crosses midnight.

Form fields

  • From time: the earliest entry time of the day.
  • To time: the latest entry time of the day.