Utility · MT4 · MT5

Timed Order

by EarnForex

Timed Order is a utility expert advisor that schedules market or pending orders to be executed at a specific time.

GitHub stars10
Forks2
Last update1 year ago13 Jan 2025
LicenceApache-2.0
Latest release1.021 year ago

Overview

Timed Order supports one-time execution or daily recurring trades on specified days of the week. The EA allows setting stop-loss and take-profit levels using fixed prices, point distances, ATR multipliers, or spread multiples. It includes a position sizing module based on account equity, risk percentage, or fixed monetary amounts. Additional risk controls feature maximum spread limits, slippage controls, and optional price conditions before execution. It operates on both MetaTrader 4 and MetaTrader 5 platforms.

Details

Author

EarnForex on GitHub

Type

Utility

Platform

MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5)

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Topics

calgocbotctraderexpert-advisorforexmarket-ordermetatrader-4metatrader-5mql4mql5

Input parameters

Read from TimedOrder.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
OrderTimedatetime__DATETIME__Date/time (server) to open order
OrderTypeENUM_BETTER_ORDER_TYPEBETTER_ORDER_TYPE_BUYOrder type
Entrydouble0Entry price (optional)
EntryDistancePointsint0Entry distance in points (for pending)
StopPricedouble0Stop price (for Stop Limit orders)
SLTypeENUM_SLTP_TYPESLTP_TYPE_PRICELEVELStop-loss type
StopLossdouble0
TPTypeENUM_SLTP_TYPESLTP_TYPE_PRICELEVELTake-profit type
TakeProfitdouble0
TimeTypeENUM_TIME_TYPETIME_TYPE_SERVERTime type
Expiresdatetime0Expires on (if pending)
Retriesint10How many times to try sending order before failure?
Show all 40 inputs
NameTypeDefaultDescription
MaxDifferenceint0Max difference between given price and market price (points)
MaxSpreadint3Maximum spread in points
RetryUntilMaxSpreadboolfalseRetry until spread falls below MaxSpread?
Slippageint30Maximum slippage in points
ATR_TimeframeENUM_TIMEFRAMESPERIOD_CURRENTATR Timeframe
ATR_Periodint14ATR Period
UsePriceCheckboolfalse
PriceSymbolstringPriceSymbol: Empty = current
AboveOrBelowENUM_INEQUALITYLESSTHAN
Pricedouble0
DailyModeboolfalseDaily mode: if true, will trade every given day.
DailyTimestring18:34:00Time for daily trades in HH:MM:SS format.
Mondaybooltrue
Tuesdaybooltrue
Wednesdaybooltrue
Thursdaybooltrue
Fridaybooltrue
Saturdayboolfalse
Sundayboolfalse
CalculatePositionSizeboolfalseCalculatePositionSize: Use money management module?
FixedPositionSizedouble0.01FixedPositionSize: Used if CalculatePositionSize = false.
Riskdouble1Risk: Risk tolerance in percentage points.
MoneyRiskdouble0MoneyRisk: Risk tolerance in base currency.
UseMoneyInsteadOfPercentageboolfalse
UseEquityInsteadOfBalanceboolfalse
FixedBalancedouble0FixedBalance: If > 0, trade size calc. uses it as balance.
AlertsOnSuccessboolfalseAlert on success?
AlertsOnFailureboolfalseAlert on failure?

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone EarnForex/Timed-Order from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
  3. 3Copy the filesCopy the .mq4 / .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

Position Sizer

by EarnForex
594 stars

This risk management tool for MetaTrader 4 and 5 calculates optimal lot sizes based on user-defined risk parameters, account balance, and currency. It provides a graphical user interface for setting entry, stop loss, and take profit levels visually on the chart. The expert advisor accounts for commissions, swaps, and m

MT4MT5 Utility
Updated 8 days ago Apache-2.0 GitHub repository of Position Sizer

Trading Panel

by Kashu7100
64 stars

This MetaTrader 5 tool acts as a discretion helper for manual traders to simplify order execution. It automates trade entries by applying calculated risk percentages and setting predefined stop loss and take profit values in pips. The utility features integrated trailing stop functionality, allowing users to define spe

MT5 Utility
Updated 2 years ago GPL-2.0 GitHub repository of Trading Panel

AR Trading Panel

by Andrukas8
37 stars

This MetaTrader 5 utility is a comprehensive manual trading panel and risk management suite. It simplifies order execution by calculating lot sizes based on a defined risk percentage of account equity. Users can manage trades via automated break-even points, multi-mode trailing stops including Fractals, Moving Averages

MT5 Utility SMC / ICT / price actionIndicator crossoverMulti-strategy
Updated 1 year ago None stated GitHub repository of AR Trading Panel

NNFX Backtest C1

by goncaloe
34 stars

NNFX Backtest C1 is a specialized utility for MetaTrader 4 designed to evaluate external confirmation indicators using the No Nonsense Forex methodology. It enables users to backtest custom indicators by defining signal logic such as two-line crossovers, zero-line crosses, or histogram changes. The system manages risk

MT4 Utility Trend followingIndicator crossover

Chart Pattern Helper

by EarnForex
34 stars

This utility for MetaTrader 4 and 5 automates trade execution based on trader-defined chart patterns. Users draw trendlines, horizontal lines, or channels, which the expert advisor monitors to place pending breakout orders. It handles trade entries, stop losses, and take profits according to specific object naming conv

MT4MT5 Utility Breakout
Updated 1 year ago Apache-2.0 GitHub repository of Chart Pattern Helper

MQL Trading Panel

by SSinist3r
28 stars

This expert advisor functions as a manual trading assistant for MetaTrader 4 and MetaTrader 5, designed to simplify discretionary order management. It provides a graphical interface on the chart, allowing users to execute trades with pre-defined risk parameters. The tool includes options for percentage-based risk calcu

MT5 Utility
Updated 5 years ago GPL-2.0 GitHub repository of MQL Trading Panel

More utilities

Need a broker for MT4/MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers