MAE and MFE — Trade Analysis and Stop Loss / Take Profit Calibration

Last verified: · Long-term evergreen content
Risk warning · YMYL This article is for educational purposes only and is not investment advice. Trading on the Forex market involves a high risk of capital loss — ESMA reports 74–89% of retail accounts lose money.

Mike spent two years trading EUR/USD with a rigid 20-pip stop and a 30-pip target. His win rate hovered around 55 percent, his reward-to-risk ratio sat at 1.4, the account crept upward. Once he logged MAE and MFE for two hundred consecutive trades, the picture was uncomfortable: roughly a quarter of his potential winners were clipped by a stop that sat just inside the typical drawdown of a winning trade, and his fixed target was leaving an average of twenty-two pips on the table.

What MAE and MFE are

MAE, the Maximum Adverse Excursion, is the largest temporary loss a position carried before it was closed. The term was introduced by John Sweeney in Maximum Adverse Excursion: Analyzing Price Fluctuations for Trading Management (Wiley, 1996). MFE, the Maximum Favorable Excursion, is its mirror — the greatest unrealised profit the position ever showed before exit.

Together these two numbers tell a story that the final P&L can never tell: whether your stop loss sat sensibly relative to the take profit, and whether you are operating in the meaningful part of the distribution. They are also the most underused metrics in retail trading — not because they are complicated, but because they require fifteen seconds of discipline after every closed trade.

What we measure on a single trade

Suppose, illustratively, a long EUR/USD position with entry at 1.0850, stop at 1.0820, take profit at 1.0890. The trade closes on the target for a 40-pip gain.

  • Lowest price 1.0830. MAE is minus 20 pips — the position briefly consumed two thirds of the distance to the stop.
  • Highest price 1.0905. MFE is plus 55 pips — at one point the position was fifteen pips higher than the realised gain at exit.
  • Capture ratio. 40 of 55, or 73 percent — decent but below what many consider optimal.

A single trade proves nothing. What matters is the distribution of these two numbers across at least one hundred trades — only then can you tell whether your stop and target decisions match what the market actually offers.

Calibrating the stop loss with MAE

The most common retail mistake is to set the stop either at a round number that feels comfortable or at a fixed cash amount. Neither approach has anything to do with what the market is doing — which is precisely why both systematically lose winners to noise.

  1. Collect at least one hundred trades. Anything smaller is statistical noise; five trades a week means roughly five months of data collection.
  2. Filter for winning trades only. What you care about is how deep price pulled back on positions that ultimately won.
  3. Calculate the average MAE in that group. If winners typically drew down twenty-five pips, a twenty-pip stop is clipping a meaningful share of them.
  4. Set the new stop at 1.1 to 1.2 times the average MAE of winners. Wide enough to absorb noise, not so wide that any single loss becomes painful.
  5. Recalculate the position size. A wider stop at one percent risk means a smaller position — consistent arithmetic, not a trade-off.

Calibrating the take profit with MFE

The other side of the equation matters just as much and is treated even more carelessly. Many traders close winners too early — out of fear that the profit will evaporate, or because of a rigid reward-to-risk rule disconnected from the instrument.

  1. Calculate the average MFE among winners. If a typical winner showed fifty pips of unrealised profit but you exit at thirty, you return forty percent of the move to the market.
  2. Compute the capture ratio. Average realised gain divided by average MFE. Typical retail figures sit between 50 and 60 percent; the professional benchmark is 70 to 80.
  3. If the ratio is below 70 percent, you have three options. Push the target further (roughly 0.8 times average MFE), use an ATR-based trailing stop, or close half the position at the original target and let the rest ride with a trailing stop.
  4. Forward-test the new exit on fifty trades. Compare not only the win rate but the average reward-to-risk ratio.

Mike’s two hundred trades — the before-and-after

An illustrative case built on the kind of distributions TradingView and traders.com analytics tend to surface for fixed-stop H1 systems. Mike started with a textbook setup: 20-pip stop, 30-pip target, one percent risk per trade. After two years on EUR/USD and GBP/USD H1 he had two hundred closed positions and ran every one through Edgewonk.

Before and after optimisation — Mike, 200 trades (illustrative)
Original stop loss20 pips, fixed
Average MAE of winners28 pips — tighter than the typical drawdown of a winner
New stop loss31 pips (1.1 times average MAE of winners)
Average MFE of winners52 pips — the market routinely offered more
Capture ratio before58 percent — roughly a third of every move returned to the market
New exit logicclose half at 30 pips, let the rest ride with a trailing stop
New capture ratio81 percent — inside the professional benchmark
Effect after six monthswin rate 55 to 60 percent, reward-to-risk 1.4 to 1.8, around €4,000 of additional annual P&L

Mike did not change his strategy — the entry signals, the analysis, the pairs and timeframes were identical. He only changed where the stop sat and how he closed winners. The delta came from letting data, not instinct, decide those two parameters. To translate that into expected value, the expectancy formula turns win rate, average winner and average loser into one comparable number.

"The value of MAE lies in showing what your system actually needs, rather than what you are willing to risk. That is a completely different starting point." — John Sweeney, Maximum Adverse Excursion: Analyzing Price Fluctuations for Trading Management, Wiley, 1996.

Tools — how to measure MAE and MFE

  • Edgewonk (one-off, around 169 USD): imports MetaTrader 4 and 5 history automatically, calculates MAE and MFE, plots the distribution, suggests calibration levels.
  • MyFxBook (free): basic MAE and MFE inside the standard reports once your account is connected to MetaTrader. Plenty for someone starting out.
  • TradingView Strategy Tester: built into the platform — under "List of trades" it shows adverse and favourable excursion for every position the script opens.
  • Excel or Google Sheets (free): total control, but ten to fifteen hours of template work and manual logging of every trade.

