open time 2
Info
The open time 2 is a Expert Advisor for MetaTrader 5 that what's new in version 2 the ea now allows setting two time intervals, inside which positions can be opened; it also allows setting the days of the week when opening of positions is allowed; the following parameters can be specified independently for each time interval: trading type: buy or sell stop loss take profit the same lot size and trailing function are used for the two intervals. the ea may have only one position in 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 2 the ea now allows setting two time intervals, inside which positions can be opened; it also allows setting the days of the week when opening of positions is allowed; the following parameters can be specified independently for each time interval: trading type: buy or sell stop loss take profit the same lot size and trailing function are used for the two intervals.
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: Real-Time Market Intelligence for Informed Trading Decisions - another powerful expert for MetaTrader 5 traders.
what's new in version 2Also recommended: vr rsi robot: multi-timeframe rsi trading strategy for metatrader 5 - similar expert with strong performance on MetaTrader 5.
the ea now allows setting two time intervals, inside which positions can be opened;
it also allows setting the days of the week when opening of positions is allowed;
the following parameters can be specified independently for each time interval:
trading type: buy or sell
stop loss
take profit
the same lot size and trailing function are used for the two intervals. the ea may have only one position in each time interval.
a unique magic number is generated for each time interval. the magic number for interval #1 magic is specified in input parameters:
this magic number is saved in the internal
m_magic_one
variable, while the magic number of the interval #2 is saved in the internal
m_magic_two
variable, which is larger than
m_magic_one
by one:
input parameters
positions closing options
use closing time interval #1
- enable/disable closing by time for interval #1;
closing time interval #1 (only hour:minute!)
- time to close a position for the interval #1 (only hours and minutes are taken into account);
use closing time interval #2
- enable/disable closing by time for interval #2;
closing time interval #2 (only hour:minute!)
- time to close a position for the interval #2 (only hours and minutes are taken into account);
trailing stop ("0" -> trailing off) (in pips)
- trailing stop function, 0 means that the function is disabled;
trailing step (in pips)
- trailing step value.
positions opening settings
trade on monday
- enabled/disable trading on monday;
trade on tuesday
- enabled/disable trading on tuesday;
trade on wednesday
- enabled/disable trading on wednesday;
trade on thursday
- enabled/disable trading on thursday;
trade on friday
- enabled/disable trading on friday;
opening start time interval #1 (only hour:minute!)
- the beginning of the time interval #1 (only hours and minutes are taken into account);
opening end time interval #1 (only hour:minute!)
- the end of the time interval #1 (only hours and minutes are taken into account);
opening start time interval #2 (only hour:minute!)
- the beginning of the time interval #2 (only hours and minutes are taken into account);
opening end time interval #2 (only hour:minute!)
- the end of the time interval #2 (only hours and minutes are taken into account);
duration in seconds
- the duration of an operation in seconds;
type of trade in time interval #1 ("true" -> buy, "false" -> sell)
- trading type allowed in the interval #1: buy or sell;
type of trade in time interval #2 ("true" -> buy, "false" -> sell)
- trading type allowed in the interval #2: buy or sell;
volume transaction
- the volume of position to open;
stoploss time interval #1 (in pips)
- stop loss for positions in the interval #1;
takeprofit time interval #1 (in pips)
- take profit for positions in the interval #1;
stoploss time interval #2 (in pips)
- stop loss for positions in the interval #2;
takeprofit time interval #2 (in pips)
- take profit for positions in the interval #2.
expert advisor options
magicnumber time interval #1 (time interval #2 == magicnumber+1)
- the unique id used for positions in the interval #1. the magic number for the interval #2 is greater by one.
testing results for eurusd,m30:
You may also like: mq l5 wizard - trade signals based on crossover of two emas with intraday time filter - 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.