What are MAE and MFE in trading? Definitions and calculation examples.

MAE and MFE answer two simple questions about every trade: how far did price go against you before you got out, and how far did it go in your favour? The first tells you whether your stop sits in the right place; the second tells you how much of the move you actually kept. Both take four prices and a minute to measure, and over a few dozen trades they show patterns no P&L number will.

How it looks in Trevixe — the real app

In short

  • MAE: how far price went against you
  • MFE: how far it went in your favour
  • Calculated in Trevixe from exchange candles
  • Formulas for long and short in R
Contents 14
  1. In plain words: one trade
  2. What the numbers tell you
  3. In Trevixe: from exchange candles, automatically
  4. MAE: maximum adverse excursion
  5. MFE: maximum favorable excursion
  6. Fix the initial risk unit
  7. Long formulas
  8. Long example: 0.5R MAE, 3R MFE
  9. Short formulas
  10. Short example: the same risk units
  11. Keep costs and changing size separate
  12. Check the price data and interval
  13. Compare similar trades, including losses
  14. Use MFE without hindsight targets

In plain words: one trade

You buy at 100 with a stop at 98, so you risk 2 points: that is 1R. Price first dips to 99, halfway to your stop. That dip is the MAE: 0.5R. Then it rallies to 106 and you sell at 104. The best price while you held, 106, is the MFE: 3R. Your result is 2R. Two numbers tell the story: the entry was fine because price never came close to the stop, and the exit left a third of the move on the table.

What the numbers tell you

Losers whose MAE is almost always a full 1R and winners that dip to 0.8–0.9R first suggest a stop that is too tight or entries that come too early. Winners with a large MFE but a small result point to early exits. Losers with an MFE near zero mean the idea was wrong from the start, which is a setup problem, not an exit problem. Look at a group of similar trades, not one.

In Trevixe: from exchange candles, automatically

You do not have to look up highs and lows yourself. For crypto pairs, Trevixe pulls the exchange's candles (Bybit) for the exact time the trade was open: minute candles for intraday trades, larger ones for long holds. It draws the trade as a candle chart with four numbered points (entry, the worst moment, the best moment, exit) and writes MAE, MFE and the share of the move you kept in R and dollars. If the trade's prices do not match the exchange's candles, or the instrument is not listed there, you type the worst and best price yourself, as in the video above, and get the same levels.

MAE: maximum adverse excursion

The largest move against your entry while the trade was open, measured from the executed entry to the executed exit. Price movement after you close does not count. In this guide it is expressed in R, so trades of different sizes and instruments can be compared.

MFE: maximum favorable excursion

The largest move in your favour over the same interval. It is a fact about what the market offered, not a target you should have hit: the best price is only known afterwards. The formulas below assume one entry, one exit, and an unchanged position size.

Fix the initial risk unit

Let E be the executed entry price, S the initial stop, and H/L the highest/lowest prices during the entry-to-exit interval. Define one R as the positive price distance |E − S|, before fees. The initial stop must be below a long entry or above a short entry; a zero distance cannot be used as a divisor. Keep this initial denominator even if the stop moves later.

Long formulas

For a long: MAE in R = max(0, E − L) / |E − S|; MFE in R = max(0, H − E) / |E − S|. Gross result in R = (exit − E) / |E − S|. Here MAE and MFE are non-negative distances: use zero if there was no adverse or favorable movement. A losing realized result remains negative.

Long example: 0.5R MAE, 3R MFE

Suppose entry = 100, initial stop = 98, low = 99, high = 106, and exit = 104. One R = 2 price units. MAE = (100 − 99) / 2 = 0.5R; MFE = (106 − 100) / 2 = 3R; gross result = (104 − 100) / 2 = 2R. Both extrema belong to the time the trade was open. This is an invented educational example.

Short formulas

For a short, the adverse direction reverses: MAE in R = max(0, H − E) / |E − S|; MFE in R = max(0, E − L) / |E − S|. Gross result in R = (E − exit) / |E − S|. The same zero floor applies to excursion distances; it does not erase a realized loss.

Short example: the same risk units

Suppose entry = 100, initial stop = 102, high = 101, low = 94, and exit = 96. One R = 2. MAE = (101 − 100) / 2 = 0.5R; MFE = (100 − 94) / 2 = 3R; gross result = (100 − 96) / 2 = 2R. The example is synthetic and uses only prices seen between entry and exit.

Keep costs and changing size separate

The examples are price-based and exclude fees. For a linear instrument, initial money risk = initial price distance × quantity × value per price unit. Net result in R = (gross money P&L − commissions − other trading costs) / initial money risk. Execution prices already include execution slippage; do not subtract it twice. Partial fills, scale-ins, and partial exits need a documented quantity-weighted method with timed cash flows and changing exposure; these simple fixed-size formulas are insufficient.

Check the price data and interval

A candle spanning the entry or exit time may contain a high or low reached while you had no position. Use sufficiently detailed data to isolate the actual holding interval, including execution prices, and use a consistent price source. Missing ticks, bid/ask differences, and coarse candles can change the result. An excursion is an observation from the available data, not proof you could have filled an order at that extreme.

Compare similar trades, including losses

Group by setup, instrument, session, and holding rules. Review the distribution of MAE, MFE, and net results for winners and losers; choosing stops from winners alone biases the evidence. There is no universal trade count that makes a new stop valid. Write a hypothesis, evaluate enough representative observations to assess uncertainty, and test one rule on separate subsequent trades before adopting it.

Use MFE without hindsight targets

In both examples, the gross result captures 2R / 3R ≈ 67% of MFE. This is a descriptive ratio when MFE is positive, not a target to maximize. The extreme is known retrospectively; capturing 100% is not a sensible requirement. MFE ends at your actual exit and cannot show what a longer hold would have earned. Test a different holding rule separately, with its own risk, costs, and price path.

Common questions

Does Trevixe calculate MAE and MFE automatically?

Yes, for crypto pairs listed on Bybit: it loads the exchange's candles for the time the trade was open, draws a candle chart with the entry, worst moment, best moment and exit, and calculates MAE and MFE in R and dollars. For other instruments, enter the worst and best price by hand. It works on the free plan.

What is MAE in trading?

MAE means maximum adverse excursion: the largest adverse move from the entry price during the trade's entry-to-exit interval. This guide expresses that distance as a non-negative multiple of initial price risk, before costs.

What is MFE in trading?

MFE means maximum favorable excursion: the largest favorable move from entry while the trade was open. It excludes movement after exit and is not a guaranteed executable profit.

How do you calculate MAE and MFE in R?

Divide the adverse and favorable price distances by the absolute distance between entry and the initial stop. For a long entered at 100 with stop 98, low 99, and high 106 before exit, MAE is 0.5R and MFE is 3R. Clamp each excursion distance at zero; calculate the net realized result separately after costs.

Try it in Trevixe

See the MAE and MFE of your trades

Import your crypto trades and each one gets a candle chart with its worst and best moment, plus MAE and MFE in R and dollars.

  • Free plan, forever
  • Pro free for 14 days, no card
  • Import trades from CSV in a minute