Scheduling Two Daily Trading Windows in an Expert Advisor
Summary
OpenTime 2 describes an Expert Advisor that can open positions during two configurable time windows on selected weekdays. Each window has its own allowed direction, stop loss, take profit, and closing-time setting. The EA permits at most one position per window and assigns each window a distinct magic number so its positions can be identified separately. Volume and trailing-stop settings are shared across both windows.
The document explains configuration options, including start and end times, operation duration, weekday switches, slippage, and timed position closing. It identifies EURUSD on a 30-minute chart as the context for testing, but supplies no test results or rules for deciding when a buy or sell is desirable. This is therefore a scheduling and position-management framework rather than a complete signal strategy. The source does not discuss timezone handling, behavior at window boundaries, execution quality, or risk from overlapping windows, so those details require separate verification before use.
Key ideas
- The EA can open trades in two separate time windows and restrict opening days by weekday.
- Each window can use its own trade direction, stop loss, take profit, and closing time.
- A separate magic number identifies positions from each window, with the second number incremented by one.
- Position volume and trailing-stop settings are shared across the windows.
- The document names an EURUSD 30-minute test context but gives no performance results or entry signal.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.