Risk management

MAE and MFE in Trading: Read the Path Inside a Trade

A trade's closing result leaves out what happened while it was open. Follow an observed price path to calculate maximum adverse and favorable excursion, compare long and short positions and reconcile the numbers with a trading journal.

Author · Editor

Reviewed

A curved teal glass form dips below and rises above a brass reference rod on a pale stone plinth.

The essentials

  1. MAE measures the largest observed move against a position from its entry; MFE measures the largest observed move in its favor. Both use only the interval while the position is open.

  2. The same entry, exit and final result can hide very different excursions. In this guide, MAE and MFE are nonnegative magnitudes; the final gross movement keeps its sign.

  3. Before comparing journals, align the price source, observation window, position size, units and treatment of costs. Historical excursions alone do not establish a better future exit.

What are MAE and MFE in trading?

Maximum adverse excursion, or MAE, is the greatest movement against a position relative to its entry while it is open. Maximum favorable excursion, or MFE, is the greatest movement in its favor over that same interval. They describe extremes within a trade. The closing result describes where the trade ended.

Consider a long position entered at 100, with observed prices of 100, 98, 101, 105 and 102, where 102 is the exit. Its lowest observed price is 2 below entry, and its highest is 5 above entry. MAE is therefore 2 price units, MFE is 5, and the final gross price movement is +2. A winning trade can experience an adverse move before closing.

The distinction between excursions and the final result also appears in MetaTrader 5's testing-report definitions. Here we begin with a simpler, explicit basis: an illustrative price sequence and one position whose size stays unchanged. The observations are teaching data, not a market history or a record of executable fills.

A price unit means a difference of 1 in the displayed price. It is not automatically a dollar, a pip or a percentage point. We first calculate the movements on that basis, then show when a separate conversion into money or original-risk units is meaningful.

Calculate MAE and MFE for long and short positions

Let E be the entry price, L and H the lowest and highest included prices, and C the exit price. Include the entry observation when finding L and H, and stop at the selected exit. A long position benefits from a rise; a short position benefits from a fall.

Measure, in price units

Long position

Short position

MAE: adverse magnitude

max(0, E − L)

max(0, H − E)

MFE: favorable magnitude

max(0, H − E)

max(0, E − L)

Final gross movement: signed

C − E

E − C

Scroll sideways to compare all columns ↔

For the path 100 → 98 → 101 → 105 → 102, a short position has MAE 5, MFE 2 and final movement −2. The observations and entry are identical to the long example; changing direction changes which side is adverse. A losing trade can have a positive MFE because a favorable move may occur before its losing exit.

One compact formula covers both directions. Set d = +1 for long or −1 for short, then calculate Xₜ = d × (Pₜ − E) at every included observation. MAE = max(0, −min Xₜ), MFE = max(0, max Xₜ), and final movement = d × (C − E). Entry gives X = 0, so a path that never moves against entry has MAE 0.

These formulas display excursions as nonnegative magnitudes. A journal may use a signed loss value or a monetary definition instead. A negative MAE label elsewhere is not necessarily an error: first establish the convention before comparing the numbers.

Explore a trade's price path

The explorer starts with the five observations above, a long position and the final observation selected as the exit. Its three headline values describe adverse excursion, favorable excursion and final gross movement separately. The table shows the price and signed movement from entry at every observation, including which points belong to the chosen interval.

  • Switch from long to short without changing prices. MAE and MFE exchange roles, while the final movement changes sign.
  • Choose the observation at 101 as the exit. The later 105 and 102 stay visible for context but leave the calculation.
  • Edit a price or choose another preset. Compare the table with the highlighted extrema before interpreting the curve.

Observation numbers indicate order, not minutes, candles or equal periods of time. Lines join the supplied points to make the sequence readable; they do not reveal the actual route between observations. The flat preset is a useful check: all three values are zero when every included price equals entry.

Treat the output as a calculation from the entered observations. The explorer does not execute orders, infer missing prices or test a trading strategy. Money and R conversions are optional and require additional information; leaving those fields empty does not prevent you from studying the price movements.

Try it yourself

Interactive example

See what happened before the exit

Change the observed prices, switch direction or move the exit. The largest adverse move, favorable move and final result answer three different questions.

Illustrative observations · one unchanged position · gross price movements · no order execution or costs

Only entry and observations up to this exit affect MAE, MFE and the final gross movement.
Price examples

A price pattern has a different meaning for long and short positions. Choosing an example keeps the current direction and puts the exit at its last observation.

