← All articles

Combining trading strategies: drawdown and shared capital

Align trading losses before combining strategies, then check simultaneous positions, idle cash, sizing, and a real SPY–QQQ shared account.

Strategy methodsPublished By Stratifyre

Topics

Portfolio backtestingDrawdownPosition sizing

Two backtests can finish above their starting balances and still lose together. Different tickers, indicators, or strategy names do not tell you whether their bad periods overlap. Before combining trading strategies, put their account histories on the same calendar and specify how they will share capital.

This example uses executed SPY and QQQ moving-average histories, an author-calculated equal-capital blend, and a new Stratifyre backtest applying one rule to both ETFs in a shared account. The blend and the shared-account run answer different questions; neither demonstrates merging two separately saved strategies into a native portfolio.

Align losses before adding returns

SPY targets the S&P 500’s large-cap U.S. equity exposure; QQQ tracks the Nasdaq-100’s largest non-financial Nasdaq companies. Those objectives give a reason to investigate common equity exposure, rather than assume two tickers diversify each other. They do not establish this strategy’s historical correlation. State Street’s SPY description, Invesco’s QQQ description.

The retained individual runs used the same long/cash rule: buy while flat when the daily close exceeds its 200-bar simple moving average; flatten when the close is at or below that average. Each independent account started with $10,000 and requested whole shares using floor(account.balance * 0.95 / bar.close).

Both ran from January 2, 2024 through June 30, 2025 with daily regular-session data, saved On-Open execution, pessimistic fill settings, a $1 equity-order fee input, and 0.05% equity slippage. Shorts, tax, and end-of-test flattening were disabled. These are recorded historical configurations, not independently certified execution models.

Executed SPY account summary showing 4.3 percent total return, negative realized P&L, and 6.9 percent maximum drawdown
Actual independent SPY report for the stated daily window. Positive total account return coexists with negative closed-trade P&L. Open full-size capture.
Executed QQQ account summary showing 8.4 percent total return and 8.0 percent maximum drawdown
Actual independent QQQ report, using the same dates and cost inputs. Its ending gain does not establish independence from SPY. Open full-size capture.

The two full equity histories contain 374 identical observation timestamps. Calculating consecutive account returns on those dates produced a correlation of 0.9214, with 47 jointly negative observations out of 373 return intervals. Each account had 55 negative intervals. The analysis includes flat periods: both accounts were in cash on 241 observations and both held investments on 129.

These are changes in marked account equity, including idle cash and returned costs, rather than correlation between closed-trade outcomes. A positive QQQ closed trade can still fall sharply from an earlier account peak.

Calculate the combined path, then its drawdown

For a $10,000 account notionally divided equally between independent sleeves, the author calculation is:

Combined equity(t) = 0.5 × SPY equity(t) + 0.5 × QQQ equity(t)
Drawdown(t) = (highest combined equity so far − current equity)
/ highest combined equity so far

Adding the two unscaled $10,000 accounts would describe $20,000 of starting capital. The equal-capital calculation preserves a $10,000 starting value. It does not re-execute half-sized orders: fractional scaling of whole shares and fixed $1 fees makes it an analytical approximation to separate $5,000 sleeves.

History Ending marked equity Return Maximum observed drawdown
Independent SPY $10,429.60 4.30% 6.94%
Independent QQQ $10,835.43 8.35% 8.04%
Equal-capital author blend $10,632.52 6.33% 7.50%
Executed shared account $10,627.48 6.27% 7.31%

The blend peaked on February 19, 2025 and reached its largest drawdown on March 10. QQQ’s individual trough occurred earlier, on March 6. Averaging the individual maximum drawdown percentages discards that timing; calculate drawdown from the combined path itself.

Author-created analysis from executed histories, not a native portfolio-comparison report. Displayed points are month-end observations plus the start, first invested observation, and drawdown peaks/troughs; statistics use all 374 aligned observations. Connecting lines do not add intraday observations.
View example data
UTC dateSPYQQQAuthor blendShared account
2024-01-0210000.0010000.0010000.0010000.00
2024-01-3110000.0010000.0010000.0010000.00
2024-02-2910000.0010000.0010000.0010000.00
2024-03-2810000.0010000.0010000.0010000.00
2024-04-3010000.0010000.0010000.0010000.00
2024-05-3110000.0010000.0010000.0010000.00
2024-06-2810000.0010000.0010000.0010000.00
2024-07-3110000.0010000.0010000.0010000.00
2024-08-3010000.0010000.0010000.0010000.00
2024-09-3010000.0010000.0010000.0010000.00
2024-10-1610033.729990.5310012.1310011.35
2024-10-319814.369857.159835.769838.49
2024-11-2910363.8010350.2010357.0010346.76
2024-12-3110093.7210376.0410234.8810223.96
2025-01-3110346.3610586.3710466.3710449.91
2025-02-1910523.9610914.6910719.3310694.23
2025-02-2810222.6810319.2310270.9610261.53
2025-03-069882.3610037.479959.929957.38
2025-03-109793.3010037.479915.399912.35
2025-03-319852.6910037.479945.089941.04
2025-04-309852.6910037.479945.089941.04
2025-05-309974.7210251.1510112.9410107.90
2025-06-3010429.6010835.4310632.5210627.48

Execute and inspect the allocation policy

For portfolio backtesting without coding, distinguish selecting multiple symbols from combining saved strategies. This demonstration selected SPY and QQQ in one strategy and applied the same rule independently to each symbol within one account.

The new entry quantity was:

floor(min(account.balance * 0.95, 4700) / bar.close)

This caps requested signal-price notional at $4,700 per entry and rounds down to whole shares. The inspected runtime maps account.balance to the portfolio’s ledger balance, updated for realized P&L and fees; it records actual uninvested cash separately. Both symbols can read the same account snapshot before fills, so the expression does not establish quantity reduction when available cash is scarce or guarantee that orders will be admitted.

With two positions, the intended initial allocation leaves a nominal $600 reserve before rounding, costs, and price differences. That is a budget assumption, rather than an enforced cash reserve, a $4,700 loss limit, or a continuously maintained 47% portfolio weight. Positions can grow, and fill prices can differ from the price used for sizing.

Actual saved multi-symbol SMA200 entry rule with a flat-position condition and account.balance-based sizing capped at 4700 dollars of signal-price notional
Actual saved entry rule for the executed shared account. The advanced quantity field records an account.balance-based sizing expression and $4,700 signal-notional cap; available-cash admission behavior is untested. Open full-size capture.
Actual shared backtest settings showing ten thousand dollars, daily interval, stated dates, On-Open execution, and no final flatten
Actual configuration of the completed SPY–QQQ shared account; interval, dates, capital, and execution settings match the comparison. Open full-size capture.

The first recorded entries occurred together on October 16, 2024: eight SPY shares and nine QQQ shares. Their returned entry prices imply $9,063.01 spent on shares; the cash history shows $934.99 remaining, reconciling the additional $2 to two $1 entry charges. Cash was available for both orders in this run, so it does not demonstrate which signal wins when funds are insufficient.

After QQQ exited on March 6 and SPY on March 10, cash was $9,912.35. The pair’s gross closed P&L was −$83.65; four $1 entry/exit charges reconcile the $87.65 account loss. Costs remain in the path even when the account is flat.

Read holdings and cash alongside closed trades

Actual completed shared account summary displaying 6.3 percent total return, negative 52.96 dollars realized P&L, and 7.3 percent maximum drawdown
Actual shared-account report: positive marked total return, negative closed-trade P&L, and substantial drawdown. Displayed values are rounded. Open full-size capture.

The shared account ended with $719.52 cash plus $9,907.96 holdings = $10,627.48 equity. Three closed trades contributed approximately −$52.96 gross P&L; remaining investments contributed to the marked ending value. No terminal liquidation was requested, so this ending equity is not an all-cash balance after selling everything and paying exit costs.

The returned job record reports unrealized P&L as zero despite the curve’s holdings and marked equity. This comparison uses the retained equity/cash/holdings history and report, rather than treating that job field as a reconciled account total.

Cash averaged $6,796.69 across the 374 shared-account observations, while the highest recorded gross exposure was 93.23% of equity. The long cash periods matter as much as the two tickers. The first 199 observations were flat even though pre-window daily history was available; availability does not prove that the engine used it to warm the indicator. Correlation and exposure figures therefore describe this returned path, including that initial cash period.

Keep the conclusion within the experiment

The observations carry one regular-session timestamp per date, at 14:30 UTC in winter and 13:30 UTC in summer. They do not establish closing-equity or intraday worst-case drawdown. Saved On-Open settings alone also do not prove that every signal used a completed close before a later opening fill. Causal timing, warmup consumption, and complete dividend/adjustment accounting were not independently certified here.

SPY and QQQ were selected because matching executed histories were retained; there was no optimizer or search for an attractive portfolio result. This pair applies one rule to two equity exposures, so it does not establish behavior for unrelated strategies, futures margins, short borrowing, or future losses. The small difference between the author blend and native account reflects different allocation and whole-share sizing; it is not evidence of a diversification edge.

Start with two instruments and explicit per-entry allocation in the multi-instrument strategy guide. Verify the chosen sizing variable’s meaning, then inspect returned cash, simultaneous holdings, any rejected orders, and the combined equity path before adding more symbols; the ETF trend-filter example supplies the individual-rule context, and position-sizing comparisons explain why allocation and loss budgets differ.

Put your strategy rules to the test

Build your strategy, inspect historical trades, and review the assumptions behind your results.

Build and test your strategy