Skip to content

Trading session exclusion

The Trading session exclusion module prevents opening orders during hours you exclude. Example: with an exclusion from 15:00 to 09: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 exclusion Trading session exclusion Orders allowed 1 Open signal blocked 2 Open signal order opened 3 Open signal blocked 4 Order closed during the exclusion
Trading session exclusion
  1. Outside the exclusion, an Open signal opens an order as usual.
  2. Within the exclusion, no new order opens.
  3. Open orders are not affected: Close signals and modules close them within or outside the exclusion. The module never closes orders itself.

You can add this module more than once, with different times and days, for example one exclusion per news hour. Combine it with Trading session.

  • Name: optional, tells this module apart from others of the same kind. See Name.
  • Start Hour (servertime): the hour (0–23) from which new orders are blocked. 13 is 1 PM.
  • Start Minute (servertime): the minutes (0–59) of the start of the exclusion.
  • Stop Hour (servertime): the hour (0–23) from which new orders may open again.
  • Stop Minute (servertime): the minutes (0–59) of the end of the exclusion.
  • Apply on Monday to Apply on Sunday: the days (server time) on which the exclusion applies. On days that are not checked, your EA can trade at any time. To exclude other days or hours, check more days or add the module again.

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.