Trading analytics

MAE and MFE in Trading: Analyze Stops, Targets, and Exit Quality

MAE shows how far a trade moved against you while it was open; MFE shows how far it moved in your favor. Together they reveal path and exit quality that final P&L cannot.

19 min read

A trade that closes at +1R can follow very different paths. It might move directly to +1R without threatening the stop, first fall to −0.9R and recover, or reach +3R before an early exit gives back most of the move. Final P&L records the destination. Maximum adverse excursion and maximum favorable excursion describe the path taken while the position was open.

That path data can improve stop placement, target design, and exit review—but only when definitions, timestamps, and samples are consistent. MAE and MFE are descriptive measurements, not instructions to move every stop to the cleanest historical percentile.

What is maximum adverse excursion (MAE)?

Maximum adverse excursion is the greatest open loss reached between entry and exit. For a long trade, it uses the lowest tradable price observed while the position is open. For a short trade, it uses the highest. MAE is normally reported as a positive magnitude such as 0.6R adverse, although some systems store it as −0.6R. Choose one sign convention and label it clearly.

If a long entry is ₹1,000 and the lowest price before exit is ₹988, its MAE is ₹12 per share. This does not mean the trade lost ₹12 per share at the close; it means that was the deepest unrealized adverse point during its recorded life.

What is maximum favorable excursion (MFE)?

Maximum favorable excursion is the greatest open profit reached between entry and exit. A long uses the highest price observed while open; a short uses the lowest. MFE shows the best opportunity the market offered under the actual holding window, not a profit the trader was guaranteed to capture.

For the same ₹1,000 long, suppose price reaches ₹1,045 before the trade closes at ₹1,020. MFE is ₹45 per share, while the realized favorable move is ₹20 before costs. The ₹25 gap is useful evidence about the exit, but it is not automatically “lost profit.” A rule that tried to capture every high would be using information available only after the fact.

Normalize excursions to R before comparing trades

Raw points and currency are difficult to compare across instruments, volatility regimes, position sizes, and account values. Normalize each excursion by the initial planned risk. The same denominator used by an R-multiple trading journal turns every trade path into risk units.

Suppose the ₹1,000 long had an initial stop at ₹980. Initial risk is ₹20 per share, so the ₹12 adverse excursion is 12 ÷ 20 = 0.60R and the ₹45 favorable excursion is 45 ÷ 20 = 2.25R. If the trade exits at ₹1,020, realized return is +1R before costs. These values can now be compared with a crypto, futures, or short trade using the same risk definition.

  • Freeze initial R at entry; do not recalculate it after moving a stop.
  • Use fill prices rather than ideal chart prices where possible.
  • State whether fees and slippage are included in realized R and excursions.
  • For partial entries or exits, use a documented weighted-price convention.
  • Keep MAE as a magnitude or a negative number consistently across the dataset.

Changing the denominator after entry destroys comparability. If the planned stop was ₹20 away and later widened to ₹30, the original ₹20 remains 1R. The discipline problem belongs in the review described in why moving a stop loss is costly, not in a rewritten risk unit.

What data does accurate excursion analysis require?

Entry and exit fills alone cannot reconstruct MAE or MFE. You need prices inside the holding interval. The required resolution depends on the strategy: daily bars may be adequate for a multiweek position, but they are unusable for a five-minute scalp.

  • Exact entry and exit timestamps, including timezone.
  • Actual fill prices, side, quantity, and partial-fill sequence.
  • The initial stop price and initial risk fixed at entry.
  • High and low data for every bar or tick while the trade is open.
  • Spread or bid/ask data when a mid-price high or low would not have been executable.
  • Fees, slippage, funding, and corporate-action adjustments where relevant.
  • Setup, strategy version, session, and execution classification.

For a long position, a candle low may overstate an executable adverse price if the displayed series is a midpoint and the stop would transact at the bid. For a short, the corresponding issue is the ask. Thin markets and isolated bad ticks can also produce false extremes, so validate suspicious outliers against the underlying feed.

The intrabar sequencing problem

OHLC bars reveal a high and low but not which occurred first. If one five-minute bar touches both a −1R stop and a +2R target, the bar cannot tell you whether the trade stopped before reaching the target. Any stop-or-target simulation that assumes the favorable touch came first is biased.

Read MAE as a distribution, not a magic stop number

The most useful starting view is the MAE distribution for on-plan trades in one stable setup. Separate winners, losers, scratches, and rule breaks. Then inspect the median, 75th percentile, 90th percentile, and outliers rather than relying only on the mean.

