Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Expert Advisor | Automatically enable or disable the automated trading button

MetaTrader Experts, Indicators, Scripts and Libraries

Let say you have an EA and you want it to trade in between an interval of time but you do not have the source codes to modify the EA.

This utility allows you to automatically enable or disable the automated trading button. You can use the codes as an EA, Indicator or script but I used as an EA. 

Recommendations:
  • You need to uncomment 4 lines of codes where is written uncomment
  • You can remove Ordersend command because I set it only for the codes to past the test but it is meaningless.
  • You add minutes for to the codes
  • You can modify and insert it on your EA, Indicator
Input parameters:
  • Start AutoTrade Time
  • Stop AutoTrade Time
26270