Skip to content
All library documents

Scheduling Expert Advisor Orders by Day and Time

Article MQL5 code base

Summary

This description outlines an Expert Advisor that opens and closes orders at configured times. The user sets the opening and closing day, hour, and minute, chooses whether to open buy orders, sell orders, or both, and specifies lot size. Optional take profit and stop loss values are given in pips, with zero meaning that the corresponding level is not added.

The close rules determine which positions are affected. One option limits timed closing to orders opened by the expert, while another closes every open order in the account. A magic number can also be used to identify the orders the expert handles. The document describes configurable behavior, but gives no market entry signal, asset-specific rules, test results, or evidence of profitability. It also does not clarify time zone handling or how scheduled actions behave when the platform is offline, so those operational details remain unspecified.

Key ideas

  • The Expert Advisor can schedule order opening and closing by day and clock time.
  • Users can choose buy or sell orders and set lot size, take profit, and stop loss.
  • A magic number can restrict handling to designated orders.
  • Timed closing can target the expert's own orders or all open account orders.
  • The description provides no entry logic or performance evidence.

Tags

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