An EA (automated trading system) isn’t something you just install and forget. No matter how good an EA’s verification data looks, the moment the computer running it stops, the EA reverts to being nothing more than a file. The market keeps moving 24 hours a day, and if the EA alone falls asleep, positions that should be closed go unclosed, and averaging-down keeps piling up unrealized losses. Most accidents like this happen not because the logic was flawed, but because the “environment that keeps it running” was taken too lightly.
This page organizes, in a way beginners can follow, the operating environment needed to keep an EA running without interruption. We’ll cover why a VPS (Virtual Private Server) is preferable to a home PC, and lay out the foundation that anyone who already understands what an EA is should set up next, summarized as an installation procedure and an operational-verification checklist. This is not an article promoting any specific VPS provider. We’re simply translating, from the standpoint of “an environment that keeps the EA from stopping,” what points deserve your attention.
Keeping an EA Running Requires the Right Environment (The Risks of a Home PC)
An EA is a program that makes a decision every time the price moves. Put another way, it can only make decisions while the MT4/MT5 platform it runs on is both open and connected to the internet. For discretionary human trading, “I’m tired today, so I’ll close up” is fine — but for a fully automated EA, any time the computer is down is, in effect, time when it isn’t watching the market at all. This is exactly where the weaknesses of running on a home PC pile up.
The Difference Between Running on a Home PC and Running on a VPS
When you run an EA on a home computer, it quietly stops in situations like the following. All of these are common occurrences, and every one of them is a likely gateway to an accident.
- Power outages or a tripped breaker: The entire computer loses power, taking MT4/MT5 down with it. The EA won’t run again until you manually restart everything once power returns.
- Automatic Windows restarts: Update programs trigger a restart on their own in the middle of the night, and you wake up to find MT4 closed — a classic failure pattern.
- Internet disconnections: A router restart or a temporary outage on your provider’s end creates windows of time when orders can’t be sent.
- Sleep mode and screen-off: If power-saving settings put the computer to sleep, the EA stops making decisions for the duration. Laptops require particular caution here.
- Sharing the machine with other tasks: If you use the same everyday PC for video editing or demanding games, performance can bog down and order execution can be delayed.
A VPS (Virtual Private Server) is a mechanism for renting, over the internet, what amounts to “your own dedicated computer that’s always powered on,” housed in a data center. Because the data center handles power-outage protection (uninterruptible power supplies), redundant internet connections, and round-the-clock management, MT4/MT5 and your EA keep running regardless of power outages or sleep mode at your home. You simply connect to the VPS from your home computer via “remote desktop” to operate it, so even after you disconnect, the EA on the other end keeps running.
Put differently, a home PC gives you “an EA that only works while you’re awake and the computer is on,” while a VPS enables “an EA that keeps working even while you’re asleep or traveling.” The more an EA’s type — such as averaging-down or trailing strategies — is one where “missing the timing of a close lets losses balloon,” the greater the value of an environment that never stops.
How to Choose a VPS and What It Costs (Without Recommending Any Specific Provider)
Many companies offer VPS plans, and our lab does not recommend any specific provider. Here, we’ll only give you the criteria for “what to look at, at minimum, if you’re going to run an EA.”
- Whether it’s suited for MT4/MT5: Choose a plan explicitly labeled as an FX-oriented VPS, or a VPS that runs Windows. This is because MT4/MT5 usually assume a Windows environment.
- The server’s physical location: A location close to your FX broker’s server is said to reduce communication delay (latency), which tends to shrink order-execution slippage. This matters especially for scalping-style strategies.
- Memory and CPU headroom: If you plan to run multiple charts or multiple EAs at once, the smallest configuration may not be enough. It’s safest to start with one or two EAs and move up to a higher-tier plan as needed.
- Cost: Consider whether the monthly fixed fee is too heavy relative to your trading capital. Signing up for an overpriced VPS to support a small verification-sized account makes it easy for costs to outweigh returns. Prices vary by plan and by time, so always check the latest rates before signing a contract.
A Researcher’s Note
There’s no need to pick an expensive plan from the start. First, run a single EA on a single chart, and spend a few days to a few weeks confirming with your own eyes whether it really never stops and whether you’re satisfied with order execution — then upgrade the specs if needed. Just like with an EA itself, checking the environment’s behavior with a small, minimal setup first is the approach least likely to fail.
Why This Environment Matters — An EA Can’t Afford Any “Unwatched” Time
To put it plainly, the reason for setting up a proper operating environment is simple. An EA’s strength lies in being able to execute strictly by the rules, without emotion, even during hours when no human is watching. But that strength only holds as long as the EA keeps running. Any time the computer is down is, for the EA, a blank spot where it cannot make decisions — and it cannot respond at all to any sudden move that occurs during that blank spot.
For example, if the computer goes to sleep at the exact moment a closing condition (take-profit or stop-loss) is met, the EA cannot execute the close. It’s entirely possible that by the time it starts up again, the market has moved sharply against the position. For an averaging-down EA, the price can move further than expected while it’s stopped, so that once it comes back online, several averaging steps trigger all at once and unrealized losses balloon. In short, it’s more accurate to think of the operating environment as something you set up “to prevent accidents caused by stoppages” rather than “to increase profit.”
As AI Puts It
Our lab’s MAC v2.0 is a GOLD-only strategy that uses averaging-down (1.2x multiplier, up to 15 steps, spaced 30 pips apart) and leaves hard stop-loss management to the EA itself. When we had an AI summarize this, it put it this way: “Because this design adds to the position step by step as price moves, if the EA stops partway through, that management gets interrupted, and recognizing and dealing with unrealized losses gets delayed. That’s why an environment that never stops for 24 hours matters especially for this type of strategy.”*This is an AI’s interpretation and does not guarantee future results.
The Steps: From EA Installation to Verifying It’s Running
From here, we get into the actual installation work. The exact screens differ slightly depending on whether you’re using MT4 or MT5 and which version your broker provides, but the overall flow is the same for any EA: four stages — place the files in the right location, configure permissions, apply the EA to a chart, and confirm it’s running.
Placing the Files in the Right Location
EA files (with extensions .ex4/.mq4 for MT4, or .ex5/.mq5 for MT5) won’t be recognized by MT4/MT5 unless they’re placed in the designated folder. Rather than hunting for the folder manually, it’s more reliable to open it from MT4/MT5’s top menu.
- Launch MT4/MT5 and, from the top menu, select “File” -> “Open Data Folder.”
- Inside the folder that opens, place the EA file into
MQL4(orMQL5for MT5) -> theExpertsfolder. - If the EA comes with an accompanying indicator, place it in the
Indicatorsfolder; if the EA reads external files, place those in the designatedFilesfolder — follow whatever instructions the distributor provides. - Restart MT4/MT5 (or right-click in the “Navigator” panel and select “Refresh”), and the EA’s name will appear under “Expert Advisors” in the Navigator window on the left.
If the name doesn’t show up here, in most cases either you placed it in the wrong folder, or you opened a different data folder. If you have multiple installations of MT4, it’s easy to place the file in the wrong installation’s folder, so make sure to open “Open Data Folder” from the specific MT4 you actually want to run the EA on.
AutoTrading and DLL Permissions
By default, an EA is not granted “permission to place orders,” as a safety measure. You need to explicitly turn on the following permissions. Configure them from MT4/MT5’s top menu: “Tools” -> “Options” -> the “Expert Advisors” tab.
- Check “Allow AutoTrading”: This is the master permission that lets the EA place orders at all.
- Allow DLL imports: Some EAs use an external program (a DLL). Only check this box if the distributor explicitly states that “DLL permission is required”; otherwise, leave it off. Because a DLL can execute external code, casually allowing it for an EA of unknown origin is dangerous. Grant this permission, following the provided instructions, only for EAs from distributors you trust.
- WebRequest (external URL access): For EAs that communicate externally, such as news-driven strategies, you may need to register the allowed URLs here. Again, configure this only when instructed by the distributor.
A Researcher’s Note
If an EA simply tells you to “allow DLLs” without explaining why it’s needed or what the DLL actually does, stop and be a little suspicious. Handing over a powerful permission to something of unclear origin is one of the warning signs listed in how to spot a dangerous EA. Only grant DLL permission when you trust the distributor and the reason has been explained.
Applying to the Chart -> Turning the AutoTrading Button Green -> Confirming the Smiley Mark
Once permissions are configured, you actually apply the EA to a chart and run it. The two-stage visual check at this point is both the part beginners find most confusing and the most important thing to get right.
- Open a chart with the correct currency pair and timeframe: Open a chart for the instrument specified by the EA (for example, XAUUSD for gold) and the specified timeframe (for example, M30). Using the wrong instrument or timeframe produces behavior different from what’s expected.
- Drag the EA onto the chart and apply it: Drag the EA’s name from the Navigator onto the chart, or right-click it and choose “Attach to Chart.” When the settings dialog opens, check the box equivalent to “Allow AutoTrading,” confirm the parameters (lot size, averaging-down spacing, timeframe, etc.), and click OK.
- 1. Turn the toolbar’s “AutoTrading” button green: Click the “AutoTrading” button at the top of MT4/MT5 so it turns green (enabled). If it stays red (disabled), no EA can place orders — this is the master switch for MT4/MT5 as a whole.
- 2. Check the “smiley mark” in the chart’s top-right corner: If a smiling face icon appears next to the EA’s name in the top-right of the chart, that chart’s EA is in a “ready to run” state. If it shows a troubled face (an X or a frown), AutoTrading is disabled for that chart.
The reason for this two-part check is that “the AutoTrading switch for MT4/MT5 as a whole” and “whether the EA on that particular chart is enabled” are two separate things. Even with the overall button green, if you forget to check the AutoTrading box when applying the EA to the chart, you won’t get a smiley and no orders will go out. Conversely, even if the chart is enabled, nothing will run if the overall button is red. Remember: only when both “green button” and “smiley” are present together is the EA actually running.
As AI Puts It
Put simply, these two stages amount to “the house’s breaker (the overall AutoTrading button) is on, and the room’s light switch (that chart’s EA) is also on.” If either one is off, the light in that room — the EA — doesn’t turn on. Verifying operation is simply the task of checking, every time, that both of these switches are on.*This is an AI’s interpretation and does not guarantee future results.
What to Check After the EA Is Running (Logs, Weekend Maintenance, and Watching for Stoppages After a VPS Restart)
Getting the smiley mark to appear after installation doesn’t mean you’re done. Monitoring an EA matters more “while it keeps running” than at the moment it starts. Neglecting this leads to the kind of accident where it has quietly stopped and you don’t even notice.
Using the Logs to Confirm It’s Really Running
The “Terminal” window at the bottom of MT4/MT5 keeps a record of the EA’s activity. Make it a habit to check the following tabs.
- The “Experts” tab: Messages the EA has produced (initialization complete, order sent, errors, and so on) are listed in chronological order. If you see something like “initialized,” the EA has loaded correctly.
- The “History/Journal” tab: This records MT4/MT5’s overall activity — connection drops and reconnections, whether orders succeeded or failed, and so on. Any period when the connection was down will show up here.
- The “Trade” tab: Shows currently open positions and their unrealized profit/loss. For an averaging-down EA, use this to see how many steps deep it currently is, the total lot size, and the unrealized loss.
What these numbers mean — how to interpret unrealized loss or maximum drawdown — ties into the metrics covered in how to read an EA’s performance. Checking the logs to understand the current state, then judging whether those numbers fall within your own tolerance — once you can go back and forth between those two, monitoring the environment turns from a “chore” into “verification.”
Weekend Maintenance and Watching for Stoppages After a VPS Restart
The thing most easily overlooked is cases where the EA doesn’t automatically come back after a restart. VPSs and computers have “pause points” like the following.
- Scheduled VPS maintenance and restarts: Your VPS provider may restart the server for maintenance. If you haven’t set MT4/MT5 to auto-launch afterward, the EA won’t come back up.
- Weekends (market closure): The FX market is closed on Saturdays and Sundays, so no ticks come in. Since the EA gets no price updates to base decisions on, it’s effectively in standby. It’s a good habit to check on Monday morning that everything has properly resumed running once the market reopens.
- Restarts after Windows updates: Windows on a VPS gets updates too. MT4 staying closed after an automatic restart is the same pitfall as on a home PC.
The countermeasure is simple: set things up so that even after a restart, MT4/MT5 launches automatically and the EA comes back with AutoTrading turned on. Most versions of MT4/MT5 remember their state right before closing — which charts were open, which EAs were applied, and whether AutoTrading was on or off — and restore it the next time they start. Even so, don’t over-rely on this: whenever a restart occurs, always visually re-confirm “green button + smiley.” The worst-case accident is assuming it recovered automatically when it had actually stopped.
A Researcher’s Note
Don’t be reassured just because “it was running on installation day.” Accidents usually happen weeks later, as an “unnoticed stoppage.” I make a point of checking the logs and the smiley mark every Monday morning, and every time a VPS restart notification comes in. Monitoring isn’t glamorous, but skipping it can ruin even a good EA.
Post-Installation Checklist (Our Lab’s Version, With AI-Added Items)
The following checklist folds everything above into a single reference. Whenever you install a new EA, or whenever a restart occurs, go through it from top to bottom.
| Timing | What to Check | What “OK” Looks Like |
|---|---|---|
| At installation | Where the EA file is placed | Placed in Data Folder -> MQL4(5)/Experts, and it appears in the Navigator |
| At installation | AutoTrading permission (Options) | “Allow AutoTrading” is checked |
| At installation | DLL/WebRequest permissions | Allowed only if the distributor specifies it; left off otherwise |
| At installation | Chart instrument and timeframe | Matches what the EA specifies (e.g., XAUUSD, M30) |
| At installation | Parameters (lot size, averaging-down spacing, etc.) | Confirmed to be set appropriately for your capital |
| Operational check | 1. AutoTrading button (overall) | Green (enabled) |
| Operational check | 2. Mark in the chart’s top-right corner (that EA) | Smiley (happy face) mark |
| Operational check | Experts/Journal logs | Initialization complete, no errors |
| Ongoing monitoring | Trade tab (unrealized loss, number of steps) | Within tolerance; track the number of averaging-down steps |
| After a restart | MT4/MT5’s automatic recovery | Chart, EA, and AutoTrading are all restored |
| After a restart | Re-checking green button + smiley by eye | Both are present together |
| Start of the week | Operation after the market reopens | Re-check logs and the mark on Monday morning |
As an AI-added item, our lab also runs monitoring that “records unrealized loss, maximum drawdown, and the number of averaging-down steps as numbers, and sends an alert if they exceed the expected range.” Human eyes miss things, so layering on a mechanism that triggers an alert once a number crosses a threshold narrows the gaps in environment monitoring. This idea works together with EA money management.
Notes for Discretionary Traders Adding a Support EA
An EA isn’t only something that “handles everything from entry to close, fully automatically.” There’s also a way to use one alongside discretionary trading, entrusting it with “support functions only,” such as automating stop-losses, trailing, or closing all positions at once (this is the semi-automatic, discretionary-support form touched on in what an EA is). The thinking around the operating environment is the same in this case too, but there are a few considerations unique to discretionary use.
- Conflicts between manual orders and the support EA: Check how the support EA treats positions you opened manually — whether it monitors them too. An EA that acts on all positions at once can end up sweeping in other manually opened trades as well.
- Often workable even on a home PC: Discretionary support use is often limited to “only the hours you’re watching the chart yourself,” in which case a VPS isn’t strictly necessary. But if you want your stop-loss protected automatically even while you sleep, you need the same never-stopping environment as with a fully automated EA.
- Whether it conflicts with your discretionary approach: Check whether automating your stop-loss placement is consistent with the “placing it just outside the structure” idea covered in stop-losses and money management. If the EA mechanically places stops at round, obvious prices, they become more prone to getting caught by liquidity hunts (see support/resistance and liquidity).
Discretionary trading and EAs aren’t opposed to each other — the idea is to separate “the part a person judges” from “the part left to the machine.” Even when adding a support EA, our lab’s basic stance doesn’t change: confirm its behavior with a small amount of capital and a small lot size before moving to full-scale operation.
Bringing In AI Analysis — Watching the Gaps in Your Environment Through the Numbers
The weak point of an operating environment was “having stopped without anyone noticing.” This is territory where AI and automated monitoring excel. A human can’t watch logs every single minute, but a program can detect and flag anomalies such as “no ticks have arrived for a set period,” “unrealized loss has crossed a threshold,” or “averaging-down has gone beyond the expected number of steps.” At our lab, alongside verifying the EA itself, we also run a system in parallel that monitors whether the EA has stopped and whether the numbers stay within expected bounds.
As AI Puts It
“Leaving operational monitoring to AI” essentially means “hiring a watchman.” It detects and reports the moment the EA stops making decisions, or the moment MAC v2.0’s averaging-down (up to 15 steps) gets close to its deeper steps. If the EA keeps working while a human sleeps, that watchman needs to keep watching the numbers without sleeping too — it’s really just that simple.*This is an AI’s interpretation and does not guarantee future results.
Summary
An EA’s operating environment isn’t decoration meant to boost profit — it’s the foundation that prevents accidents caused by stoppages. On a home PC, power outages, automatic restarts, connection drops, and sleep mode can all silently stop the EA, risking an interruption to closing trades or averaging-down management. That’s precisely why running on a VPS 24 hours a day matters, and why, after installation, the key is cycling through the checklist: file placement -> AutoTrading/DLL permissions -> applying it to the correct instrument and timeframe -> the two-stage check of the green AutoTrading button plus the smiley mark -> ongoing log monitoring. Especially after a VPS or Windows restart, and after the market reopens at the start of the week, always confirm with your own eyes that it has truly resumed.
Once your environment is in place, the next question is finally “how do you choose the EA itself?” Start with the basics in what an EA is, check how it operates in how an EA works, and learn how to read the numbers in how to read an EA’s performance. The actual verification data our lab is running (published including losing months) can be checked at the performance dashboard and the EA library. The full picture is pulled together at the EA learning hub.
Frequently Asked Questions
- Q. Is a VPS mandatory? Is a home PC no good?
A. If you’re running a fully automated EA 24 hours a day, a never-stopping environment — that is, a VPS — is effectively a prerequisite. It can run on a home PC, but only if you can manage, on your own, the risk of it stopping due to a power outage, an automatic restart, or sleep mode. If you’re only using it as discretionary support during hours you’re personally watching, a VPS isn’t necessarily required. - Q. The smiley mark isn’t appearing. What should I do?
A. First check whether the “AutoTrading” button at the top is green (enabled), then check whether you ticked the AutoTrading box when applying the EA to the chart. Also check whether “Allow AutoTrading” is checked under “Tools -> Options -> Expert Advisors.” The smiley only appears once both the overall switch and the chart-specific switch are on. - Q. After a VPS restart, the EA had stopped. Can this be prevented?
A. Configuring MT4/MT5 to restore its state right before closing (chart, EA, AutoTrading on) and setting it to auto-launch via Windows startup makes recovery more reliable. Even so, don’t trust it completely — after any restart notification, the surest approach is to always visually re-confirm “green button + smiley + logs.” Layering on monitoring that alerts you to abnormal numbers makes it even safer.
Risk Disclosure
This page is not investment advice; it is analysis and verification information provided by our lab. Past results (including backtests and forward tests) do not guarantee future profit. Offshore brokers (such as HFM) carry high-leverage risk; our lab treats them as a small, high-risk verification allocation, with domestic brokers (JFX/OANDA) as the main focus of operation. FX and automated trading can result in losses. Please always trade with discretionary funds, and act on your own judgment and at your own responsibility.