How to code a EA to trade in time range ? - page 2

 
Vladimir Karputov #:

In this case, input parameters are needed:

need a check function:

Usage example:

Thank you so much sir. 

 
David Diez #:

There's no need of your code to post an example:

From my point this is the simpler way to filter by hour, notice that StartHour could be after than StopHour. Filter condition must be true.

Thank you so much.