Open Time 2
Info
The Open Time 2 is a Expert Advisor for MetaTrader 5 that what's new in version 2this expert advisor (ea) has been enhanced to enable the configuration of two distinct time intervals for opening positions, along with the ability to specify the days of the week when position opening is permitted. For each time interval, the following parameters can be set independently:- Trading type: Buy or Sell- Stop Loss- Take ProfitThe same lot size and trailing function are applied to both intervals, and the EA can manage only one position within each time interval.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Open Time 2
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
What's new in version 2This Expert Advisor (EA) has been enhanced to enable the configuration of two distinct time intervals for opening positions, along with the ability to specify the days of the week when position opening is permitted.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.
Description & Settings
Related: Accurate Broker GMT Offset and Daylight Saving Time Rules from Price History - another powerful expert for MetaTrader 5 traders.
What's new in version 2Also recommended: Telegram Trade Notifier: Real-time Alerts and Daily Summaries - similar expert with strong performance on MetaTrader 5.
This Expert Advisor (EA) has been enhanced to enable the configuration of two distinct time intervals for opening positions, along with the ability to specify the days of the week when position opening is permitted.
For each time interval, the following parameters can be set independently:
- Trading type: Buy or Sell
- Stop Loss
- Take Profit
The same lot size and trailing function are applied to both intervals, and the EA can manage only one position within each time interval.
A unique Magic Number is generated for each time interval, with the Magic Number for Interval #1 specified in the input parameters. These Magic Numbers are stored in internal variables, with the Magic Number for Interval #2 being one unit greater than that of Interval #1.
Positions Closing Options
- Use Closing Time Interval #1: Enable/Disable closing by time for Interval #1
- Closing Time Interval #1: Time to close positions for Interval #1 (hours and minutes only)
- Use Closing Time Interval #2: Enable/Disable closing by time for Interval #2
- Closing Time Interval #2: Time to close positions for Interval #2 (hours and minutes only)
- Trailing Stop: Trailing stop function, 0 means disabled (in pips)
- Trailing Step: Trailing step value (in pips)
Positions Opening Settings
- Trade on Monday: Enable/Disable trading on Monday
- Trade on Tuesday: Enable/Disable trading on Tuesday
- Trade on Wednesday: Enable/Disable trading on Wednesday
- Trade on Thursday: Enable/Disable trading on Thursday
- Trade on Friday: Enable/Disable trading on Friday
- Opening Start Time Interval #1: Beginning of Interval #1 (hours and minutes only)
- Opening End Time Interval #1: End of Interval #1 (hours and minutes only)
- Opening Start Time Interval #2: Beginning of Interval #2 (hours and minutes only)
- Opening End Time Interval #2: End of Interval #2 (hours and minutes only)
- Duration in Seconds: Operation duration in seconds
- Type of Trade in Time Interval #1: Trading type for Interval #1 (Buy or Sell)
- Type of Trade in Time Interval #2: Trading type for Interval #2 (Buy or Sell)
- Volume Transaction: Position volume to open
- Stoploss Time Interval #1: Stop loss for positions in Interval #1 (in pips)
- Takeprofit Time Interval #1: Take profit for positions in Interval #1 (in pips)
- Stoploss Time Interval #2: Stop loss for positions in Interval #2 (in pips)
- Takeprofit Time Interval #2: Take profit for positions in Interval #2 (in pips)
Expert Advisor Options
- Magicnumber Time Interval #1: Unique ID for positions in Interval #1. The Magic Number for Interval #2 is one unit greater.
Testing Results for EURUSD, M30:
The EA's performance was evaluated on the EURUSD currency pair with a 30-minute timeframe, demonstrating its effectiveness in managing positions based on the specified time intervals and trading parameters.
You may also like: Opening Range Breakout with NR4 / NR7 Contraction Filters (2026 Update) - excellent alternative for expert users on MetaTrader 5.
Source Code
/
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.