Imagine 80 on-plan winners have MAE percentiles of 0.18R at the median, 0.42R at the 75th percentile, and 0.78R at the 90th percentile. That suggests most winners do not need the full 1R stop, but it does not prove a 0.8R stop improves expectancy. Tightening the stop changes which trades survive, can increase slippage as a fraction of risk, and may alter position sizing and behavior.

  • Median MAE describes a typical path and is less sensitive to one bad print.
  • Upper percentiles show how much room most trades needed.
  • Winner MAE estimates the adverse movement survived by eventual winners.
  • Loser MAE shows whether invalid trades fail quickly or wander before stopping.
  • MAE beyond 1R can reveal gaps, slippage, stop widening, or inconsistent risk.

Read MFE as a target and exit distribution

MFE answers how much favorable movement occurred before the actual exit. Review percentiles by setup and planned target. A median MFE of 0.7R does not support a fixed 3R target merely because a few trades reached 6R. Conversely, a cluster of trades with MFE above 2R but realized results near 0.5R deserves an exit review.

Suppose 60 on-plan trades have MFE percentiles of 0.55R, 1.20R, and 2.40R at the 50th, 75th, and 90th percentiles. A 2R target was available on roughly the upper tail, not on the typical trade. Compare candidate targets with hit frequency, losses, costs, and trading expectancy; never select the largest attractive percentile in isolation.

Measure exit quality without pretending the high was capturable

One simple diagnostic is favorable-excursion capture: realized positive R divided by MFE_R. A trade that realizes +1.2R after reaching 2R captured 60% of observed favorable excursion. Use the ratio only when MFE is meaningfully positive, and cap or exclude cases where costs, scaling, or gaps make the interpretation unstable.

A trailing strategy will intentionally return some open profit, while a fixed-target strategy may capture close to 100% on target hits. Compare capture only within the same exit model and strategy version. Low capture can be rational insurance against reversals; high capture can come from exits so early that expectancy suffers.

  • Early-exit pattern: high MFE after exit is unknown, so use only the in-trade MFE and review the decision available at exit.
  • Giveback pattern: MFE is high, realized R is much lower, and the rule allowed a large retracement.
  • Target-too-far pattern: many trades reach meaningful MFE but few reach the planned target.
  • Efficient-loss pattern: failed trades show small MFE and quickly reach the structural stop.
  • Stop-pressure pattern: eventual winners repeatedly approach the stop before working.

Use scatter plots to see relationships

A scatter view can place MAE_R on the horizontal axis and MFE_R on the vertical axis, with color for realized outcome or on-plan status. Each point remains a trade, so clusters, tails, and unusual paths stay visible instead of disappearing inside an average.

  • Upper-left cluster: low adverse movement and high favorable movement—clean paths.
  • Upper-right cluster: deep adverse movement before strong recovery—stop-sensitive winners.
  • Lower-left cluster: little movement either way—stagnant trades or time exits.
  • Lower-right cluster: substantial adverse movement and little favorable movement—fast failures.
  • High MFE but low realized R: possible exit giveback or inconsistent profit taking.

Add reference lines at the initial stop and target, but resist drawing a new stop exactly around the prettiest cluster. A scatter plot is a hypothesis generator. The candidate rule still needs a realistic replay and a fresh validation sample.

A disciplined stop-analysis workflow

  1. Filter to one stable setup and exclude or separately label off-plan executions.
  2. Confirm initial R, timestamps, price resolution, and sign conventions.
  3. Inspect the full MAE distribution and winner MAE percentiles.
  4. Propose a stop from market structure or volatility—not from the percentile alone.
  5. Replay every trade with path ordering, gaps, spread, fees, and changed position size.
  6. Recalculate win rate, average win, average loss, expectancy, and drawdown.
  7. Validate the frozen candidate on later data before changing live risk.

A tighter stop can convert some old winners into losses while allowing a larger position at the same cash risk. A wider stop may improve survival but reduce position size and reward measured in R. This interaction is why stop analysis belongs beside the risk-reward ratio, not as a standalone search for the smallest historical MAE.

A disciplined target and exit-analysis workflow

  1. Filter to one entry and management model.
  2. Compare realized R with MFE_R and planned target R.
  3. Review MFE percentiles for all trades and for winners separately.
  4. Identify whether missed reward comes from early exits, giveback, partials, or unreachable targets.
  5. Simulate a small number of predeclared exit alternatives using valid path data.
  6. Compare expectancy and drawdown after costs, not average winner alone.
  7. Forward-test the chosen rule without changing it after every trade.

