VALYNOX
VALYNOXSTRATEGY RESEARCH TECHNOLOGY
VALYNOXMultiAlphasMultiAlphas
ACADEMY / Backtesting and validation

Portfolio backtest: the combined drawdown is the one you live through

A portfolio backtest adds each strategy's daily profit and loss in one currency on one calendar, at the contract count you would trade, and measures the one account that holds them all. Its combined drawdown is the loss you would really sit through; adding up the members' drawdowns overstates it, and keeping only past winners flatters it.

By · Published · updated · Editorial policy

Contents
  1. What is a portfolio backtest?
  2. How do you backtest a portfolio of strategies?
  3. How do you combine strategy equity curves?
  4. How do you check correlation between strategies?
  5. How should you size each strategy in a portfolio?
  6. Why is the portfolio drawdown lower than the sum?
  7. How many strategies should a portfolio hold?
  8. Why does a portfolio of past winners lie?
  9. Frequently asked questions
  10. References

A portfolio backtest adds the daily profit and loss of every strategy you trade, in one currency and on one calendar, at the contract sizes you would really use, and measures the one account that holds them all. The drawdown of that combined account is the one you live through. Adding up the members' drawdowns overstates it, and keeping only past winners makes it look better than it is.

What is a portfolio backtest?

A portfolio backtest is a test that runs several strategies over the same history and reports the one account that holds all of them, and the number that matters in it is the combined drawdown. A drawdown is the fall of an account from its last high to its lowest point before a new high. An equity curve is the line of an account's running total of profit and loss over time. A portfolio backtester is the spreadsheet or program that does the addition and shows the combined curve.

Adding curves softens the dip: Strategy A dips while Strategy B rises on the same dates, so the portfolio curve, their day-by-day sum, has only a shallow dip Adding curves softens the dip Illustration: same days, summed Strategy A Strategy B Portfolio B gained while A lost. So: add daily P&L, not stats.
The portfolio curve is the daily sum of the individual curves. A dip in strategy A on days when strategy B rises becomes a smaller dip in the combined curve.

Think of a household with several incomes and one bank account. Each pay slip looks fine on its own. The overdraft happens on the shared account, in the month when two incomes dropped at once. Single-strategy reports are the pay slips. The portfolio backtest is the bank statement.

Three things stop you from reading the shared account out of single reports:

  1. Single reports do not share dates. A drawdown in report A and a drawdown in report B could be the same month or years apart. Only a shared calendar shows which.
  2. Single reports are at one contract each. You rarely trade every strategy at the same size, and the size decides how much each one can hurt the account.
  3. Single reports were chosen on the same history. A set of strategies that all look good on the same years was partly picked because those years suited them, so their past agreement is partly luck.

So test the strategies together on one calendar, size them from the combined result, and judge the portfolio by the combined drawdown. Adding up the worst drawdowns of the members overstates it, and a portfolio of past winners understates it. The free portfolio backtest tool combines futures and ETFs on one calendar and shows the combined drawdown, which is a quick way to see the gap between the two before you build anything yourself.

How do you backtest a portfolio of strategies?

You backtest a portfolio of strategies by putting every strategy's daily profit and loss in one currency on one shared calendar, with costs and your real contract count, and summing each row into a running total. A spreadsheet is enough for a first run: one column per strategy, one row per day, one column for the sum.

Six steps turn single-strategy reports into one portfolio equity curve: daily P&L with costs, your contract count, one calendar with no blanks, daily open equity, the same date range, and a running daily sum that becomes the portfolio curve Six steps to one curve Every step changes the drawdown 1 2 3 4 5 6 Daily P&L, with costs Your contract count One calendar, no blanks Daily open equity Same date range Running daily sum One curve
Six steps turn several single-strategy reports into one portfolio equity curve. Every step before the sum changes the drawdown you will read at the end.

