Maximum Favorable Excursion (MFE): Are Your Crypto Bot's Take-Profits Set Correctly?

Maximum Favorable Excursion measures the highest unrealized profit a trade reached during its lifetime — comparing MFE to actual exit profit reveals whether your take-profit levels are capturing or wasting available trade potential.

Maximum Favorable Excursion (MFE) is a per-trade metric introduced by John Sweeney that measures the highest unrealized profit a position achieved at any point during its lifetime, from entry to exit. For a long trade, MFE is the highest price reached during the trade minus the entry price. MFE's analytical value: it shows the maximum potential profit that was available in the trade, regardless of where you actually exited. Comparing MFE to the actual exit profit reveals trade efficiency — how much of the available profit did your exit strategy capture? A trade with MFE of $500 and actual profit of $150 captured only 30% of available profit — suggesting the exit was premature (take-profit too early, trailing stop too tight) or the entry was well-timed but the exit was not. MFE analysis across all trades provides a systematic picture of exit quality that cannot be obtained by looking at P&L alone. Use it alongside Maximum Adverse Excursion (MAE) for complete trade-level risk analysis.

Related metrics: Maximum Drawdown, Profit Factor, Calmar Ratio.

MFE Formula and Calculation

For a Long Trade:
MFE = (Highest Price During Trade - Entry Price) / Entry Price × 100%

For a Short Trade:
MFE = (Entry Price - Lowest Price During Trade) / Entry Price × 100%

Example long trade:
Entry: $42,000 BTC
Highest price during trade: $45,500
Exit price: $43,800

MFE = ($45,500 - $42,000) / $42,000 × 100% = 8.33%
Actual Exit Gain = ($43,800 - $42,000) / $42,000 × 100% = 4.29%
Capture Ratio = 4.29% / 8.33% = 51.5% (captured about half of available profit)

MAE (Maximum Adverse Excursion) for same trade:
Lowest price during trade: $41,200
MAE = ($42,000 - $41,200) / $42,000 × 100% = 1.90%

MFE vs Actual Exit: Interpreting Exit Quality

MFE Capture RatioInterpretationPossible Action
80–100%Excellent exit quality — capturing most of the available moveNo adjustment needed
50–80%Good — standard for many strategies leaving some profit on tableMinor trailing stop adjustment may help
30–50%Moderate — exits are premature relative to available opportunityConsider widening trailing stop or take-profit
Under 30%Poor — exiting very early; fixed take-profits too tight or SAR too sensitiveSystematically widen exit parameters and retest

MFE Distribution Analysis

Plot all your trades' MFE values in a histogram to identify the MFE distribution pattern:

  • If MFE distribution peaks around 3–5%: Most trades had 3–5% maximum favorable potential. Set take-profit targets within this range to capture the majority of available moves
  • If MFE distribution has a long right tail: Most trades are small but some have very high MFE — strategy has occasional large-win potential. Trailing stop exit (SAR or ATR trailing) captures the tail better than fixed take-profit
  • If MFE distribution is narrow and concentrated: Consistent profit potential per trade — fixed take-profit targets work well

Using MFE in DennTech Strategy Optimization

  1. Run DennTech's backtest and export per-trade data including MFE and MAE
  2. Calculate MFE Capture Ratio for each trade: Actual Profit / MFE
  3. If median Capture Ratio is below 40%: investigate exit parameters (take-profit too tight, trailing stop too aggressive)
  4. Plot MFE distribution histogram to identify peak MFE range for your strategy
  5. Adjust take-profit target to capture the top 70th percentile of the MFE distribution
  6. Re-run backtest with adjusted parameters and compare Profit Factor before and after

Full documentation at DennTech docs. All strategies at strategies page. Compare editions at pricing page.

Frequently Asked Questions

Should I optimize take-profit levels to maximize MFE capture ratio for every trade?
The goal is not to maximize the average MFE capture ratio at the expense of other metrics — it is to find exit parameters that maximize overall Profit Factor and risk-adjusted returns. Setting take-profit too wide (to capture 90%+ of MFE) may prevent many trades from completing successfully (price doesn't quite reach the wide target before reversing). Setting take-profit too tight (low MFE capture) leaves profit on the table unnecessarily. The MFE analysis provides the data to find the balance: identify the MFE level that represents where most winning trades reached their peak before reversing, and set take-profit just below that level. This is empirical optimization based on your strategy's specific historical behavior, not universal thresholds. See our backtesting guide. Compare editions at the pricing page.
How is MFE useful for stop-loss optimization as well as take-profit?
MFE analysis is primarily about exit optimization. The companion metric MAE (Maximum Adverse Excursion) is the tool for stop-loss optimization: MAE measures the worst unrealized drawdown of each trade during its lifetime. Plotting the MAE distributions of winning trades vs losing trades reveals the natural stop-loss zone — winning trades typically have small MAE (they don't go much against you before moving in your favor), while losing trades have larger MAE (they move against you significantly). Setting your stop-loss at a level that: catches the losing trade MAE distribution while allowing the winning trade MAE variation, optimizes the stop placement. Use both MFE and MAE analysis together in DennTech's per-trade export for comprehensive entry-and-exit optimization. Start at the pricing page.
Does the MFE analysis method work equally well for both mean-reversion and trend-following strategies?
MFE analysis is useful for both strategy types but produces different insights. For mean-reversion strategies (RSI bounce, Stochastic): MFE is typically modest and consistent — most trades have small-to-moderate favorable excursion before reversing. Fixed take-profit targets work well when set near the MFE distribution peak. For trend-following strategies (EMA, MACD, Ichimoku): MFE distribution often has a long right tail — most trades have small MFE but a minority of trades (the trend-following "big wins") have very large MFE. In this case, using a trailing stop (SAR or ATR trailing) rather than a fixed take-profit better captures the tail. Analyzing MFE distribution shape guides the exit type choice. See our SAR guide for trailing stop approaches. Explore the live demo.

Incorporating MFE analysis into your regular monthly strategy review alongside Profit Factor and Maximum Drawdown provides a complete picture of both entry and exit quality. A strategy with strong entry signals but consistently poor MFE capture ratios is leaving money on the table through exit misconfiguration, which is often the easier fix compared to improving entry signals. Track MFE capture ratio as a dedicated metric in your trade journal and revisit exit parameters when the rolling 3-month average capture ratio drops below 40%. This systematic approach to exit optimization often yields meaningful improvements in overall strategy Profit Factor without requiring any changes to the entry logic. See our monthly review guide.

Analytics: MFE (this guide), MDD, Profit Factor. All at the strategies page.

Disclaimer: DennTech Trading Solutions is a software company, not a financial advisor. Nothing on this site constitutes financial advice, investment advice, or a recommendation to buy or sell any asset. Cryptocurrency trading involves substantial risk of loss and is not suitable for all investors. Always do your own research and consult a qualified financial professional before making any investment decisions. View full Liability Waiver →