MFE and MAE: How Much a Trade Offered Before It Closed
MFE and MAE measure the best and worst moment of each trade. Definitions, FainTrading's fill-based formulas, and how excursions set stops and targets.
The Two Numbers a P&L Hides
A closed trade's P&L records one moment: the exit. It forgets the path — how far the position ran in your favor before you closed, and how deep it went against you before recovering. Tradoshi opens its guide on the pair with the problem exactly: "Your journal records how a trade ended. It forgets the path: how far price moved in your favour before you exited, and how far it moved against you before coming back. Those two numbers have names, MFE and MAE" (Tradoshi). Reading outcomes without the path is, in their phrase, "a two-dimensional reading of a three-dimensional object."
The two numbers come from John Sweeney, former Technical Editor of Technical Analysis of Stocks and Commodities, whose book Maximum Adverse Excursion (Wiley, 1997) established excursion analysis as a trade-management discipline (Quantified Strategies; Wiley). MetaTrader's own trading report carries both metrics with formal definitions — which is why most platforms and journals you will meet already speak this language. This guide defines the pair, states FainTrading's exact formulas (the same ones printed on the performance report), and shows how options traders turn excursion statistics into stops and targets. For the metrics that grade finished books of trades, see profit factor explained.
Definitions
MAE — maximum adverse excursion. The largest unrealized loss the position showed while it was open. MetaTrader's report defines it as "the maximum potential loss recorded during the lifetime of open positions" (MetaTrader 5, via Tradoshi). On a long trade it is the distance from entry to the lowest price reached; on a short, to the highest.
MFE — maximum favorable excursion. The largest unrealized gain the position showed before it closed — "the gain you would have booked by exiting at the single best moment," MetaTrader's "maximum potential profit" of the same help page. Quantified Strategies' version: "the maximum amount of money a trader could have earned if they had exited at the absolute 'optimal moment'" (Quantified Strategies).
Both are diagnostics, not scores. A winning trade whose MAE nearly touched its stop was won narrowly; two trades with identical P&L can carry opposite excursion profiles. "It is information about the quality of your entry, not about its outcome" (Tradoshi).
The Exact FainTrading Formulas
Most platforms compute MFE and MAE from tick or candle extremes. FainTrading's paper-trading engine records no tick-level extremes, so it computes excursions honestly from what it actually has — the fills executed against the position — and publishes the convention next to the number. On the performance report, every closed trade shows its MFE and MAE in currency, computed as follows.
The basis. Each recorded fill (entry, adjustment, and exit fills) is compared against the position's recorded average cost. Direction is the sign of the position's last non-flat open state — long positions measure price above average cost as favorable, short positions the reverse — and it is re-derived at every fill, so a mid-trade reversal flips the convention.
The size. Excursion is scaled by the peak absolute open quantity reached over the fill sequence — the largest position the trade ever carried — times the contract multiplier (100 for standard equity options). The per-unit move becomes currency the same way execution P&L does.
The formulas.
Both are non-negative amounts, and both read "—" when the recorded fills cannot reconstruct the basis or the size. As the report's own explainer puts it: "MFE (max favorable excursion) is the largest unrealized gain the position showed at any recorded transaction price; MAE (max adverse excursion) is the largest unrealized loss" — and "excursions are measured over the position's recorded fills, and read — when the recorded data cannot reconstruct the position size" (performance report).
Worked example. One closed call position, three fills:
| Fill | Trade | Open quantity | Price vs avg cost $2.30 | Per-unit excursion |
|---|---|---|---|---|
| 1 | Buy 2 calls at $2.50 | 2 | +$0.20 | +0.20 favorable |
| 2 | Buy 1 call at $1.90 | 3 (peak) | −$0.40 | 0.40 adverse |
| 3 | Sell 1 at $4.00 | 2 | +$1.70 | +1.70 favorable |
| 4 | Sell 2 at $3.10 | 0 (closed) | +$0.80 | +0.80 favorable |
The average cost after both buys is (2 × $2.50 + 1 × $1.90) ÷ 3 = $2.30, the peak quantity is 3 contracts, and the multiplier is 100. MFE = $1.70 × 3 × 100 = $510 (the $4.00 fill was the best recorded price); MAE = $0.40 × 3 × 100 = $120 (the $1.90 add). Realized P&L = 1 × ($4.00 − $2.30) × 100 + 2 × ($3.10 − $2.30) × 100 = $330. The comparison is the lesson: the trade's best recorded moment offered $510, its worst demanded $120, and the exit kept $330 — the market offered more than was kept.
One honest limitation, stated because it matters: fills are not ticks. A position that traded far beyond its recorded fill prices during the session had intraday extremes the fill-based excursion cannot see. The platform prefers understating the excursion to inventing one — a convention you can audit in your own trade log.
Using MFE and MAE to Place Stops and Targets
Excursions earn their keep in aggregate, trade over trade. Quantified Strategies lists the three canonical uses: refine stop losses from MAE clusters ("identify the level of drawdown at which trades typically fail to recover" — if your stop sits far beyond your typical MAE, it may be shortened), set targets from MFE gaps ("if your average profit is significantly lower than the average MFE of your trades... adjusting your Take Profit levels higher could capture more of the move"), and evaluate risk-reward efficiency by comparing the two (Quantified Strategies). Tradoshi turns the same data into a diagnosis table:
| What you observe | What it means | What you change |
|---|---|---|
| MFE far above average win | You exit too early, repeatedly | A written exit rule |
| MAE far below the stop | Your stop may be too wide | Test a tighter stop, at constant risk |
| MAE near the stop on winners | Winners were nearly stopped out | Revisit entry or stop distance |
| MFE near zero on losers | The trade never worked | Check the validity of the signal |
MetaTrader's guidance matches: compare average MFE with average actual profit "to assess unrealized potential," while MAE "best characterizes the use of protective Stop Loss" (MetaTrader 5, via Tradoshi). To compare trades of different sizes, normalize both numbers into R — multiples of initial risk — so "an MFE of 3R means the trade offered three times what you risked, whatever the position size" (Tradoshi).
In options the same statistics read differently by structure. Short-premium trades (cash-secured puts, credit spreads) collect a small credit against a large potential adverse move: MFE hugs the credit while MAE can dwarf it — "a high MAE on a method that deliberately gives price room to breathe is normal" (Tradoshi). The signal to act on is MAE near the stop on winners: the structure survived by luck, not by margin. Long options invert the profile: a fat MFE against a thin realized profit is the classic give-back — the option ran 3R intraday and expired the exit at 1R. Before the next trade, map the structure's payoff extremes in the options profit calculator and its worst case in the max-loss view, then let the excursion statistics tell you whether your exits respect the map.
FREE 7-DAY OPTIONS COURSE
Enjoying this guide? Get one short options lesson a day for 7 days — free, unsubscribe anytime.
Sample Size and Honest Limits
Excursion analysis is a statistics habit, not a single-trade verdict. Tradoshi: "They make sense over dozens of positions, not three. A gap between MFE and result observed across five trades is not a behaviour, it is a coincidence. Repetition is what turns the measurement into a decision" (Tradoshi). Quantified Strategies is equally blunt: "you cannot rely on just a few trades. A significant sample size is required to ensure the results are representative of market conditions and not just outliers" (Quantified Strategies). On FainTrading the sample builds itself: every closed paper position appears in the trades table with its MFE and MAE, filterable by period, computed by the same formulas every time.
Common Mistakes
From Excursions to Habit
The loop is short: trade in the paper trading environment, close positions, and read the trades table on the performance report — MFE and MAE per trade, with the formulas printed below the table. Adjust the exit rule or the stop distance, then let the next batch of trades tell you whether the change held. The School preview covers trade management in the foundations path, the free 30-day Options Foundations challenge builds the review habit with a certificate at the end, and the strategy comparison hub shows which structures carry which excursion profiles — for options traders weighing platforms, IBKR vs TastyTrade and IBKR vs DEGIRO work out the per-contract cost of the same round trip. For the book-level metrics these trades feed, continue with profit factor explained and drawdown recovery math.
Sources
Related Articles
Practice what you learned on our free simulator
Try Paper Trading Free