Add this code to your Metatrader Experts to trade inside a time range

[YTLoad url=0fqRXdraHvI]

If you want to set your expert to only trade within specified time ranges this code will help.

I cover 3 alternative techiques for user entry of range start and finish times along with how to check and validate the times entered and then common code with a single function call to check if the current time is inside the specified range.

If you are looking for a broker for MT5 or MT4 consider supporting our channel by using our broker by following one of these links.


Leave a Comment

Scroll to Top