What to do tomorrow — a plan for the first week

  1. Pick a logging tool today and add MAE and MFE columns to your journal. If you use the professional trader journal template, both columns are already there; if you keep a journal in Excel from scratch, you can add them in five minutes so the next closed trade has somewhere to land.
  2. For fifteen seconds after every closed trade, record MAE and MFE in pips. Most brokers expose these numbers in position reports or the trade history tab; you only need to glance at the lowest and highest price reached while the position was open. Without the discipline of this step the whole downstream analysis collapses.
  3. After two to three months, once you have one hundred trades, calculate the mean and median MAE and MFE separately for winners and losers. Compute the capture ratio. That is the first moment the data tells you where capital is leaking — whether the stop is clipping winners or the target is leaving half the move on the table.
  4. Set the new stop at 1.1 to 1.2 times the average MAE of winners and choose an exit strategy from the options above. Recalculate position size to preserve one percent risk per trade, then forward-test across the next fifty to one hundred trades and compare with the baseline; the comparison tells you the improvement is real rather than coincidental.
  5. Put a quarterly review on the calendar. Every three months, repeat the analysis — markets evolve and so do MAE and MFE distributions; the quarterly check catches drift before it hits the account. For context see keeping trading statistics and the Traders’ Workshop on ForexMechanics.
Jarosław Wasiński
About the author

Jarosław Wasiński

Editor-in-chief at MyBank.pl · Financial and market analyst

Independent analyst and practitioner with 20+ years in finance. Founder and editor-in-chief of MyBank.pl, running since 2004. Fundamental analysis of FX and macro markets since 2007.

Sources & bibliography

  1. TradingView List of trades: Adverse excursion · Oficjalna dokumentacja TradingView opisująca, jak Strategy Tester wylicza adverse excursion dla każdej zamkniętej pozycji. www.tradingview.com ↗
  2. Technical Analysis of Stocks & Commodities Setting Stops And Taking Profits With Maximum Excursion · Artykuł Siergieja Dobrovolsky’ego oparty na metodologii MAE/MFE Sweeneya, opublikowany w magazynie Stocks & Commodities w sierpniu 2002 r. traders.com ↗
  3. Technical Analysis of Stocks & Commodities Calculating MFE/MAE — sidebar (V. 20:8) · Materiał uzupełniający z arkuszem do liczenia MFE i MAE na próbce transakcji. store.traders.com ↗
  4. TradingView (QuantNomad) MFE & MAE Tool — indicator · Publiczny wskaźnik liczący MAE i MFE dla strategii w Pine Script, dobry do szybkiej weryfikacji własnego systemu. www.tradingview.com ↗

Frequently asked

What exactly do I log as MAE and MFE for a single trade?

MAE is the distance in pips between the entry price and the worst (relative to your trade direction) price the market reached while the position was open. For a long position it is the lowest print between entry and exit; for a short position it is the highest. MFE is calculated the same way in the opposite direction: the largest unrealised gain at any point. Illustrative example: you open a long EUR/USD at 1.0850, the price drops to 1.0830 during the life of the position (MAE minus 20 pips) and climbs to 1.0905 (MFE plus 55 pips), and you close at 1.0890 for a 40-pip gain. You are not recording the distance to the stop loss or the take profit — you are recording the actual extreme prices that occurred. Most platforms publish these figures automatically in trade reports or in position history; if you log them manually, the easiest way is to glance at the one-minute chart between entry and exit.

How do I calibrate the stop loss with MAE, step by step?

Collect data from at least one hundred closed trades — anything smaller is statistical noise. Filter for winners only, because what you care about is how deep the price can pull back on positions that ultimately make money. Compute the average MAE within that group and set the new stop loss at 1.1 to 1.2 times that figure. If the average MAE of winners is, for example, twenty-eight pips, a stop at thirty-one pips lets through virtually all the typical noise without turning the stop into a second take profit on the wrong side of the chart. Recalculate position size to preserve one percent risk per trade — a wider stop means a smaller position. Then forward-test the new stop across the next fifty to one hundred trades. If the improvement in win rate and reward-to-risk ratio persists, the calibration is working; if not, check whether your sample happened to come from a single, unusual market regime.

What should I do if my capture ratio is below 70 percent?

The capture ratio is the average realised gain divided by the average MFE among winning trades. Typical retail figures sit between 50 and 60 percent; the professional benchmark is 70 to 80. If your number is below 70 percent, you have three choices. The first is to push the take profit further — to roughly 0.8 times the average MFE of winners. The second is a trailing stop that follows the price and only closes the position once it retraces by a defined distance; in many systems an ATR-based trailing stop works best, because it adapts to current volatility. The third, and usually the most effective, is partial exits — close half the position at a nearer target (typically the original take profit or thereabouts) and let the rest ride with a trailing stop. As you choose, remember that each modification has a cost: a wider target lowers the nominal win rate, a trailing stop can clip profits in high volatility, and partial exits demand more operational discipline. Fifty trades of forward testing will tell you which option actually fits the shape of your MFE distribution.

Why are MAE and MFE so rarely used by retail traders?

The reason is banal and at the same time deep. Filling in two extra columns in your journal takes about fifteen seconds per trade, and the results only show up once you have one hundred trades behind you — usually two or three months of work. The discipline this demands collides with the natural urge to look for a new, exciting strategy instead of refining the one you already have. Most retail traders therefore spend months testing new entry setups while setting stop and take profit levels based on intuition or a round number of pips. John Sweeney already wrote in 1996 that position management, rather than the entry signal, is what determines the long-term results of most systems. Thirty years later this is still the most underused tool available to anyone working from home — it demands no expensive subscriptions, no special training, only daily, unfashionable discipline.

Go deeper · the complete guide