Skip to content
Forex Indicator System Thailand
Back to marketplace
UtilityEAMedium

Timed Order

EA that sends an order at a scheduled time, once or daily, with flexible SL/TP and lot sizing

Download this EA for free

Download right away. Nothing to fill in.

Version
1.02
Published
11/21/2026
File size
103 KB

Open source, Apache License 2.0, by EarnForex.com. See licences

Version history

  1. 1.02Current11/21/2026 · 103 KB

    First release on this site.

How to use

Install the EA in MetaTrader 5 and drag it onto the chart of the symbol you want to send the order on. Turn Algo Trading on and set OrderTime to a future time (the default is the compile time, which has already passed, so the EA reports a wrong input and does nothing), or turn on DailyMode and set DailyTime in HH:MM:SS format.

Choose OrderType, the entry (Entry, or EntryDistancePoints for pending orders), the SL/TP and the lot size. By default there is no SL/TP and MaxSpread is 3 points, which is very low; if the spread is higher the EA will not send the order and will not retry unless RetryUntilMaxSpread is on.

At the set time the EA makes a single attempt (up to Retries tries). If it fails it does not try again until the EA is reloaded or the next DailyMode cycle. Try it on a demo account first.

Parameters

NameDefaultDescription
OrderTime__DATETIME__Date and time at which the order is sent (in the selected time type). The source default is the compile time (__DATETIME__); you must set a future time yourself.
OrderTypeBETTER_ORDER_TYPE_BUYOrder type: Buy, Sell, Buy Limit, Sell Limit, Buy Stop, Sell Stop, Buy Stop Limit or Sell Stop Limit.
Entry0Entry price (for pending orders). Leave at 0 when using EntryDistancePoints or for a market order.
EntryDistancePoints0Distance in points from the current price to the entry of a pending order (not supported for Stop Limit).
StopPrice0Stop price for Stop Limit orders.
SLTypeSLTP_TYPE_PRICELEVELHow the stop-loss is given: price level, distance in points from entry, ATR multiple, or number of spreads.
StopLoss0Stop-loss value according to SLType. 0 means no stop-loss.
TPTypeSLTP_TYPE_PRICELEVELHow the take-profit is given: price level, distance in points from entry, ATR multiple, or number of spreads.
TakeProfit0Take-profit value according to TPType. 0 means no take-profit.
TimeTypeTIME_TYPE_SERVERTime reference for OrderTime and DailyTime: the machine's local time or the broker server time.
Expires0Expiry date and time of a pending order. 0 means no expiry.
Retries10Number of times to try sending the order before counting it as failed.
MaxDifference0Maximum difference in points between the given price and the market price; if exceeded the order is not sent. 0 disables the check.
MaxSpread3Maximum spread in points allowed for sending. The default of 3 is very low. 0 disables the check.
RetryUntilMaxSpreadfalseIf the spread exceeds MaxSpread, wait and retry until it falls below the limit.
Slippage30Maximum accepted price deviation in points.
ATR_TimeframePERIOD_CURRENTATR timeframe, used when SL/TP are given as an ATR multiple.
ATR_Period14ATR period, used when SL/TP are given as an ATR multiple.
UsePriceCheckfalseSend the order only if the PriceSymbol price condition holds at the trigger time.
PriceSymbolSymbol used for the price condition. Empty means the chart symbol.
AboveOrBelowLESSTHANDirection of the price condition: price must be less than or equal to (<=), or greater than or equal to (>=), Price.
Price0Price level compared in the price condition.
DailyModefalseSend the order on every selected day at DailyTime instead of once at OrderTime.
DailyTime18:34:00Time of day to send the order in daily mode, in HH:MM:SS format.
MondaytrueSend on Monday (daily mode).
TuesdaytrueSend on Tuesday (daily mode).
WednesdaytrueSend on Wednesday (daily mode).
ThursdaytrueSend on Thursday (daily mode).
FridaytrueSend on Friday (daily mode).
SaturdayfalseSend on Saturday (daily mode).
SundayfalseSend on Sunday (daily mode).
CalculatePositionSizefalseCompute the lot size from risk and stop-loss distance instead of a fixed size (a stop-loss is required).
FixedPositionSize0.01Fixed lot size, used when CalculatePositionSize is off.
Risk1Risk per order as a percentage of the base amount (when the lot is computed).
MoneyRisk0Risk per order as an amount in account currency, used when UseMoneyInsteadOfPercentage is on.
UseMoneyInsteadOfPercentagefalseUse a money amount (MoneyRisk) instead of a percentage (Risk) for the lot calculation.
UseEquityInsteadOfBalancefalseUse equity instead of balance as the base for the risk percentage.
FixedBalance0If above 0, this value is used as the base amount for the lot calculation instead of the real one.
AlertsOnSuccessfalseAlert when the order is sent successfully.
AlertsOnFailurefalseAlert when sending fails or a filter blocks the order.
EnableNativeAlertsfalseShow a pop-up Alert in MetaTrader.
EnableEmailAlertsfalseSend an e-mail alert (e-mail must be configured in the terminal).
EnablePushAlertsfalseSend a push notification to the MetaTrader mobile app.
Magic20220913Magic number attached to the orders the EA sends.
OrderCommentaryTimedOrderComment text attached to the order.
SilentfalseDo not show status text on the chart.
LoggingtrueWrite errors and events to a log file.

Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Experts folder.
  4. Right-click Expert Advisors in the Navigator window and choose Refresh (or restart MT5).
  5. Drag it onto a chart, adjust the Inputs, turn on Allow Algo Trading, then click OK.

Description

An EA that opens an order at a scheduled time on the symbol of the chart it is attached to. It supports market and pending orders (Limit, Stop, Stop Limit), sent once at OrderTime or every day at DailyTime on the weekdays you choose. You can use server time or local time.

The entry can be an exact price or a distance in points from the current price. Stop-loss and take-profit can each be given four ways: a price level, a distance in points from the entry, an ATR multiple, or a number of spreads. Lot size can be fixed, or computed from a risk percentage of balance/equity or from a money amount (a stop-loss is then required).

Pre-send filters include a maximum spread (MaxSpread), the difference between the market price and the set price, and a price condition on any symbol (above or below a level). If sending fails it retries up to Retries times. It shows status on the chart, writes a log file, and can alert through Alert, e-mail and push.

Banners from the Exness partner programme

Exness banner: gold spreads*

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.