Build it in this order:

  1. Get daily profit and loss for each strategy in money, with commission and slippage already inside. Costs added later change which strategies look worth holding. See how to model commission and slippage in backtests.
  2. Use the contract count you plan to trade for each strategy. One contract each is a starting point, not the portfolio.
  3. Put every strategy on one calendar. Every trading day gets a row, with no blanks, because a blank breaks the running total in most spreadsheets. A day is 0 only when the strategy held no position and had no trade or cost; a day it held a position without trading still records the change in open profit and loss. Date night-session trades to a trading day with the same rule for every strategy.
  4. Use daily open equity, not closed-trade equity. Closed-trade equity is a curve that changes only when a trade is closed, so it hides losses on positions that are still open. Daily open equity values each open position at the day's close, so losses that overlap show up on the day they happen.
  5. Use the same date range for all strategies. If one history starts later, start the portfolio on that date. Otherwise the early years show fewer strategies than the later ones, and the two parts of the curve are not comparable.
  6. Sum each row and keep a running total. The running total is the portfolio equity curve. The drawdown comes from it, not from the members.

One currency needs a sentence of its own. A strategy on TAIEX futures reports in New Taiwan dollars; a strategy on NQ reports in US dollars. Convert each day's profit and loss to the account currency before you add. Use the exchange rate of that day where you have it. If you use one fixed rate for the whole history, write it down, because a fixed rate hides currency moves that a real account feels on the day it is funded or withdrawn.

The calendar rule matters more than it looks. A strategy on US index futures and a strategy on TAIEX futures can register the same global sell-off on different dates: one on the US session, the other on the Asian session that follows. If each strategy keeps its own calendar, the two losses appear to be a day apart and the combined dip looks milder than it was. One shared calendar with a fixed dating rule puts them on the days they really hit the account.

How do you combine strategy equity curves?

You combine equity curves by adding money profit and loss day by day, because averaging Sharpe ratios or adding maximum drawdowns mixes numbers from different days and gives a wrong portfolio figure. The portfolio curve is nothing more than the daily sum of the member curves. When one strategy loses on a day another gains, the combined dip is shallower than either alone.

Three shortcuts look like combining and are not:

ShortcutWhy it failsWhat to do instead
Adding maximum drawdownsEach strategy's worst period happened on different dates; the sum describes a day that never existedTake the drawdown from the summed daily curve
Averaging Sharpe ratiosThe Sharpe ratio is a strategy's average return divided by how much its returns swing; an average of two Sharpe ratios ignores whether the two swing togetherCompute the Sharpe ratio once, from the portfolio's own daily results
Adding percentage returnsA strategy has no account of its own, so the percentage is of an invented capital; two strategies at different invented capitals cannot be addedAdd money profit and loss at the contract counts you trade

The money rule has a practical side. Profit and loss in money is what your broker statement shows, so the portfolio curve you build can later be checked against the real account line by line. A curve in percent cannot. For what each summary number in a report means before you combine anything, see how to read a backtest report.

Hypothetical example

On Monday strategy A loses 400 and strategy B gains 300, so the portfolio row is −100. On Tuesday A gains 200 and B loses 500, so the row is −300. On Wednesday both gain 150, so the row is +300. The portfolio running total goes −100, −400, −100. Strategy A alone went −400, −200, −50 and strategy B alone went +300, −200, −50. The portfolio's low of −400 is the only figure of the three that describes the account you fund.

How do you check correlation between strategies?

Check strategy correlation on daily or weekly profit and loss, not on rising equity curves, and then check directly whether the worst drawdowns overlap, because a correlation measured on mostly quiet days tends to rise exactly in a crash. Correlation is a number from −1 to +1 that shows how closely two series move together: +1 means they always move the same way, 0 means no straight-line relation, −1 means they always move opposite ways. Two rising equity curves always look correlated, even when their daily results are unrelated, so the equity curves are the wrong input.

Daily profit and loss is the standard input. Weekly profit and loss is a useful second view when strategies trade in different time zones, because a move that one strategy books on Monday and another on Tuesday counts as the same week. Use the whole history for the number; a correlation computed on a few weeks swings around and tells you little.

A correlation scale from minus 1 to plus 1 in four bands: below 0 tends to offset, so check the hedge cost; around 0 is independent and diversifies; 0.3 to 0.6 is partly the same bet, so check overlap of worst periods; above 0.6 is the same bet, so size the pair as one What each correlation means Daily P&L, rough habits, not laws −1 0 0.3 0.6 +1 < 0 ≈ 0 0.3–0.6 > 0.6 Offsets Independent Partly same Same bet Check its cost Diversifies Check overlap Size as one
Rough reading of a daily P&L correlation and the action at each level. The bands are habits of practice, not laws.
Daily P&L correlationRough readingWhat to do
Above about 0.6Mostly the same betTreat the pair as one strategy when sizing
About 0.3 to 0.6Partly the same betCheck whether the worst periods overlap
Around 0Mostly independentGood diversifier if both have a real edge
NegativeTends to offsetCheck that it is not one strategy hedging the other at a cost

