Skip to content

MetaTrader 5

Recovery Factor in Trading: Formula, MT5 and Worked Example

Recovery factor in trading is net profit divided by maximum drawdown, with both amounts measured in the same currency over the same period. A recovery factor of 2 means the period's net profit is twice its largest measured peak-to-trough loss. MetaTrader 5 reports the metric. Recovery factor does not measure recovery time, confirm that the latest equity peak has been regained, or estimate the next drawdown.

Illustrative recovery factor cover with a positive-result block and a drawdown bracket, with the official PineConnector logo.
Period net profit divided by the largest currency drawdown.

Use recovery factor alongside the other measures in the trading metrics library. The numerator summarises the whole period; the denominator records its worst measured decline. That difference explains much of the metric's appeal and its limitations.

Recovery factor at a glance

Scroll horizontally to read every column.

Item Meaning
Formula Net profit ÷ maximal drawdown in currency.
Unit A dimensionless ratio, because the currency units cancel.
Period The same start and end dates for profit and drawdown.
Drawdown basis State balance or equity and how frequently it is measured.
Where it appears MetaTrader 5 reports and Strategy Tester optimisation results.
Not the same as Profit factor, Calmar ratio, recovery time or the gain needed to recover.

What is the recovery factor formula?

Recovery factor = net profit ÷ maximal drawdown (currency)

MetaQuotes' MT5 help defines recovery factor as the ratio of gained profit to the maximum drawdown.[1] The tester report also lists Recovery Factor beside other summary statistics.[2] This page uses the period's net result as the numerator and a positive drawdown amount as the denominator.

  • Net profit: the trading result for the period after the costs included in the calculation. Deposits and withdrawals are not trading profit.
  • Maximal drawdown: the largest currency decline from a running high to a later low during the same period.
  • Balance or equity: balance excludes floating position results; equity includes them. A balance-only calculation can miss an open-position loss.[3]

Record which drawdown series the report uses before comparing it with another system. MetaTrader 5 distinguishes Absolute, Maximal and Relative drawdown fields for balance and equity.[2] The field named Absolute Drawdown measures a fall below the initial deposit; it is not interchangeable with the largest peak-to-trough decline.

With a positive denominator, a negative net result gives a negative recovery factor and a zero net result gives zero. If maximal drawdown is zero, division is undefined. A blank, capped or special display value must not be interpreted as a finite recovery factor.

Worked example: a recovery factor of 2 while below the peak

Illustrative numbers, not a recommendation or strategy results. Consider a constructed balance record with no deposits, withdrawals or open positions. The net results include the example's assumed costs. The listed points include the relevant peaks and troughs; no larger decline occurs between them.

Point in the record Balance Decline from running peak
Start 10,000 USD 0 USD
First peak 12,000 USD 0 USD
First trough 10,000 USD 2,000 USD
Later peak 15,000 USD 0 USD
End 14,000 USD 1,000 USD
  1. Net profit: 14,000 − 10,000 = 4,000 USD.
  2. Maximal drawdown: 12,000 − 10,000 = 2,000 USD. The later 1,000 USD decline is smaller.
  3. Recovery factor: 4,000 ÷ 2,000 = 2.0.
  4. Current drawdown: 15,000 − 14,000 = 1,000 USD, or about 6.67% of the latest peak.
Illustrative recovery factor diagram: net profit of 4,000 USD divided by maximal drawdown of 2,000 USD gives 2.0, while the ending balance remains 1,000 USD below its latest peak.
Illustrative record, not a strategy result. Recovery factor compares period profit with historical drawdown; it does not report whether the current drawdown has ended.

The ending balance is still below 15,000 USD. A recovery factor above 1 therefore does not prove recovery from the latest peak. For that question, inspect current drawdown and the time elapsed since the peak.

Why must profit and drawdown use matching units?

Dividing a currency profit by a percentage drawdown mixes units. Even dividing a return percentage by a drawdown percentage can produce a different number from the currency-based recovery factor, because the percentages may use different capital bases.

In the example, total return is 4,000 ÷ 10,000 = 40% of starting balance. Maximum relative drawdown is 2,000 ÷ 12,000 ≈ 16.67% of the first peak. Dividing those exact percentages gives 2.4, not the currency ratio of 2.0.

The maximum drawdown guide explains the different bases. On a longer record, the largest currency decline and largest percentage decline can also occur in different episodes. Use the documented field that matches the formula, not whichever drawdown value is most prominent.

Recovery factor versus Calmar ratio and profit factor

Metric Formula Question answered
Recovery factor Net profit ÷ maximal drawdown in currency. How large was the period's net result relative to its worst currency decline?
Calmar ratio One-year compound return rate ÷ maximum drawdown as a positive fraction. How did the time-normalised return compare with the worst percentage decline?
Profit factor Gross profit ÷ absolute gross loss. How did all winning results compare with all losing results?

Calmar ratio expresses the return numerator as a one-year compound rate; recovery factor uses the period's net currency result. Calmar still depends on the chosen window and drawdown convention. The profit factor denominator adds losing trades together, without regard to whether wins separate them.[6]

Recovery factor is also distinct from the percentage gain needed to recover a drawdown. That gain is d ÷ (1 − d), where d is the loss fraction. An illustrative 20% drawdown needs a 25% gain from the trough. That calculation says nothing about period net profit or recovery factor.

Where can you find recovery factor in MT5 and TradingView?

Platform documentation as of 25 September 2026:

