Automatically enable or disable the automated trading button – expert for MetaTrader 4

  • Platform: Metatrader4
  • Currency pairs: Any pairs, indices and metals
  • Trading Time: Around the clock
  • Recommended broker: icmarkets, XM
  • 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

  • 1. Open the MT4 trading software – “File” – “Open Data Folder” in the upper right corner
  • 2, find the “MQL4” folder – “Experts”, put the EA in this folder
  • 3, need to refresh or restart the trading software to display EA, find “EA” in “Navigation” – “EA Trading”
  • 4, find the EA you need to use, right click the mouse, select “attach to the chart” (additional chart: EA uses the currency to be linked, if you need to hang Europe and America, please attach to the AUDUSD chart)
  • 5. After adding the chart, set the EA parameter. In the “Common” option, select “Multi-empty position” and check the box in front of “Allow real-time automatic trading”
  • 6, in the “input parameters”, set the relevant parameters, generally modify the number of single hand, jiacang distance, loss ratio, 10,000 US dollars according to the minimum parameter settings, after setting “confirm
  • 7. After setting the EA parameters, start the EA. In the “Tools” – “Options” – “EA” – check “Allow DLL import” to confirm