One correlation number hides the days you care about. It is computed over all days, and most days are quiet. Two strategies can be unrelated on quiet days and lose together on the few days that move the market hard. Think of two ice-cream stands on the same beach: different owners, different flavours, but one rainy week empties both.

Illustrative scatter of daily P&L of strategy A against strategy B: a dense cloud of small quiet-day points near zero keeps the all-days correlation near 0, while a few large stress-day points in the lower-left corner show both strategies losing together Stress days lose together Daily P&L, A against B Illustration Strategy A Strategy B Quiet days Stress days All days: near 0. Stress: high. So: check the worst days alone.
The dense cloud of quiet days sets the all-days correlation near zero. The few stress days in the lower-left corner are where both strategies lose, and they decide the portfolio drawdown.

Why does correlation rise in a crash? In a sharp sell-off most markets move in one direction at once and volatility jumps. Two trend strategies on ES and NQ are hit by the same reversal, because these two stock index futures usually move together. Two mean-reversion strategies on different markets are stopped out by the same wide move. Strategies that looked independent on ordinary days then lose on the same day, and the diversification you measured is gone in the week you needed it. The idea that a portfolio's risk depends on how its members move together, and not only on each member's own risk, goes back to Markowitz (1952).

So check the overlap directly, in three steps:

  1. List the three worst drawdowns of each strategy, with start and end dates.
  2. Mark which of them fall in the same weeks.
  3. Compute the correlation again using only the portfolio's worst months. If it rises sharply, the pair is one bet under stress, whatever the all-days number says.
Same bad weeks, deeper fall: two strategies each have a 10k drawdown; when the drawdowns fall in the same weeks the portfolio drawdown is about 20k, when they fall in different weeks it is about 10k Same bad weeks, deeper fall Red bars: −10k drawdown each Same weeks Different weeks A B A B Portfolio −20k Portfolio −10k Timing sets the depth. So: check if bad weeks overlap.
The same two individual drawdowns. When they coincide (left) the portfolio drawdown is deep; when they fall in different periods (right) it is shallow.

How should you size each strategy in a portfolio?

Size each strategy so that its bad period costs about the same money, because giving every strategy the same number of contracts lets the most volatile one decide the whole result. Position sizing is the choice of how many contracts each strategy trades. Capital allocation is the share of the account's risk each strategy may use.

MethodHow it worksEffect
Equal contractsOne contract per strategyThe most volatile market drives the result
Equal capitalSame account share per strategySimple, but ignores how much each strategy swings
Equal riskContracts scaled so each strategy's bad period costs about the sameEach strategy carries a similar share of the risk

A simple equal-risk rule uses the worst drawdown per contract:

Contracts = risk budget ÷ worst drawdown per contract

The risk budget is the money you accept losing on that strategy in a bad period. The worst drawdown per contract is the largest peak-to-low loss the strategy had in the backtest while trading one contract. Round the result down to a whole number; a result below 1 means the strategy is too large for that budget at the smallest contract available.

Hypothetical example

An account of 100,000 sets a risk budget of 5,000 per strategy. Strategy A trades a full-size contract with a worst drawdown of 5,000 per contract, so it gets 1 contract. Strategy B trades a micro contract with a worst drawdown of 500 per contract, so it gets 10 contracts. With equal contracts, A's bad period would have been ten times B's and the portfolio drawdown would simply be A's. With equal risk, both strategies now carry about the same money risk, and the portfolio drawdown depends on whether their bad periods overlap.

