- Daily loss of 2R or more, counted from closed trades plus floating loss on open ones. Once reached, open trades are left to their stops but nothing new opens.
- Three consecutive errors from the trade server, such as off quotes or trade context busy. That usually means something is wrong with the connection or the broker, not the market.
- Spread above three times its median for more than five minutes during the session. That's usually a sign of a liquidity problem or news I didn't filter.
The second and third conditions caught problems I wouldn't have noticed: once a broker server issue, once an unscheduled news event.
The important part is that the switch can't be reset by the EA itself. I have to change an input manually, which forces me to look at what happened.
What conditions do you use for stopping an EA? Do you include anything besides loss limits?