Two trades can finish with the same profit yet expose the trader to very different risks. One may move steadily toward its target; another may nearly trigger a stop before recovering, or surrender most of an earlier unrealized gain. Maximum favorable excursion (MFE) and maximum adverse excursion (MAE) quantify those differences. They are useful diagnostics for evaluating exits and stop placement without confusing an observed opportunity with an achievable fill.
What MFE and MAE measure
For a single fixed-size long position, let E be its actual entry price, H the highest observed price and L the lowest observed price during the holding period, including the entry and exit observations. MFE = max(0, H − E), while MAE = max(0, E − L). For a short position the directions reverse: MFE = max(0, E − L), MAE = max(0, H − E). Here MAE is reported as a nonnegative loss magnitude. Some platforms instead display it as a negative value.
Multiply each price excursion by quantity and monetary value per price unit to express it in account currency, applying currency conversion where needed. Alternatively divide by the initial planned risk per price unit to express it in R. These measures describe the observed price path, not the actual profit from liquidating the position at an extreme.
A worked example: a profitable exit that leaves gains behind
Consider a hypothetical long entry at 100. The observed sequence is 100, 98, 99, 104, 107, 105, 103, 102, with exit at 102. Assume an initial stop at 96, a fixed quantity of 10 units and a monetary value of $1 per price unit per unit of quantity.

| Measure | Calculation | Result |
|---|---|---|
| Initial planned risk | 100 − 96 | 4 price units / $40 |
| MAE | 100 − 98 | 2 / $20 / 0.50R |
| MFE | 107 − 100 | 7 / $70 / 1.75R |
| Gross realized P&L | (102 − 100) × 10 | $20 / 0.50R |
| Gross giveback | (107 − 102) × 10 | $50 |
| Net P&L (assumed $4 round-trip cost) | 20 − 4 | $16 / 0.40R |
Gross excursion capture equals realized gross profit divided by MFE in matching units: 20/70 = 28.57%. It is meaningful here because MFE is positive. A losing trade can have negative capture, and a zero MFE makes the ratio undefined. Neither the $70 peak nor the $50 giveback proves that a different exit could have captured the high in real time.
Using excursions to investigate exits and stops
Record MFE, MAE, realized return, initial risk, holding time and the strategy version for every closed trade. Compare distributions rather than selecting one attractive example. Separate long and short trades, market regimes and entry setups if the sample is sufficiently large.
- Stop placement: compare the MAE distribution of eventual winners with the original stop distance. If many winners experience large adverse moves, a tighter stop may remove those winners. Conversely, large MAE in losing trades may motivate testing a different stop.
- Exit design: trades with substantial MFE and low realized profit may justify testing trailing exits or partial profit-taking. An alternative rule must be specified before replaying each price path.
- Signal confirmation: compare the same entry rule with and without a predefined confirmation filter. Evaluate net expectancy, drawdown, opportunity count and excursion distributions together.
Why an excursion chart cannot choose an optimal stop by itself
Suppose the example uses a revised stop at 99. The observed price falls to 98 before rising to 107. With a functioning stop order, the trade could exit before the favorable excursion occurs, depending on execution and gaps. The MFE recorded under the original exit rule is therefore not necessarily available under the new stop rule. Likewise, a target at 107 is not guaranteed to fill merely because a recorded price touches it. Order type, bid/ask, queue priority, liquidity and slippage matter.
Practical validation checklist
- Measure only observations between actual entry and exit; do not use the full entry or exit bar if part of that bar occurred outside the holding interval.
- Use sufficiently granular data for intrabar highs and lows. Close-only observations may underestimate excursions; OHLC alone does not determine which extreme occurred first.
- For scaling in or out, use a consistently defined position-level mark-to-market series or analyze each matched entry/exit lot separately; do not apply a fixed-size formula blindly.
- Develop candidate exit rules on training data, replay the full order logic with realistic costs and ambiguous-fill handling, then test on untouched chronological data. Compare against the original strategy and nearby parameter values.
- Never use a completed trade's ultimate MFE or MAE as a live entry or exit input. It is only known after the observation period ends; running excursions up to the current time are different variables.
MFE and MAE help explain where a strategy's returns are gained or lost. They are best treated as a diagnostic layer alongside realistic execution modeling, not as a shortcut to guaranteed profitability.
If you would like to implement customized excursion tracking, exit comparisons or reporting for your trading platform, explore our Custom Trading Software Development Services.
Risk disclosure: Educational material only, not investment advice. All numerical examples are hypothetical. Historical or simulated results do not guarantee future performance; transaction costs, leverage and gaps can lead to losses exceeding planned risk.