ForexCopilotEA

Risk management

When to Turn Off Your Expert Advisor: Seven Clear Rules, and How to Switch It Off Safely

By Benjamin Lee · Updated · 6 min read

Setting an EA running is easy. Knowing when to stop it is the skill that protects an account. Stopping too early throws away a sound system after normal variation. Stopping too late turns a bad week into a lost account. The answer is not a feeling, it is a set of rules written before the first trade, plus a safe way to switch off so you do not leave positions unmanaged. This guide gives you seven rules you can adapt, the right way to stop, and a plan for restarting.

Key takeaways

  • Write your stop rules before the EA trades, while you are calm.
  • Stop when behaviour is wrong or outside the tested range, not because of one losing day.
  • Switch off new entries first, then decide what to do with open positions.
  • Pause around events the EA was not designed for, such as major news or a broker change.
  • Restart only after you know why you stopped and have tested the fix on demo.

Why you need written rules

Under stress, people do predictable things. After losses they cling to the hope that the EA will recover, or they panic and switch off at the worst point. After wins they ignore warning signs. A written rule removes the decision from the moment. It says: when this happens, I do that. The rule does not have to be perfect. It has to exist, and you have to follow it.

Seven rules for turning an EA off

Seven stop rules
RuleTriggerAction
1. Drawdown limitEquity falls to the limit you wrote in advance, for example a fixed percentage from the highStop new entries and review
2. Beyond the tested rangeDrawdown exceeds the maximum in a real-ticks backtest of the same settingsStop, investigate and retest
3. Broken behaviourTrades not in the strategy, wrong lot sizes, repeated errors in the journalStop immediately and fix
4. Conditions changedBroker, symbol, spread or account type changed, or a platform update altered behaviourPause and retest on demo
5. Event riskA major release or central bank decision the EA is not built forPause for the window
6. Personal limitA loss you cannot afford, or a change in your financesStop, whatever the strategy says
7. Data faultMissing history, feed outage, wrong server time or symbol changePause until fixed

Rule 1 and rule 6 are about you, not the market. Pick the figures with the help of the drawdown guide and the account sizing guide. Rule 2 needs a backtest you trust, which the Strategy Tester guide shows how to run.

What is not a reason to stop

  • A single losing day, or a losing week, inside the tested range.
  • A headline that has no clear effect on the EA's instrument.
  • Another trader's results with a different EA or settings.
  • A hunch that the market is about to turn.
  • A winning streak that makes you doubt the rules. Stop rules apply in both directions of mood.

If you find yourself stopping and restarting often, the rules are probably too tight or the position size is too large for your comfort. Reduce the lot size until a normal drawdown no longer feels like an emergency.

How to switch an EA off safely

Switching off has two parts that people confuse: stopping new trades, and dealing with the trades that are already open. Clicking the Algo Trading button turns off all automated trading, including any EA logic that manages open positions. Removing the EA from the chart does the same for that chart. Positions then stay open with whatever stop loss they have, and nothing moves them.

  1. Step 1: Check whether the EA has a stop-new-trades input

    Many EAs offer an option to disable new entries while still managing open ones, such as an allow-new-trades switch. This is usually the safest first step.

  2. Step 2: Look at the open positions

    List each open trade, its size, its stop loss and its profit or loss. Note the combined risk if all stops hit.

  3. Step 3: Decide per position

    Close it, leave it with its stop, or move the stop. Decide with the numbers in front of you, and follow the manual if it gives guidance.

  4. Step 4: Turn off Algo Trading or remove the EA

    Do this only when you have dealt with the open positions, or when you accept that nothing will manage them.

  5. Step 5: Record why you stopped

    Write the date, the reason, the equity and the open positions, so you can judge the decision later.

When and how to restart

Restart when you know why you stopped and you have changed what needs changing. If the reason was a fault, fix it and confirm on a demo account. If the reason was a drawdown beyond the tested range, retest on recent data and consider a smaller size on return. If the reason was an event, restart when the spread has normalised. If the reason was personal, restart when your circumstances allow it.

Restart checklist
0/8

For the demo step, follow forward testing on demo, and for the VPS check use the VPS setup guide. The MT5 Expert Advisors guide links the whole routine.

An example rule set for a 3,000 euro account

These numbers are an illustration of the structure, not advice. Replace them with your own limits, after you have looked at the EA's tested drawdown and decided what you can live with.

Example stop rules (3,000 euro account, illustrative)
RuleExample settingIn euros
Risk per trade1% of the account30 euros
Maximum open risk3% of the account90 euros
Daily loss stop3% from the day's starting equity90 euros
Review level10% below the equity peak300 euros
Stop level15% below the equity peak450 euros
Tested maximum drawdown (backtest)12%360 euros
Beyond-test ruleStop if the live drawdown exceeds 1.25 times the tested maximum450 euros

In this example the review level sits just below the tested maximum, and the stop level is the larger of the personal limit and the beyond-test rule. Write your own version on one page, with the date, and keep it where you can see it. When a rule triggers, do what it says first and think afterwards.

Sources and further reading

  1. MetaTrader 5 Help: Expert Advisors and Custom IndicatorsHow Expert Advisors and custom indicators work in the terminal.
  2. MetaTrader 5 Help: Testing ReportWhat each figure in the tester's report means, including drawdown.
  3. MetaTrader 5 Help: Basic Principles of Trading OperationsOrders, deals and positions, and how netting and hedging accounts differ.

Frequently asked questions

When should I turn off my Expert Advisor?

When it breaches a limit you wrote in advance, behaves differently from its design, runs in changed conditions such as a new broker or symbol, or faces an event it was not built for. A single losing day inside the tested range is not a reason.

What happens to open trades if I turn off Algo Trading?

They stay open with their existing stop loss and take profit at the broker, but nothing manages them any more. Decide what to do with each position before you switch off.

Should I close all positions when I stop an EA?

It depends on the strategy. Single-trade EAs with stops can be left to finish. Grid and hedge EAs should be closed in a controlled way following the manual, because partial management leaves unbalanced exposure.

How do I stop new trades without closing the old ones?

Many EAs have an input that disables new entries while managing existing ones. Check the manual. Otherwise you must decide each open position by hand.

When is it safe to restart an EA?

When you know the reason you stopped, have fixed or accounted for it, retested on recent data and run it on demo, and have set the lot size no higher than before.

Expert Advisors in these styles

Apply the checks above to any of these before you buy: read the manual, run your own backtest, and start on demo.

Browse Expert Advisors