AutoTrading Scheduler EA is a powerful MetaTrader Expert Advisor designed to automatically manage the AutoTrading function in both MT4 and MT5 platforms based on a weekly schedule.
Instead of manually turning trading on and off, this EA allows traders to define specific time periods during which automated trading is enabled. When trading is disabled, the EA can also attempt to close all open positions and remove pending orders, helping you avoid unwanted exposure outside your preferred trading hours.
To operate correctly, the EA requires DLL imports and uses a standard Windows system file (user32.dll). Make sure DLL imports are enabled when attaching the EA to a chart.
User Interface Overview
The control panel is intuitive and easy to use:
- Switch Button – Turns the scheduler on or off
- Time Mode Selector – Choose between Local Time and Server Time
- Status Indicator – Displays system states such as OK, No AutoTrading, No Connection, or DLLs Disabled
- Daily Time Fields – Set trading time ranges for each day of the week
- Set to All Empty Button – Copies Monday’s schedule to other empty days for quick setup
- Close Trades Option – Attempts to close all trades before AutoTrading is disabled
This setup allows you to define precise trading sessions with flexibility and full control.
How It Works
When the scheduler is turned off, the EA remains inactive. Once activated, it enables AutoTrading only during the time periods you specify.
You can switch between local computer time and broker server time, which is especially useful during daylight saving time changes.
The status system provides important feedback:
- OK – Everything is working properly
- No AutoTrading – AutoTrading is disabled manually
- No Connection – Internet or broker connection lost
- DLLs Disabled – DLL imports are not allowed (must be enabled for the EA to work)
Only the DLL issue affects functionality directly — the others are informational.
Setting Trading Time Ranges
Time ranges use a 24-hour format.
Example:
9-17 means trading from 09:00 to 17:00
You can define multiple sessions per day using commas:
Example:
13:30-16:30, 19:30-20:05
This allows precise control over when automated strategies are active.
Smart Trade Closing Feature
By enabling the checkbox at the bottom of the panel, the EA will attempt to:
- Close open positions
- Delete pending orders
before AutoTrading is disabled.
While closure is not guaranteed due to market conditions, this feature helps reduce risk outside scheduled trading hours.
Input Parameters
- Slippage (default: 2):
Controls allowed slippage in pips when closing positions. - PanelOnTopOfChart (default: true):
Keeps the control panel in the foreground.
Set to false to display the chart over the panel.
| AutoTrading Scheduler | MT4 |
| AutoTrading Scheduler | MT5 |
Password:forexsignalpro.net
⚠ Disclaimer: Always test the robot on a demo account before using real money. Trading involves risk.