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.
How it works
Section titled “How it works”- Inside the session, an Open signal opens an order as usual. If it becomes true at 09:10, the module doesn’t prevent it.
- Outside the session (from 15:00 until 09:00 the next morning in the example), no new order opens.
- 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.
Settings
Section titled “Settings”- 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.
Server time
Section titled “Server time”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.
Related
Section titled “Related”- Trading session exclusion: block set hours, such as news
- Date functions: Hour and Day of week in a signal
MetaTrader is a registered trademark of MetaQuotes Ltd. EA Builder Pro is not affiliated with MetaQuotes.