Calculate maximum drawdown and the performance required to recover.
In algorithmic trading and investment portfolio management, Maximum Drawdown (MDD) measures the largest single drop from a portfolio's peak value to its lowest point (trough) before a new peak is achieved. It is a critical metric for assessing historical downside risk.
The mathematical formula for calculating this percentage is:
$$ Maximum\ Drawdown = \frac{Peak\ Value - Trough\ Value}{Peak\ Value} \times 100 $$
One of the most dangerous psychological traps in trading is misunderstanding recovery math. Because your capital base shrinks during a drawdown, the percentage gain required to return to your previous peak is always larger than the percentage you lost.
This calculator instantly computes the exact performance your trading algorithm needs to generate just to return to its high-water mark.