Skip to content
All library documents

Scheduling Automated Trading Availability Without Editing an EA

Article MQL5 code base

Summary

The document describes a utility intended to turn a platform’s automated-trading control on and off at configured start and stop times. Its use case is an existing expert advisor whose source code is unavailable, allowing the trader to restrict when automated trading is enabled without rewriting that advisor. The utility is described as usable as an expert advisor, indicator, or script, though the author says they used it as an expert advisor.

The setup notes mention enabling marked code lines, adding minute values, and setting the start and stop times. The article also says a sample order-send command is only included for testing and can be removed; it does not explain the implementation or provide a full code listing in the supplied text. No timing examples, platform-specific behavior, reliability tests, or safeguards are given. The method controls when automation is enabled, but does not describe how the underlying strategy manages positions or open orders when the schedule changes.

Key ideas

  • A utility can schedule when automated trading is enabled or disabled.
  • The stated use case is controlling an existing expert advisor without changing its source code.
  • The utility is described as usable as an expert advisor, indicator, or script.
  • Configuration involves setting start and stop times and minute values.
  • The supplied description does not explain handling of open positions or test the utility’s reliability.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.