Observed prices

Enter 2–12 observations, including entry. Use a decimal point or comma, up to 4 decimal places, without thousands separators. Values may range from −1,000,000 to 1,000,000.

A new observation starts blank. The selected exit stays in place. Removing the exit selects the previous observation, or the next one if only entry precedes it.

Updated: 5 observations included, exit at observation 4. MAE 2; MFE 5; final gross movement in price units: +2.

Results in price units

Included: observations 0–4. Observations after the exit do not affect these results.

MAE

2price units

Adverse magnitude · nonnegative

MFE

5price units

Favorable magnitude · nonnegative

Final gross movement

+2price units

Signed · before costs

Entry
100
Lowest included price
98
Highest included price
105
Selected exit
102
Observed prices and the selected entry-to-exit window

Observed price

Observed prices and the selected entry-to-exit window5 observed prices. Entry 100, selected exit 102. Solid segments belong to the selected window; faded dashed segments come after the exit. The table gives each exact observation and signed move.

Observation number · not elapsed time

Entry-to-exit observationsLater observations · excludedEntry reference

Lines join the observations for readability. They do not establish the market path between samples or prove that no larger excursion occurred.

On a narrow screen, scroll the table sideways. You can also focus this region and use the arrow keys.

All observations and their role in this calculation
ObservationPriceSigned move from entryWindowExtrema and boundaries
01000Included
Entry
198−2Included
MAE reached
2101+1Included
—
3105+5Included
MFE reached
4102+2Included
Exit

Every included observation that reaches a positive MAE or MFE is marked, including ties. A zero excursion is not marked as an adverse or favorable event.

Convert only with a known value

The price result above needs no contract assumptions. Money and R require an extra value that you already know for this unchanged position.

How this example works

Signed move = direction × (observed price − entry price)

MAE = max(0, −lowest signed move); MFE = max(0, highest signed move)

Direction is +1 for a long position and −1 for a short position. Entry is included, and only observations through the selected exit enter the calculation.

Here MAE and MFE are nonnegative magnitudes. Some journals use another sign convention or calculate them on a money or net-P&L basis.

This model assumes one unchanged position and a consistent price basis. It does not infer quotes, contract values, commissions, fills, stops or targets.

Why the entry-to-exit window matters

Moving the example's long exit from 102 to 101 leaves only 100, 98 and 101 in the interval. MAE stays 2, MFE becomes 1, and final movement becomes +1. Counting the later 105 would incorrectly assign a favorable move to a position that was already closed. The same principle excludes a low reached before entry.

For a real journal, record the entry and exit timestamps, their time zone and the rule for including observations at either boundary. A candle can begin before entry or end after exit. Its full high and low can therefore include prices outside the position's lifetime, even if the candle overlaps the trade.

Sampling also matters. If a price briefly reaches 97 between the observations at 98 and 101, our entered sequence cannot detect it. On the same price basis and interval, a subset of observations can miss a larger excursion. An observed MAE of 0 means no adverse move was found in those observations; missing data do not prove that none occurred.

Even a complete candle's open, high, low and close do not reveal the order of its internal price changes. When both a stop and a target lie inside its range, OHLC alone cannot establish which was touched first. TradingView's strategy documentation explains the assumptions its broker emulator uses when detailed intrabar information is unavailable. Our explorer supplies no order-execution assumptions.

The same final result can hide different excursions

Compare path A, 100 → 99 → 103 → 102, with path B, 100 → 95 → 108 → 102. Both have four observations, the same entry and the same exit. Their intermediate lows and highs differ. The comparison uses a shared price scale so that the visual difference agrees with the numbers.

Position and path

MAE

MFE

Final gross movement

Long · A

1

3

+2

Long · B

5

8

+2

Short · A

3

1

−2

Short · B

8

5

−2

Scroll sideways to compare all columns ↔

All table values are price units. For the two long positions, the final +2 hides both B's larger adverse move and its larger favorable move. In short mode, the final result is −2 for both, while the adverse and favorable sides reverse. Highlighting a path helps trace it without changing the common scale.

This is why a list of closing profits and losses cannot reconstruct MAE and MFE. Profit Factor, which aggregates completed profit and loss amounts, also discards the intermediate observations. Keep the price or position-P&L history if the question concerns what happened while a trade was open.

Path B's high of 108 is visible with hindsight. It does not demonstrate that an exit at 108 was identifiable in advance or executable for the position. MFE records a favorable extreme under the chosen measurement basis; it is not a promise of profit that a different exit rule would have captured.