If half a position exits at +1R and half at +3R, the realized result is +2R before costs. MFE for the original position may still be +3R, but scaling means a simple capture ratio loses detail. Preserve the exit legs or calculate size-weighted open profit through time when partial management is central to the strategy.

Censoring: every trade ends the observation window

MAE and MFE are censored by the actual exit. Once a trade closes, its official excursion series stops. An early exit at +0.5R may have an in-trade MFE of 0.6R even if price later reaches +4R; a stopped trade may rally after the stop. Post-exit movement is a different counterfactual dataset, not part of that trade’s MAE or MFE.

This creates selection problems when comparing exit rules. Trades held longer have more time to record both larger favorable and adverse extremes. A time-based strategy with a six-hour holding window cannot be fairly compared with a ten-minute scalp by raw MFE alone. Control for setup, horizon, and exit policy.

Other limitations that change the conclusion

  • Coarse candles hide the order of the high and low.
  • Mid-price charts may show levels that were not executable at bid or ask.
  • Gaps can jump through a stop, so 1R is not a guaranteed maximum MAE.
  • Partial fills and changing size make per-unit extremes incomplete.
  • Different holding periods mechanically produce different excursion ranges.
  • Volatility and market regimes can shift the distribution.
  • Looking across many stops, targets, tags, and sessions creates data-mined winners.

Why tiny samples produce dangerous stop rules

If eight recent winners all had MAE below 0.4R, setting the stop to 0.45R can feel evidence-based. It is not. The sample may exclude a normal deeper pullback, represent one quiet regime, or be selected precisely because those trades won. One additional 0.8R-to-2R winner would materially change the story.

Keep sample count beside every percentile, split development from validation, and follow the guidance on how many trades are needed to test a strategy. Thirty consistent trades may support an initial hypothesis; high-variance strategies and subgroup analysis commonly need far more.

Add MAE/MFE to a weekly journal review

  1. Confirm every trade has an initial stop and a stable R denominator.
  2. Separate on-plan trades from execution mistakes with a small, controlled classification.
  3. Review the week’s largest MAE, largest MFE, and widest MFE-to-realized gap.
  4. Compare those trades with the setup’s longer-term percentiles rather than the week alone.
  5. Write one testable observation, such as “on-plan exits gave back over 1R three times.”
  6. Change no live parameter until the observation repeats in an adequate sample.

Use the trade-tag analytics workflow to keep setups distinct, the losing-trade journal process to investigate unusual adverse paths, and the weekly trade review to turn one observation into a controlled next step.

How Traderizz fits the analysis

Traderizz keeps fills, initial risk, realized R, strategy, tags, screenshots, and diary notes connected to each trade. That context matters: an excursion becomes actionable only when you know which setup, stop model, market condition, and execution process produced it.

Use the journal to preserve a complete trade sample and compare risk-normalized paths within stable groups. MAE and MFE should narrow a review question—whether stops allow appropriate room, targets are realistic, or exits follow their rule—not manufacture certainty from historical turning points.

FAQ

Common questions

What do MAE and MFE mean in trading?

Maximum adverse excursion is the deepest unrealized move against a trade while it is open. Maximum favorable excursion is the largest unrealized move in its favor over the same holding window.

How do I calculate MAE and MFE in R?

Divide the adverse or favorable price distance by the initial stop distance per unit. A trade with a ₹20 initial stop, ₹12 maximum adverse move, and ₹45 maximum favorable move has 0.60R MAE and 2.25R MFE.

Can MAE tell me where to place my stop loss?

It can test a stop hypothesis, but it should not choose the stop by itself. Derive a candidate from structure or volatility, replay outcomes with valid path order and costs, then validate it on new trades.

What is a good MFE capture rate?

There is no universal target. Fixed-target, trailing, time-exit, and scaling strategies intentionally capture different shares of MFE. Compare capture only within the same exit model and judge it beside expectancy and drawdown.

Why can candle data make MAE/MFE analysis wrong?

A candle shows its high and low but not their sequence. If a stop and target are both touched in one bar, coarse OHLC data cannot establish which happened first. Bid/ask execution and bad ticks can create additional errors.

Should price movement after exit count toward MFE?

No. Standard MFE ends at the actual exit. Post-exit movement may be tracked as a separate fixed-horizon counterfactual, but mixing it into MFE would compare exposure you held with exposure you did not.

How many trades do I need before changing stops from MAE data?

There is no fixed number, but a handful is not enough. Use a consistent setup across varied conditions, keep development and validation samples separate, and expect high-variance strategies or percentile analysis to require substantially more than 30 trades.

Turn guides into data

Journal with actual P&L or R-multiples and review expectancy in one overview.