v3.6.0 is liveWhat's new
Skip to main content
RelayDesk
trading strategies

MAE and MFE Explained: Trade Execution Quality Beyond P&L

RelayDesk Team
RelayDesk Team
October 27, 2026 · 4 min read
MAE and MFE Explained: Trade Execution Quality Beyond P&L

P&L tells you what a trade made or lost. MAE and MFE tell you what the trade could have made or lost, and that gap reveals how well your bot is executing.

Automate your trading strategy

Start Free Trial

Your bot closed 60% winners last month. P&L is positive.

On the surface, things look fine. But dig into the individual trades and you might find something worth examining: winners that reached 3x your target profit before closing at 1x, and losers that barely moved against you before getting stopped out.

Both appear identical in a P&L summary. Neither tells the full story.

MAE and MFE are the metrics that fill in the gap.

What MAE means

Maximum Adverse Excursion (MAE) measures how far against you a trade moved before it closed. If you entered long at $100 and the price dropped to $96 before recovering and closing at $101, your MAE is $4, or 4%.

MAE tells you the worst moment in each trade: the maximum pain your strategy absorbed to generate its outcome. A low MAE on a losing trade means the trade just didn't work, but it wasn't a disaster. A high MAE on a winning trade means you held through significant drawdown to collect your profit, which might be fine by design, or might indicate your stop-loss is set too wide.

What MFE means

Maximum Favorable Excursion (MFE) measures how far in your favor a trade moved before it closed. If you entered long at $100, the price reached $108, then pulled back to close at $104, your MFE is $8, or 8%.

MFE tells you the best moment in each trade: the maximum unrealized profit that was on the table. When MFE is significantly larger than your actual P&L on winning trades, you're leaving money on the table.

The market gave you more than you took. That gap is worth examining.

Why P&L alone misses the story

P&L collapses each trade into a single number. MAE and MFE preserve the journey.

Consider two winning trades that each closed at +2%. Trade A had MFE of 2.1% and MAE of 0.3%.

It went almost straight to target with minimal heat. Trade B had MFE of 7% and MAE of 2%.

It ran to +7% unrealized, pulled back hard, and you closed at +2%. You held through 2% adverse movement after being up 7%.

Both appear identical in a P&L report. But Trade B is a very different story: your bot had 7% on the table and closed at 2%.

Was that the right exit logic? Or was your take-profit set too conservatively for a trend-following strategy? You can't ask that question without MFE data.

How to use MAE in practice

Plot MAE across your losing trades. If most losers have MAE under 1% and your stop is set at 3%, your stop is too wide. You're absorbing unnecessary heat before acknowledging the trade isn't working. Tightening the stop preserves more capital without changing your entry logic.

If MAE on losing trades is clustered near your stop level, the stop is sized correctly. Trades are reaching it because the thesis was wrong, not because of noise.

For winning trades, MAE tells you how much heat you're routinely holding to get to your exit. If winners consistently show 2%+ MAE before closing in profit, your entries might benefit from refinement.

How to use MFE in practice

If your winning trades consistently show MFE 2–3x larger than your actual P&L, you're systematically closing too early. The market is giving you room that your exit logic isn't capturing.

For signal-managed exits, where your TradingView strategy sends the close signal, high MFE relative to P&L can mean your exit alerts are firing too conservatively. For OCO exits with a fixed take-profit, it means your target is set below what the trade typically reaches. Neither is automatically wrong, but you should be making that choice intentionally, with data, not by default.

Reviewing MAE and MFE in RelayDesk

RelayDesk's trade history logs entry, exit and intrabar price data for every closed trade, which is what you need to calculate MAE and MFE yourself or feed into your own analysis. Editorial note (fixed in this pass): the previous draft said Relay AI can run an automated MAE/MFE execution-quality review. I could not confirm that capability against RelayDesk's current trade analytics, which expose win rate, average win/loss and best/worst day, not MAE/MFE breakdowns. If Relay AI does support this, let me know and I will restore that framing with the correct specifics.

The goal isn't to optimize every trade in hindsight. It's to find systematic patterns in your execution that indicate your bot's configuration is working against its own strategy logic.

P&L tells you the scorecard. MAE and MFE tell you how the game was actually played. Both matter for understanding whether your bot is doing what you designed it to do.

RelayDesk is a trading automation platform. We are not a broker-dealer or investment advisor and do not provide investment advice. Trading involves substantial risk of loss. Past performance is not indicative of future results. View full disclaimer

RelayDesk Team

RelayDesk Team

Automate your trading strategy

Start Free Trial