how ican i create a EA that buys certain days at certain times

 

hi, recently i'm starting to program in mql5 , and  i want increase in my system day of week and hours , for example to buy the every monday at certain time and sell the same day at a different time , als oi would like to insert the opening and closing prices of the prevuious days to comprare them with each other ; 

 have searched the web and in the documentation but I have not been able to find the right information , I had thought of building an array of date and one for the time but I do not know if I do it correctly , I also found various fuctions that I can use but it seems that they onlye serve to identidy a specific date or the current one ;

how do you think it is best to do ? 

 
seems not difficult at all, can simply do it with if()
 

You are not going to find it in the documentation. Simply code it.

Get the DOW and current hour. Test your condition.

Show us your attempt (using the CODE button) and state the nature of your problem.
          No free help (2017.04.21)