Skip to content

Trading session

The Trading session module prevents opening orders outside your trading hours. Example: with a session from 09:00 to 15:00, an order can open at 09:30 or 10:00, but not at 18:00 or 06:00.

00:0006:0009:0015:0018:0024:00 Trading session No new orders No new orders 1 Open signal blocked 2 Open signal order opened 3 Open signal blocked 4 Order closed outside the session
Trading session
  1. Inside the session, an Open signal opens an order as usual. If it becomes true at 09:10, the module doesn’t prevent it.
  2. Outside the session (from 15:00 until 09:00 the next morning in the example), no new order opens.
  3. Open orders are not affected: Close signals and modules close them within or outside the session. The module never closes orders itself.

You can add this module only once. Combine it with Trading session exclusion to block hours within the session.

  • Start Hour (servertime): the hour (0–23) from which new orders may open. 13 is 1 PM.
  • Start Minute (servertime): the minutes (0–59) of the start time.
  • Stop Hour (servertime): the hour (0–23) from which new orders may no longer open.
  • Stop Minute (servertime): the minutes (0–59) of the stop time.
  • Apply on Monday to Apply on Sunday: the days (server time) on which the session applies. On days that are not checked, your EA can trade at any time. For example: only Monday checked, session 09:00–15:00: only Monday is limited. To block trading on other days, add Trading session exclusion.

The times are the broker’s server time, not your local time. You find it at the top of the Market Watch in MetaTrader, or in the top left corner of the chart after adding your EA.

MetaTrader is a registered trademark of MetaQuotes Ltd. EA Builder Pro is not affiliated with MetaQuotes.