Try it yourself

Interactive example

The same exit can hide a very different path

Both examples enter at 100 and exit at 102. Compare the excursions before that identical exit, then switch direction.

Two illustrative paths · one shared price scale · four observations each · gross price units

Highlighting changes emphasis only. Both paths, their shared scale and the complete table stay visible.

Long: both final movements in price units are +2. Path A has MAE 1 and MFE 3; path B has MAE 5 and MFE 8.

Two paths with the same entry and exit

Observed price

Two paths with the same entry and exitPath A: 100, 99, 103, 102. Path B: 100, 95, 108, 102. Both use the same price scale. A has a solid line and circular markers; B has a dashed line and square markers.

Observation number · not elapsed time

Path A · solid line, circlesPath B · dashed line, squares

Lines join the observations for readability. They do not establish the market path between samples or prove that no larger excursion occurred.

On a narrow screen, scroll the table sideways. You can also focus this region and use the arrow keys.

Same final movement, different excursion magnitudes
PathMAEMFEFinal gross movement
Path A13+2
Path B58+2

price units · Here MAE and MFE are nonnegative magnitudes. Some journals use another sign convention or calculate them on a money or net-P&L basis.

All four observations in both paths
ObservationA · priceA · signed moveB · priceB · signed move
010001000
199−195−5
2103+3108+8
3102+2102+2

The final result does not reveal how far a position first moved against or in favor of you. These examples show that distinction; they do not identify a safe stop or an achievable best exit.

How this example works

Signed move = direction × (observed price − entry price)

MAE = max(0, −lowest signed move); MFE = max(0, highest signed move)

Direction is +1 for a long position and −1 for a short position. Entry is included, and only observations through the selected exit enter the calculation.

Here MAE and MFE are nonnegative magnitudes. Some journals use another sign convention or calculate them on a money or net-P&L basis.

Only the four stated observations are known. No fees, order execution, scaling in or out, or market path between observations is modeled.

Price movement, money P&L and R units

To convert price movement into money in this fixed-position example, you need a known, positive, constant value V for one price unit of the entire position. Multiply each magnitude or signed movement by V. The value must already represent the relevant position size, contract rules and currency basis. The explorer does not infer these from an instrument name or a lot count.

Suppose, purely for the example, V is 10 USD per price unit. The default long path then has an adverse magnitude of 20 USD, a favorable magnitude of 50 USD and a final gross movement of +20 USD. Those are conversions of 2, 5 and +2; they are not net account results. Spread, commissions, financing and conversion effects need their own consistent treatment, with no cost deducted twice.

For R units, define D as a known, positive initial price-risk distance on the same gross basis. Divide the price-unit values by D. With D = 2, the same path gives MAE 1R, MFE 2.5R and final movement +1R. The original risk is an input established at entry, not a denominator chosen afterward to make the historical result look better.

If the initial risk is unknown or zero, an R result is unavailable. Do not replace it with the observed MAE. When comparing this gross price-based R with a journal's net monetary R, align both the numerator and risk denominator first. The risk/reward calculator addresses planned entry, stop and target levels; this guide measures an observed path.

An unchanging position is essential to the simple money conversion. If you add size or partially close, the money exposure changes during the path. Multiplying the final total quantity by an extreme reached before that quantity was open gives a misleading amount. Reconstruct the quantities and P&L at each moment instead. Sierra Chart's trade-log documentation describes how its own trade grouping and quantities affect reported statistics.

Why your chart and trading journal disagree

Start by checking whether you are comparing the same thing. A chart may show one price series, while a journal uses another series or a running monetary P&L. For example, MetaTrader 5 documents Bid- and Last-based chart prices. Bid, Ask and Last are different price bases; a generic chart extreme is not automatically an executable closing price.

Check

Why values can differ

Record or reconcile

Price source and resolution

Bid, Ask, Last, ticks and sampled candles can produce different observed extrema.

The series, sampling interval and any gaps.

Entry-to-exit boundaries

Time zones or full-candle highs and lows can include prices outside the trade.

Exact timestamps, time zone and boundary rule.

Position size and grouping

Added entries, partial exits or grouped fills alter the money path and entry basis.

Quantities over time and the journal's grouping method.

Units and costs

Price movement, gross money and net P&L measure different quantities.

Unit value, currency conversion and when each cost enters the calculation.

Sign and missing-data rules

