How to Automatically Control Your Trading Button in MetaTrader 4

Mike 2019.08.05 00:53 25 0 0
Attachments

If you’re like many traders, you might have an Expert Advisor (EA) that you want to run within specific time frames. But what happens if you don’t have access to the source code to tweak it? Don’t worry! There’s a handy utility that lets you automatically enable or disable the automated trading button for your EA in MetaTrader 4.

This utility can be utilized as an EA, indicator, or script, but I personally recommend using it as an EA for simplicity.

Here are some quick tips to get started:
  • Make sure to uncomment four specific lines of code marked as 'uncomment'.
  • You can remove the OrderSend command, as it's just there to help the code pass the test and isn’t necessary for your actual trading.
  • Don’t forget to add the specific minutes in the code for your desired trading intervals.
  • Feel free to modify and integrate this into your existing EA or indicator.
Input Parameters:
  • Start AutoTrade Time
  • Stop AutoTrade Time

Now you’re all set to take control of your automated trading! Happy trading!

List
Comments 0