Report What to look for
MT5 Strategy Tester Recovery Factor in the testing report; recovery factor is also documented in optimisation results.[1][2]
MT5 account Trading Report Recovery Factor among the account statistics. The report is generated from the current account's trading history.[7]
TradingView strategy report The equity run-up and drawdown section includes total profit or loss relative to maximum drawdown, with intrabar and close-to-close measures also available.[4]

A similar label does not establish identical results. Match dates, included costs, open-position treatment and drawdown sampling. A ratio calculated from daily closing equity can omit an intraday trough that an intrabar report captures.

For PineConnector records, the Analytics guide documents net profit and drawdown. It explicitly asks readers to check included costs and whether drawdown is current or maximum.[5] Those labels alone are insufficient to reconstruct this ratio: the drawdown needs the correct basis, currency and window.

What changes between a TradingView rule and an MT5 result?

The path from idea to measurable rule to TradingView alert to MT5 order creates distinct records. TradingView's broker emulator simulates fills from chart data.[4] Its drawdown therefore belongs to the simulated account, not automatically to the receiving broker account.

An alert condition becoming true is separate from the alert triggering and webhook delivery. PineConnector processing is separate from the EA's order request, broker acceptance, the deal and the resulting position. PineConnector's setup test requires confirmation of the broker trade after processing.[8]

A stop specified only in a strategy's logic does not establish that a stop exists at the broker. Reconcile the resulting trades and their equity exposure before comparing recovery factors. A missing trade or a different fill can change both net profit and the worst decline; the ratio alone cannot identify which stage differed.

What are the limitations of recovery factor?

  • Test length changes the question. With an illustrative unchanged drawdown of 2,000 USD, net profit of 4,000 USD gives 2.0 and 8,000 USD gives 4.0. The ratio alone cannot distinguish a better distribution from simply a longer window.
  • The worst decline is one observation. Many smaller drawdowns and one isolated event can produce the same maximum. Duration and frequency are missing.
  • Open risk may be hidden. Balance drawdown can remain modest while an unclosed position has a large floating loss. State the basis.
  • More history can reveal a larger denominator. A longer window can add both profit and a worse drawdown. Recovery factor does not necessarily rise with time.
  • Cash movements and sampling matter. Deposits, withdrawals, missing observations and report reset rules can change the measured path. Match the data treatment before comparing reports.
  • A past maximum is not a loss limit. The next drawdown can exceed the measured maximum. Optimising parameters for the largest historical ratio does not resolve that uncertainty.

There is no universal good recovery factor. A meaningful comparison discloses the numerator, denominator, period, cost treatment and drawdown basis together. The score becomes less useful when those inputs are hidden behind a single ranking.

Frequently asked questions

What is recovery factor in trading?

Recovery factor is net profit divided by maximal drawdown, with both amounts in the same currency over the same period. An illustrative 4,000 USD net result and 2,000 USD maximal drawdown give 2.0. The metric compares the period's result with its worst measured decline; it does not measure recovery speed.

Where is recovery factor in MT5?

MetaTrader 5 documents Recovery Factor in its Strategy Tester report, optimisation results and account Trading Report. MetaQuotes defines the ratio using gained profit and maximum drawdown. Before comparing reports, check their selected dates, included costs and drawdown basis. A tester's simulated history and an account's executed history are different records.

Is recovery factor net profit divided by maximum drawdown?

Yes. The convention used here is net profit divided by the positive maximal drawdown amount, both in account currency. Dividing currency profit by percentage drawdown mixes units. Dividing total return percentage by peak-based drawdown percentage can also give a different ratio because the percentages use different capital bases.

What is the difference between recovery factor and Calmar ratio?

Recovery factor divides the period's net currency profit by maximal currency drawdown. Calmar divides a one-year compound return rate by maximum percentage drawdown over the stated window. Calmar adjusts the return numerator for time, while recovery factor does not. Both remain sensitive to the observation period, cost treatment and how drawdown is measured.

Does a recovery factor above 1 mean the account has recovered?

No. Recovery factor above 1 means the period's net profit exceeds its maximal drawdown amount. The account can still be below its most recent peak. Current drawdown and recovery duration answer whether that peak has been regained and how long the account has remained below it.

Reviewed 25 September 2026. Facts were checked against the linked sources on that date. Nothing in this article was tested on a trading account and no code was compiled.

Related reading

Sources

  1. MetaQuotes – Strategy Optimization: Recovery Factor, accessed 25 September 2026.
  2. MetaQuotes – Testing Report, accessed 25 September 2026.
  3. MetaQuotes – Trading Report: Drawdown, accessed 25 September 2026.
  4. TradingView – Pine Script v6 User Manual: Strategies, accessed 25 September 2026.
  5. PineConnector – Analytics: Read the Performance Metrics, accessed 25 September 2026.
  6. TradingView – Profit Factor, accessed 25 September 2026.
  7. MetaQuotes – Trading Report, accessed 25 September 2026.
  8. PineConnector – Test Your Setup, accessed 25 September 2026.

PineConnector executes the instructions you send it. It does not select trades, manage money, or hold funds. Trading carries risk, and past performance of any strategy does not indicate future results.


Leave a comment

Back To PiCo Blog

Ready when your strategy is

You bring the strategy.We bring the infrastructure.

Connect TradingView to MetaTrader, choose where MT5 runs and put the full PineConnector workflow through its paces from your first month.

Strategy and trading decisions remain yours. The MT5 environment can be ours.

PineConnector Edge

Run the full PineConnector workflow.

$59/mo at launch

Core plan · 1 connection · 1 hosted MT5 environment

Try Core for $7

7 days of Core for $7, then $59/month at the launch price unless you cancel.