Hypothetical worst drawdowns: with equal contracts, strategy A at 1 full-size contract loses 5,000 and strategy B at 1 micro contract loses 500, so A dominates; with equal risk and a 5,000 budget, A stays at 1 contract and B gets 10 micro contracts, so both bad periods cost about 5,000 Size by risk, not contracts Worst drawdown, hypothetical Equal contracts Equal risk 5,000 500 5,000 5,000 A ×1 B ×1 A ×1 B ×10 Same contracts: A dominates. So: give each the same risk.
Equal contracts (left) lets strategy A dominate. Equal risk (right) scales strategy B to 10 micro contracts so each strategy's bad period costs about the same money.

Three practical points make the rule usable:

  • Plan for a deeper drawdown than the backtest shows. A common practice is to use 1.5 to 2 times the historical worst drawdown as the planning figure, because the worst period of the future has not happened yet. In the example that means budgeting strategy A at one and a half to two times its reported worst drawdown, per contract.
  • Check margin on the days when every strategy holds a position. Add up the margin your broker charges today for all positions that are open on the same day in the backtest, at the planned contract counts. Exchanges change margin levels, so read the figure from the exchange's contract page; for TX, MTX and TMF the free TAIEX futures margin calculator shows the margin per contract.
  • Keep the size fixed during the test. Compounding mixes the sizing rule into the result and makes the strategies hard to compare. Test fixed sizes first, then add a sizing rule as a separate step and compare the two curves.

Correlated pairs get one budget, not two. If two strategies read as mostly the same bet in the correlation check, size the pair with a single risk budget and split it between them. Otherwise the pair takes two budgets and carries two shares of the risk in the week they lose together.

Why is the portfolio drawdown lower than the sum?

With fixed sizes the combined drawdown can never exceed the sum of the individual worst drawdowns, and it only reaches that sum when every strategy's worst period lines up on the same dates. On every other arrangement of the calendar, a gain somewhere fills part of a loss elsewhere, and the combined fall is smaller. The gap between the two numbers is the protection diversification gave you.

Hypothetical example

Strategy A and strategy B each have a worst drawdown of 10,000. If both drawdowns happened in the same months, the portfolio drawdown is about 20,000 and the second strategy added no protection. If A's drawdown came in one year and B's in another, while the other strategy was gaining, the portfolio drawdown can be far below 20,000, often close to or below 10,000.

A measured run shows the size of this gap on real data. Five markets were named before any result was seen, one simple long-only breakout rule with one parameter set was applied to each, and their month-end equity was added on one calendar at one contract each.

Source: MultiAlphas (Valynox) hosted backtest (ap_backtest connector), run 2026-10-31

MarketResult at the end (open position included)Month-end max drawdown
NQ$122,450$71,435
GC$230,186$48,053
CL−$27,817$74,068
ZN−$80,205$80,205
6E−$36,970$43,344
All five together$207,642$67,194
Drawdowns simply added up$317,107

Average correlation of monthly results across the ten pairs: 0.06. Three of the five lost money. In hindsight GC alone did better than the five together; nobody knew that in 2018.

Month-end drawdown, one contract each, 2018-09 to 2026-10.
Month-end drawdown, one contract each, 2018-09 to 2026-10. NQ, GC, CL, ZN, 6E · 60-minute · 2018-09-02 to 2026-10-14 · MultiAlphas backtest

Read the three drawdown figures together. The five drawdowns added up come to $317,107. The five markets traded together had a month-end drawdown of $67,194. That is less than a quarter of the sum, and it is even below the worst single market, ZN at $80,205. The bad months of the five markets did not line up, so gains in one market filled part of the losses in another. Their monthly correlation sits in the "mostly independent" band of the table above, which is the reading to look for when you check your own members.

The run also shows why single reports mislead in the other direction. Three of the five markets lost money over the period. A trader who kept only the past winners would have dropped CL, ZN and 6E, yet those three were part of the calendar that kept the combined drawdown low in the months when NQ and GC were falling. So fix the members before you test, because GC's lead over the five together only shows in hindsight.

What this run lets you see. It shows the arithmetic of combining on one calendar: the gap between the sum of the members' drawdowns and the drawdown of the shared account, on real prices with each market's own commission and slippage, with the markets named before any result. It is month-end equity, so dips inside a month are not in the figures. It is one contract per market, which is equal contracts, not equal risk. It is one simple rule with one parameter set, so read it for how the drawdowns of different markets overlap in one account, then run the same test on your own members to see their gap.

Once you have the combined curve, five checks tell you whether you could live with it:

Five checks on a portfolio report with a stronger and a weaker result: worst drawdown bearable or too deep, recovery in months or years, drawdown far below or about equal to the sum, bad months small and spread or a few huge, and several strategies earning or just one Can you live with it? Five checks on the combined curve Check Stronger Weaker Drawdown Recovery Vs. the sum Bad months Who earns Bearable Months Far below Small, spread Several Too deep Years About equal A few huge Just one
Five checks on a portfolio report, with what a stronger and a weaker result look like for each.
CheckWhat to look atStronger resultWeaker result
Worst drawdownIn money and as a share of the accountA size you would keep trading throughA size that would make you stop
Recovery timeLongest time without a new highMonthsYears
DiversificationPortfolio worst drawdown vs. the sum of individual worst drawdownsClearly smaller than the sumClose to the sum
Monthly tableShare of losing months, worst monthLosses spread out and modestA few very large losing months
ContributionEach strategy's share of the total profitSeveral strategies contributeOne strategy carries everything

Drawdown duration is the time from the high before a drawdown until the curve makes a new high, and it is often harder to sit through than the depth. The free drawdown calculator turns the worst drawdown into the gain needed to get back to the old high, which shows how heavy a deep portfolio dip really is. The order of the months in a backtest is one draw of many; a Monte Carlo backtest reshuffles the same results to show how wide the range of drawdowns could have been with a different order.

Review each member on its own before you line them up, because the contribution check only makes sense when you know what each strategy did by month. In MultiAlphas, the Performance Report lays out equity, drawdown, trades and periodic performance for each strategy, with long and short analysis, so the months a member lost are visible before you add it to the others.

How many strategies should a portfolio hold?

There is no fixed number, because a new strategy earns its place only if it loses at different times from the ones you already hold, and a strategy that trades the same market with similar logic adds contracts and margin but little protection. The question to ask of each candidate is not "is it good?" but "does the combined drawdown fall when it is added at its planned size?"

A timeline of the current portfolio's drawdown weeks with two candidates below: candidate X has its drawdowns in the same weeks and only adds margin, candidate Y has its drawdowns in other weeks and lowers the combined drawdown Add what loses at other times Red marks the drawdown weeks Portfolio Candidate X Candidate Y Adds margin only Lowers the drawdown
Candidate X loses in the same weeks as the portfolio and adds only margin. Candidate Y loses in other weeks and lowers the combined drawdown.

Test a candidate in this order:

  1. Run the current portfolio and note its worst drawdown, recovery time and total result.
  2. Add the candidate at the contract count its risk budget gives it, on the same calendar and date range.
  3. Run the portfolio again. A lower worst drawdown with a similar or higher result means the candidate protected the account. A deeper drawdown, or the same drawdown with more margin in use, means it added a bet you already had.
  4. Repeat the overlap check: list the candidate's three worst drawdowns and mark which fall in the portfolio's worst weeks.

Two kinds of candidate deserve a closer look before they enter. A second strategy on the same market with similar logic, for example two breakout rules on NQ with different lookback lengths, enters and exits on nearly the same days; it doubles the contracts and the margin on that market without changing the shape of the drawdown. A strategy with the same logic on a closely related market, such as a trend rule on ES next to one on NQ, is a milder version of the same problem: the two markets often move together, and a reversal hits both.

The useful additions are usually a different market, a different holding time, or a different kind of rule. A strategy that holds for days next to one that closes every session, or a mean-reversion rule next to a trend rule, tends to lose in different weeks. Whether it really does is something the overlap check decides, not the label.

There are also plain practical limits. Every strategy needs its own data, its own cost model and its own place in your routine, and the number of pairs to check grows faster than the number of strategies: 10 strategies have 45 pairs. Margin on the day when every member holds a position sets a hard ceiling on size. Many traders find that a handful of strategies that lose at different times gives most of the diversification they can measure, and that the next additions mostly add work.

Why does a portfolio of past winners lie?

A portfolio of past winners lies because picking the members, their sizes and the combination for their best past results adds a second layer of selection bias on top of each strategy's own overfitting. Overfitting is fitting rules to random noise in past data, so that the backtest looks better than the method really is. Selection bias is the inflation that comes from keeping the best of many tries. In-sample data is the history used to choose or tune something; out-of-sample data is history that choice never saw.

