Optimize Start and End Times

 

Can someone please help me with the mq5 code to enable the times to be optimized ... needs to be 4 separate lines

Start Hour ... HH

Start Minute ... MM

End Hour ... HH

End Minute ... MM


Thank You :)

Files:
Time.jpg  10 kb
 
S JENKINS :

Can someone please help me with the mq5 code to enable the times to be optimized ... needs to be 4 separate lines

Start Hour ... HH

Start Minute ... MM

End Hour ... HH

End Minute ... MM


Thank You :)

Check out An attempt at developing an EA constructor . In the article, in the file

Trading engine 4.mq5 EA constructor

there is a group of parameters "Time control"

 input group             "Time control"
 input bool                  InpTimeControl          = true ;           // Use time control
 input uchar                 InpStartHour            = 10 ;             // Start Hour
 input uchar                 InpStartMinute          = 01 ;             // Start Minute
 input uchar                 InpEndHour              = 15 ;             // End Hour
 input uchar                 InpEndMinute            = 02 ;             // End Minute
An attempt at developing an EA constructor
An attempt at developing an EA constructor
  • www.mql5.com
In this article, I offer my set of trading functions in the form of a ready-made EA. This method allows getting multiple trading strategies by simply adding indicators and changing inputs.
Reason: