How to feed my EA with the dates I want it to trade for the whole year?
-
Hi! I'm trying to optimize my EA with the use of MT5 optimization. I do have the dates and the time to each day to when I want my EA to trade. My question is, how can I possibly feed my EA with the data of the time and date I want my EA to trade on? Thank you in advance!
-
In what way? to have a certain condition change the times?
-
@jstap I forgot to mention how I want to feed the data into my EA. Pardon me

Here's how I want to do it:
I back tested starting from July of 2018 to July of 2019 and in my Journal, I already gathered the dates and time wherein I want my EA to execute the trades. It is tedious to do this manually and repeat the process all over again if I didn't like the result (In the process of optimizing).
I want to take advantage of the optimization option in MT5 wherein it tests different sets of combination. That is why I am looking for a way to feed the entire data (The Date and Time I want to my EA to trade) from my journal onto my EA.
Thank you in advance!
-
This depends on the information, you could do something like this:
if date is > xxx.xx.xx && date is < xxx.xx.xx use this set of blocks, copy the blocks and change dates until all is covered -
@jstap This could definitely help me. Thanks! I will try to experiment on this. Last night I was not happy with how optimization works on MT5. The optimization is tailored to work based on historical prices which is definitely irrelevant when using the EA on live markets where past performance don't guarantee future results.
-
Past doesn't guarantee future results, but past actions are a likely indicator of current actions, especially if this action happens over and over