A negative adverse value, a zero or an empty field can have different meanings.

The product's sign convention and its handling of unavailable data.

Scroll sideways to compare all columns ↔

The TradesViz MAE documentation, for instance, distinguishes price-based and running-P&L calculations. Those are product choices, not interchangeable labels for one universal formula. Read the definition for the selected setting before treating a discrepancy as a calculation error.

Reconcile one simple, unchanged position first. Match its observations and entry/exit window, then compare units and costs. This makes a disagreement easier to locate than starting with an entire journal containing different instruments, position sizes and trade-grouping rules.

MAE is different from account drawdown

MAE in this guide measures a position's adverse movement relative to its entry. Account drawdown measures a fall in a chosen account value, such as balance or equity, from a preceding peak. The reference level and the scope are different: one position's entry is not an account's running high.

In the default long example, price falls from the favorable high of 105 to the exit at 102, giving back 3 price units. MAE remains 2 because the lowest included price relative to entry 100 was 98. A retreat from an earlier favorable extreme can occur entirely above entry and is not the same calculation as adverse excursion.

An account can also contain other positions, closed results and cash flows. Those affect its own path and cannot be reconstructed from one trade's MAE. A firm's trailing-drawdown rule adds specific reference levels, timing and breach conditions. Neither our MAE formula nor a journal's similarly named field establishes whether such a rule was breached.

What MAE and MFE cannot tell you about future exits

Excursions can help describe a historical sample and formulate questions about exits. They cannot, on their own, select a future stop or target. The mean MAE of past winning trades is especially incomplete: it omits losing trades and conditions the sample on an outcome that was unknown at entry. A stop chosen from that subset can change which trades survive to become winners.

Even full-trade MAE and MFE omit the sequence in which levels were reached. Changing an exit rule can close the position before a later favorable extreme, and costs or execution can change the realized result. The original extrema describe the original holding interval; they do not automatically describe a counterfactual trade with different rules.

  • Define the entry and exit rules, sample boundaries and measurement basis before evaluating an idea.
  • Retain winners and losers, and use sufficient chronological price and position data to test the proposed rule.
  • Evaluate on separate data with explicit costs and execution assumptions; report uncertainty and changes in trade outcomes.

A trailing stop or trailing stop-limit order is an execution mechanism with its own trigger and fill conditions. MAE/MFE are descriptive statistics. Slippage can separate a recorded or requested price from the actual fill, so an observed maximum should not be presented as guaranteed attainable profit.

Use the two explorers to answer a narrower, checkable question: what do these observations imply under this direction, interval and unit convention? Once that is clear, you can identify which additional evidence a journal comparison or an exit hypothesis would require.

MAE and MFE: common questions

Can a winning trade have MAE?

Yes. In the long path 100 → 98 → 101 → 105 → 102, the observed move to 98 produces MAE 2, while the exit at 102 gives final gross movement +2. A closing gain does not erase an earlier adverse excursion.

Can a losing trade have MFE?

Yes. On the same path, a short position initially benefits from the move to 98, giving MFE 2, but exits at 102 with final movement −2. MFE records a favorable extreme during the selected interval, not the closing result.

Can both MAE and MFE be nonzero at break-even?

Yes. A long path 100 → 98 → 103 → 100 has MAE 2 and MFE 3, while its final gross price movement is 0. Break-even on this price basis also does not establish a zero net result after trading costs.

Is MAE always shown as a positive number?

No. Here it is a nonnegative adverse magnitude, including 0 when no adverse move appears in the included observations. Some products use signed values or a different P&L basis. Check the convention; do not turn unavailable observations into a proven zero.

Can I calculate MAE and MFE from entry and exit alone?

You can calculate the signed price change, but not the intervening extrema. The paired paths both enter at 100 and exit at 102 yet produce different MAE and MFE. Intermediate observations or a documented position-P&L history are needed.

Does MFE identify the best take-profit level?

It identifies the largest observed favorable move for the original interval and basis. That extreme is known afterward. A future exit rule needs separate evaluation using chronological data, costs and execution assumptions; historical MFE alone does not establish an achievable improvement.

Sources & further reading

All guides
Risk/reward calculatorConnect planned entry, stop and target levels with gross and net trade outcomes.Trailing stop vs trailing stop-limitUnderstand how moving exit orders trigger and why execution can differ.Slippage explainedDistinguish an observed price, a requested price and an actual fill.Trailing drawdown explainedSeparate a trade's excursion from a moving account-level limit.
All guides