Alan Ross

Alan Ross Forex

Free Forex Indicators, MetaTrader Tools and Honest Trading Guides

Learn Forex

When to Close a Trade With an Indicator: 3 of 26 Exit Rules Beat Closing at a Random Time, and the Opposite Cross Was Among the Worst

Key takeaways

  • I kept the entry fixed and changed only the exit: 13 exit rules on the same EMA 9/21 crosses and the same Stochastic 14/3/3 crosses, 16,926 EURUSD M5 bars, 1-pip spread.
  • Then I gave every rule an honest opponent: the same trades closed after a random number of bars, drawn from that rule’s own holding times, 200 times over.
  • 3 of 26 exit rules beat the random exit. All three were ATR trailing stops. 10 of 26 did worse than 95% of the random runs.
  • The classic “close on the opposite cross” lost 2.25 pips a trade on the EMA entries and won only 19.7% of trades. The trades had been 5.82 pips in profit on average at their best.
  • Win rate said nothing about the result: exiting when RSI 14 reached 60/40 won 57.4% of trades and still lost 1.39 pips each.

Most indicator articles are about the entry. The exit gets one line: “close when the opposite signal appears”. Yet the exit decides how much of a move you keep, and every trader has watched a trade go 5 pips into profit and come back to the stop.

So I asked a narrow question. If the entry stays the same, does the choice of exit indicator change the result, and is any exit better than simply closing at a random moment?

How did I test exit signals?

Trader deciding when to close an open EURUSD trade
  • Data: EURUSD M5, June 3 to August 26, 2026, 16,926 bars. Median ATR 14 was 1.96 pips, which I measured in my ATR settings test.
  • Entries: EMA 9/21 cross (891 signals) and Stochastic 14/3/3 %K/%D cross from below 20 or above 80 (1,852 signals), entered at the close of the signal bar. Both are rules I tested before, in the moving average crossover test and the Stochastic buy and sell signal test.
  • Exits: opposite EMA 9/21 cross; close back through EMA 21; RSI 14 reaching 70/30 or 60/40; Parabolic SAR flip; ATR chandelier trail at 1.5, 2 and 3 ATR; fixed stop and target of 1:1, 1:2, 1:3 and 2:2 ATR; close at 21:00 UTC.
  • Safety net: every rule had the same emergency stop at 3 ATR and a maximum hold of one day. One trade at a time.
  • Cost: 1 pip per trade, the spread I measured in my spread and swap test. When one bar touched both stop and target, the stop counted.

The random exit is the key part. For each rule I took its own list of trades and its own list of holding times, then closed every trade after a holding time picked at random from that list, with the same emergency stop. I repeated this 200 times. If an exit indicator really knows when a move is over, it should beat its random twin.

Which exit worked best on the EMA 9/21 cross?

EURUSD 5-minute chart with an exit level marked
Exit ruleTradesWin rateNet pips per tradeMedian holdRandom exit, 5th to 95th pctVerdict
ATR chandelier 1.573624.7%-1.2220 min-1.52 to -1.24better
RSI 14 reaches 70/3031039.4%-1.3070 min-2.02 to -1.12same
RSI 14 reaches 60/4052157.4%-1.3920 min-1.68 to -1.13same
ATR chandelier 268426.5%-1.4030 min-1.62 to -1.25same
Fixed 1:3 ATR71622.8%-1.4915 min-1.54 to -1.16same
Fixed 1:1 ATR75741.1%-1.5310 min-1.45 to -1.18worse
Close back through EMA 2176019.7%-1.5730 min-1.52 to -1.08worse
Fixed 1:2 ATR73728.1%-1.6315 min-1.52 to -1.22worse
Close at 21:00 UTC21620.8%-1.89135 min-2.38 to -1.17same
ATR chandelier 356627.9%-1.9250 min-1.79 to -1.28worse
Fixed 2:2 ATR54642.1%-1.9625 min-1.76 to -1.25worse
Parabolic SAR flip58224.7%-2.1750 min-1.77 to -1.25worse
Opposite EMA 9/21 cross46619.7%-2.2550 min-1.88 to -1.25worse

Net of a 1-pip spread. “Better” means above the 95th percentile of 200 random-exit runs on the same trades, “worse” means below the 5th.

No exit made the EMA cross profitable. That part is not news: the cross itself lost in my earlier test. The news is the order. The two exits most traders pair with a crossover, the opposite cross and the Parabolic SAR flip, were the two worst of 13. Both did worse than 95% of random exits on the very same trades.

How much profit did the trades give back?

I also recorded the best open profit of every trade, the furthest price went in its favour before the exit. With the opposite-cross exit, the EMA trades were on average 5.82 pips in profit at their best and finished at -1.25 pips before the spread. They gave back more than all of it.

EMA 9/21 entry, exit ruleAverage best open profitAverage result before spread
Opposite EMA 9/21 cross5.82 pips-1.25 pips
RSI 14 reaches 70/305.94 pips-0.30 pips
Parabolic SAR flip4.51 pips-1.17 pips
ATR chandelier 1.52.96 pips-0.22 pips
Fixed 1:1 ATR1.54 pips-0.53 pips

