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.