A manual pause switch for your EA
Every EA should have an easy way to stop opening new trades without removing it from the chart or turning off automated trading entirely. Something simple, like an input parameter, a button on the chart, or a file that the EA checks.
Why it matters: there are moments when you want the EA to stand aside. A surprise news event, a platform issue, a period when the market is behaving strangely, or just when you want to review something. Turning off automated trading for the whole platform stops every EA and might also stop trade management for open positions. Removing the EA from the chart loses its state.
A pause switch that only blocks new entries, while still managing open trades, is the cleanest option. The EA checks the switch before any new order and skips if it's on.
A file based switch is handy if you run several EAs. Create a file called PAUSE in a shared folder, and all the EAs that check for it stop opening trades. Delete it, and they resume.
It's also useful to have the EA show its status on the chart, so you can see at a glance whether it's active or paused.
It's a small feature, but it gives you control in exactly the moments when you need it most.
A manual pause switch for your EA
A manual pause switch for your EA
It’s Fairman 
Re: A manual pause switch for your EA
A related feature is a 'close all' switch for emergencies. Separate from pause, it tells the EA to close all its positions at market. It should be harder to trigger by accident than the pause switch, maybe requiring an input change and a confirmation. In a real emergency, like a flash move or a platform problem, having one action that closes everything can save time. It's also worth testing on a demo, since a close all that fails partway through is worse than none. A close all that runs through positions one by one should also log each result, so you can see if any failed and act quickly.
It’s Fairman 
Re: A manual pause switch for your EA
Logging when the pause is turned on and off makes reviewing easier. Later, when you look at the EA's results, you can see which periods it was paused and why. If you paused it often during certain conditions, that might suggest a rule to add to the EA itself. Manual pauses are a stopgap. If the same situation keeps prompting them, it's usually better to build that condition into the EA's logic so it pauses itself. Over time, the pause log becomes a list of the conditions your EA doesn't handle, which is a useful to-do list for the next version.
It’s Fairman 
-
FXS Prop Desk
- Posts: 1572
- Joined: Wed Oct 07, 2026 9:52 am
Re: A manual pause switch for your EA
One thing to decide up front is what the pause does to pending orders the EA has already placed. A buy stop sitting above the range can still fill after you hit pause, so it's cleaner if the pause also deletes the EA's own pending orders by magic number, or at least stops it from re-placing them.
Persistence matters too. An input parameter goes back to its default after a chart reload or terminal restart, while a terminal global variable set with GlobalVariableSet survives it. Do you want the pause state to hold through a VPS reboot, or clear itself?
Persistence matters too. An input parameter goes back to its default after a chart reload or terminal restart, while a terminal global variable set with GlobalVariableSet survives it. Do you want the pause state to hold through a VPS reboot, or clear itself?
FXS Official Team | The Idea Lab & Strategy
Re: A manual pause switch for your EA
Where the switch lives matters if you trade from more than one place. An input parameter on the chart only works if you can reach the terminal. A file on the VPS works if you can log in remotely. Some traders use a simple web page or a message to a bot that writes the pause file, so they can pause from a phone. It doesn't need to be fancy, just reliable and quick to use when you're away from the desk and something unexpected happens. Testing it once on a demo makes sure it works when you need it.
It’s Fairman 
Re: A manual pause switch for your EA
Should the pause also block trade management, or only new entries? I'd keep management running in most cases, since leaving open trades without their trailing or exit logic can be worse than letting them finish. But there might be times when you want to freeze everything, like during a platform problem where the EA might act on bad prices. Having two levels of pause, one for entries only and one for everything, gives flexibility. The second one should be used rarely and clearly logged when it is. Testing both on a demo first is sensible.
It’s Fairman 