Inferensys

Glossary

Maximum Adverse Excursion

Maximum Adverse Excursion (MAE) is the peak unrealized loss experienced on a single trade before it is closed, used to calibrate stop-loss levels and assess intra-trade risk tolerance.
Risk analyst performing AI risk assessment on laptop, risk matrices visible, casual office risk session.
Intra-Trade Risk Measurement

What is Maximum Adverse Excursion?

Maximum Adverse Excursion (MAE) quantifies the worst unrealized loss a trade endures before closing, serving as a critical metric for calibrating stop-loss placement and evaluating a strategy's pain tolerance.

Maximum Adverse Excursion (MAE) is the peak paper loss recorded on a single trade from its entry price to its lowest point before the position is exited. Unlike realized drawdown, MAE captures the intra-trade stress a portfolio must absorb, providing a direct measure of the capital at risk during the holding period. It is calculated as the maximum negative difference between the entry price and the subsequent low-water mark.

Quantitative developers use MAE to optimize stop-loss levels and diagnose strategy fragility. By analyzing the distribution of MAE across a backtest, architects can set thresholds that cut losing trades before they exceed a strategy's risk budget, while avoiding premature exits that would degrade the win rate. MAE is often plotted against its counterpart, Maximum Favorable Excursion (MFE), to visualize a strategy's asymmetry.

INTRINSIC TRADE METRICS

Key Characteristics of MAE Analysis

Maximum Adverse Excursion (MAE) quantifies the worst unrealized loss a trade endures before closing. Analyzing its distribution is critical for calibrating stop-loss levels and understanding a strategy's intra-trade pain tolerance.

01

Definition and Calculation

MAE is the maximum peak-to-trough decline in a position's unrealized profit and loss (P&L) during its lifetime. It is calculated by tracking the minimum value of the equity curve relative to the entry price for each individual trade. Unlike Maximum Favorable Excursion (MFE), which measures peak unrealized gain, MAE focuses strictly on downside exposure. The metric is always expressed as a negative value or absolute loss amount, representing the worst-case scenario the strategy tolerated before either hitting a stop or reaching its exit condition.

02

Stop-Loss Calibration

The primary application of MAE analysis is the empirical setting of stop-loss thresholds. By plotting the distribution of MAE values for winning trades versus losing trades, a quant can identify a 'pain threshold'—a level beyond which a trade rarely recovers to become profitable. Key steps include:

  • Segregation: Separate MAE values for winning and losing trades.
  • Percentile Analysis: If 95% of winning trades have an MAE less than 1.5 ATR (Average True Range), setting a stop beyond this point may unnecessarily cap upside.
  • Optimization: Place the stop just outside the noise cluster of winning trades to avoid premature exit while cutting losers early.
03

MAE vs. Maximum Drawdown

MAE and Maximum Drawdown (MDD) are distinct concepts often confused. MAE is a trade-level metric, measuring the worst point within a single position. MDD is a portfolio-level metric, measuring the peak-to-trough decline of the entire equity curve over the strategy's lifetime. A strategy can have many small MAE values but still suffer a large MDD if it experiences a cluster of consecutive losing trades. MAE helps diagnose individual trade behavior, while MDD assesses systemic capital risk.

04

End-of-Trade MAE

End-of-Trade MAE is a specific variant that records the adverse excursion at the exact moment of exit. This is particularly useful for analyzing the effectiveness of dynamic exit logic. If the End-of-Trade MAE is consistently close to the overall MAE, it indicates the strategy is exiting near the point of maximum pain, often a sign of poor timing or a stop being hit. A large gap between the peak MAE and the End-of-Trade MAE suggests the trade recovered significantly before closing, indicating resilience.

05

Bubble Chart Visualization

A standard visualization plots MAE on the x-axis against Profit/Loss on the y-axis for every trade, creating a scatter plot often called an MAE/MFE bubble chart. The resulting pattern reveals strategy behavior:

  • Bottom-Right Quadrant: Trades with large MAE that still closed profitably. These indicate high pain tolerance but potential for stop optimization.
  • Bottom-Left Quadrant: Trades with large MAE that closed as losers. This cluster defines the loss zone.
  • Vertical Separation Line: A clear gap between winning and losing clusters on the MAE axis suggests an optimal stop-loss level.
06

Statistical Profiling

Advanced MAE analysis involves fitting statistical distributions to the MAE values. Common techniques include:

  • Kernel Density Estimation: To visualize the probability density of MAE magnitudes.
  • Conditional Expectation: Calculating E[MAE | Trade is a Winner] to understand the expected pain of a successful trade.
  • Monte Carlo Resampling: Bootstrapping the sequence of MAE values to simulate worst-case sequences of adverse excursions and estimate capital buffer requirements. This moves analysis beyond simple averages to probabilistic risk assessment.
MAXIMUM ADVERSE EXCURSION

Frequently Asked Questions

Explore the critical risk metric that quantifies the worst-case intra-trade drawdown, essential for calibrating stop-loss levels and assessing strategy resilience.

Maximum Adverse Excursion (MAE) is the largest peak-to-trough unrealized loss experienced by a single trade during its lifetime, measured from the entry price to the most unfavorable price reached before the position is closed. It is calculated by tracking the mark-to-market value of an open position tick-by-tick and recording the maximum negative deviation from the entry point. For a long position, MAE equals Entry_Price - Lowest_Price_Reached; for a short position, it is Highest_Price_Reached - Entry_Price. This metric is typically expressed in basis points, percentage of capital, or absolute currency terms. Unlike Maximum Favorable Excursion (MFE), which measures the best unrealized gain, MAE focuses exclusively on the downside path dependency of a trade. The calculation requires high-resolution point-in-time data to ensure that intra-bar extremes are captured accurately, as relying solely on closing prices will systematically underestimate true adverse excursion.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.