Purpose
The Run in Session block ensures that connected actions execute only within a defined time window, preventing trades outside of set hours.
How It Works
Runs continuously only during the specified session (e.g., 09:00–17:00).
Can be set for specific hours, minutes, and days of the week.
If the market time is outside the session, actions won’t execute.
Advanced Options: You can also choose specific months in which the system should run (or not) via a simple checkbox, as well as select specific weekdays from Monday to Sunday.
Local Time vs Server Time
When using session logic or “highest/lowest price in a time period,” choose the correct time source.
Server Time uses your broker’s MT5 server time. This is usually the best choice for trading logic because MT5 candles, backtests, and broker sessions follow broker server time.
Local Time uses the time on your computer or VPS. Only use this if your strategy should follow your device time.
Example:
If you want to calculate the London session high from 08:00 to 15:00, first check whether those times match your broker’s server time. If your local time and broker server time are different, the EA may calculate a different session than expected.
Always export and test in MT5 Visual Mode to confirm the selected time window matches the candles you intended.
Use Case
Restrict trading to active market sessions (e.g., London, NY).
Avoid trading during low-liquidity hours.
Implement session-based risk management.
⚠ Note: Unlike Run at Time, this block allows multiple executions within the session period.

