AutoTrading Scheduler allows users to define specific time windows for each day of the week to toggle the platform's global AutoTrading status. Beyond simple scheduling, the utility can close active positions and delete pending orders before disabling automated trading. It includes configuration options for magic number filtering, support for local or server time, and notification alerts via terminal, email, or push messages. The tool serves to restrict trading activity to specific sessions or events.
Weekly scheduling for each day of the week
Automatic closing of positions and pending orders
Filtering by magic numbers to exclude specific trades
Integrated visual panel with dark mode support
Alert notifications via native, email, and push channels
Read from AutoTrading Scheduler.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
EnableNativeAlerts
bool
false
EnableEmailAlerts
bool
false
EnablePushAlerts
bool
false
DefaultTurnedOn
bool
false
Default state of the scheduler: ON or OFF
DefaultTime
ENUM_TIME_TYPE
Local
Default time type
DefaultMonday
string
Default enabled Monday periods
DefaultTuesday
string
Default enabled Tuesday periods
DefaultWednesday
string
Default enabled Wednesday periods
DefaultThursday
string
Default enabled Thursday periods
DefaultFriday
string
Default enabled Friday periods
DefaultSaturday
string
Default enabled Saturday periods
DefaultSunday
string
Default enabled Sunday periods
Show all 25 inputs
Name
Type
Default
Description
DefaultClosePos
bool
false
Close all trades before turning AutoTrading OFF?
DefaultEnforce
bool
true
Always enforce schedule?
DefaultAllowDeny
ENUM_ALLOWDENY
ALLOWDENY_ALLOW
Schedule for allowing or denying AutoTrading?
Slippage
int
2
Slippage
ScheduleFile
string
ScheduleFile (optional)
WaitForNoPositions
bool
false
Switch A/T off only when there are no open positions?
WaitForNoOrders
bool
false
Switch A/T off only when there are no pending orders?
MagicNumbersFilter
string
Magic numbers filter
IgnoreMagicNumbers
bool
false
Ignore trades with above-listed magic numbers
AsyncMode
bool
false
AsyncMode: If true, trades are closed in async mode
WhatToClose
ENUM_WHAT_TO_CLOSE
WTC_ALL
If attempting to close trades, what to close?
DarkMode
bool
false
DarkMode: Enable dark mode for a less bright panel.
AutoDetectDarkMode
bool
true
AutoDetectDarkMode: Dark/light mode will be autodetected.
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone EarnForex/AutoTrading-Scheduler from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
3Copy the filesCopy the .mq4 / .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
Account Protector is a risk management expert advisor for MetaTrader 4 and 5 designed to monitor account health and prevent excessive drawdowns. It allows users to set specific triggers based on floating profit or loss, equity levels, free margin, spread, or daily performance. When these conditions are met, the EA auto
JT Prop Firm Trade Manager is a risk management utility for MetaTrader 4 designed to protect accounts from violating equity and drawdown rules. It monitors daily loss limits and maximum drawdown, allowing users to configure thresholds in either currency or percentage. The tool features time-based filters to restrict ov
Prop Firm Manager is a risk management utility for MetaTrader 4 designed to help traders comply with prop firm rules and protect account equity. The tool monitors maximum loss per trade and daily drawdown limits using either fixed dollar amounts or percentages. It manages trading sessions by restricting overnight and w
This MetaTrader 4 collection provides a set of utilities focused on risk management and order execution. It includes scripts and expert advisors designed to automate the closing of open positions and the removal of pending orders. The logic specifically targets closing trades that have reached a specific gain threshold
ICCapitals Secure is a risk management utility for MetaTrader 5. It acts as a supervisor to monitor and enforce trading parameters across an account. The expert advisor calculates position sizing based on a user-defined risk percentage per trade and manages risk-to-reward ratios. It features a timer-driven function to
Equity Protector is an account management utility for MetaTrader 5 designed to safeguard capital against significant drawdowns. It operates by monitoring account equity and balance at a user-defined frequency, such as every second. When the floating loss reaches a specified percentage or limit, the utility automaticall