The reason is lag. An EMA 9/21 cross back the other way needs price to retrace far enough to pull a 9-bar average under a 21-bar one. By then a good part of the move is gone. A trailing stop 1.5 ATR behind the best price reacts within a bar or two. It keeps less of the big winners but cuts the trades that never go anywhere, and on M5 those are most trades.

Did the exits work better on the Stochastic entries?

Stochastic entry, exit ruleTradesWin rateNet pips per tradeRandom exit, 5th to 95th pctVerdict
Close at 21:00 UTC22421.4%-0.46-1.05 to +0.79same
ATR chandelier 21,08632.8%-0.64-1.00 to -0.65better
RSI 14 reaches 60/4074550.5%-0.67-1.01 to -0.45same
ATR chandelier 1.51,32629.6%-0.76-1.04 to -0.80better
RSI 14 reaches 70/3036929.8%-0.94-1.64 to -0.36same
Fixed 1:3 ATR1,33827.4%-0.95-1.04 to -0.70same
ATR chandelier 378831.5%-0.96-1.01 to -0.53same
Fixed 1:2 ATR1,54535.9%-1.00-1.07 to -0.81same
Opposite EMA 9/21 cross1,59831.0%-1.05-1.06 to -0.86same
Close back through EMA 211,59225.6%-1.09-1.09 to -0.91same
Fixed 1:1 ATR1,66448.7%-1.13-1.08 to -0.89worse
Parabolic SAR flip1,65429.4%-1.20-1.09 to -0.94worse
Fixed 2:2 ATR1,18750.0%-1.20-1.13 to -0.77worse

The Stochastic entry lost less than the EMA entry with every one of the 13 exits. The ranking barely changed: the ATR trails near the top, Parabolic SAR and the fixed 1:1 and 2:2 targets at the bottom. The 21:00 UTC close came first but traded only 224 times, and its random band runs from -1.05 to +0.79, so it proves nothing either way. Across both entries the count is 3 better than random, 13 the same, 10 worse.

Does a high win rate mean a good exit?

No, and this test shows it cleanly because the entries are identical. With the EMA entry, closing when RSI 14 reached 60/40 won 57.4% of trades and lost 1.39 pips a trade. The 1.5 ATR chandelier won 24.7% and lost 1.22. The fixed 1:1 target won 41.1%, but its average winner was 1.19 pips after the spread and its average loser 3.42.

An exit that takes small wins quickly always looks good on the win-rate line. What pays is the size of the average win against the average loss, which is the same lesson as in my stop loss distance test.

Can a good exit rescue a bad entry?

It can make it lose less, not make it pay. I ran the same exits on 319 random entries as a third control. With the 2 ATR chandelier, random entries lost 0.71 pips a trade, less than the EMA cross lost with any of its 13 exits. The same thing showed up in my rule vs random entry test: on M5 EURUSD the entry signal adds less than traders expect, and the exit and the spread decide most of the result.

Holding longer did not help either. With fixed time exits on the EMA entries, 30 minutes lost 1.68 pips, 1 hour 1.90, 2 hours 2.04 and 4 hours 2.19.

So when should you close a trade?

  • Use a trailing stop measured in ATR, about 1.5 to 2 ATR behind the best price. It was the only exit family that beat a random exit, on both entries.
  • Do not wait for the opposite signal of a slow indicator. The opposite EMA cross and the SAR flip gave back the most.
  • Judge an exit by average win against average loss, not by win rate.
  • Test your exit against a random exit with the same holding times before you trust it. If it cannot beat that, it is not reading the market.

My fixed vs ATR stop test covers the stop side of the same question, and the Parabolic SAR test shows why the SAR works better as an entry filter than as an exit.

Frequently asked questions

What is the best indicator to know when to close a trade?

In this test, an ATR trailing stop at 1.5 to 2 ATR. It was the only exit of 13 that beat a random exit with the same holding times, on both EMA and Stochastic entries over 16,926 EURUSD M5 bars.

Should I exit on the opposite crossover?

On M5 EURUSD it was among the worst exits. On EMA 9/21 entries it lost 2.25 pips a trade, won 19.7% of trades and did worse than 95% of random exits.

Is Parabolic SAR a good exit?

Not here. The SAR flip was worse than random on both entries, losing 2.17 pips a trade on EMA crosses and 1.20 on Stochastic crosses.

Does RSI work as an exit signal?

RSI 14 reaching 70/30 or 60/40 performed the same as a random exit. It gave the highest win rates, up to 57.4%, but not the best results.

Can a good exit make a losing strategy profitable?

Not in this test. All 26 entry and exit pairs lost after a 1-pip spread. The best exit reduced the loss by about a pip compared with the worst.

Want a clean indicator to install right now?

It is my own enhanced DeMARK Trend Line indicator for MetaTrader 4 and 5. Non repaint, clean, and free.

Download the Free DeMARK Indicator

Written by Alan Ross

Forex trader and MetaTrader indicator developer. I build and test MT4 and MT5 tools, then write the honest version of how they actually work. More about me.

Last reviewed October 2026
Alan Ross
Alan Ross

Forex educator and indicator developer. I build and trade my own MetaTrader tools, and share the ones that genuinely help.

Leave a comment

Your email address will not be published. Comments are reviewed before they appear.