Each strategy in your databank was chosen because its backtest looked good. Selecting the best of many backtests raises the in-sample result while the out-of-sample result tends to fall behind (Bailey et al., 2014). The portfolio step repeats the same mistake at a higher level. Choosing 5 strategies out of 50 because their past correlations were lowest means searching more than two million possible groups of five and keeping the luckiest one. Low correlation measured on the same history is part of that luck, and so is the combination that happened to have the smallest combined drawdown. For the research behind this, see why the best backtest is usually inflated.

A more honest portfolio test follows a fixed order:

  1. Split the history into a selection period and a later holdout period.
  2. Choose strategies, sizes and the combination rule using only the selection period. Write the rule down before you look further.
  3. Run the fixed portfolio on the holdout period without changing anything.
  4. Use out-of-sample segments as inputs where you can. Each strategy's joined out-of-sample curve from walk-forward analysis is a fairer input than its full in-sample curve.
  5. Compare holdout drawdown and correlation with the selection period. A somewhat deeper drawdown and a higher correlation in the holdout are normal. A collapse means the portfolio was fitted, not built.
Choose first, then lock it: a timeline with a selection period covering about 70 percent of the history, where strategies, sizes and the rule are chosen, a lock at the boundary, and a holdout period covering the last 30 percent where the fixed portfolio runs with no changes Choose first, then lock it Test the fixed portfolio later Selection Holdout Pick strategies, sizes, rule No changes The holdout tests what you fixed. So: write the rule down first.
Choose and lock members, sizes and the combination rule on the selection period, then run the fixed portfolio unchanged on the later holdout period.

Record how many candidates you tried, because that count tells you how much selection bias to expect in the result. The strategy databank in MultiAlphas keeps results organized for review, with search and sort, classification, batch management and revalidation, so the strategies behind a portfolio are easy to find again. Write the number of candidates you tried next to the portfolio before you forget it. Each member can also pass strategy validation, including walk-forward analysis, before it is considered for the portfolio at all, which removes the weakest candidates before the combination step sees them.

The five-market run above followed the first half of this discipline: the markets and the rule were named before any result was seen, and nothing was dropped afterwards. That is why its three losing markets are still in the table. A portfolio that shows only winners has already thrown away the information you needed.

Frequently asked questions

Can I run a portfolio backtest for free?

Yes. A spreadsheet is enough. Put each strategy's daily profit and loss in money in its own column, give every trading day a row (0 only on days with no position and no trade; a day with an open position records the change in its open profit and loss), sum each row and keep a running total. For the drawdown, add a column with the highest running total so far, subtract it from the current total, and take the most negative value.

Is the portfolio drawdown the sum of the strategies' drawdowns?

Only when every strategy's worst period happens at exactly the same time. With fixed sizes the portfolio's worst drawdown is never larger than that sum and is usually much smaller. In the five-market run in this article the sum was $317,107 and the combined drawdown was $67,194.

What strategy correlation is low enough for a portfolio?

As a rough reading, a daily profit-and-loss correlation below about 0.3 is often treated as low. The number alone is not enough, because correlation tends to rise in stressed markets when most instruments move together. Also list each strategy's worst drawdowns and check whether they fall in the same weeks.

Should a portfolio backtest use closed-trade equity or daily equity?

Use daily open equity, which values open positions at each day's close. Closed-trade equity only moves when trades close, so it hides losses on open positions and can make overlapping drawdowns look smaller than they were. Daily equity shows the loss on the day the account felt it.

How do I size strategies with different contract values in one portfolio?

Give each strategy a risk budget in money and divide it by that strategy's worst drawdown per contract, rounding down. A micro contract with a small drawdown per contract gets more contracts, a full-size contract with a large drawdown gets fewer, and each strategy's bad period then costs about the same. A common practice is to plan with 1.5 to 2 times the historical drawdown; also check margin on the days when every strategy holds a position.

References

  • Markowitz, H. (1952). Portfolio Selection. The Journal of Finance, 7(1), 77–91.
  • Bailey, D. H., Borwein, J., López de Prado, M., & Zhu, Q. J. (2014). Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance. Notices of the American Mathematical Society, 61(5), 458–471.