What to Examine Before Returns: Loss Paths and Trading Costs
Equal final returns do not imply equal losses along the way. One backtest may concentrate losses consecutively; another may recover between them. Equal gross results can also leave different net wealth when trading amounts and cost assumptions differ.
This article calculates two separate synthetic examples:
| Example | Question | Inputs |
|---|---|---|
| Loss paths | What changes when identical returns occur in a different order? | Two fictional six-month paths |
| Cost sensitivity | What remains as cost burdens increase on identical gross returns? | Twelve fictional monthly returns and traded-notional ratios |
These are different inputs, not strategies to rank together in one table. All numbers are illustrative, not measured real-world performance or trading costs.
1. Return order changes drawdown
Both paths contain the same six returns in a different order.
| Month | A return | A wealth | B return | B wealth |
|---|---|---|---|---|
| Start | — | 100.0000 | — | 100.0000 |
| 1 | +10% | 110.0000 | +7% | 107.0000 |
| 2 | +8% | 118.8000 | +8% | 115.5600 |
| 3 | -12% | 104.5440 | -12% | 101.6928 |
| 4 | -8% | 96.1805 | +6% | 107.7944 |
| 5 | +7% | 102.9131 | +10% | 118.5738 |
| 6 | +6% | 109.0879 | -8% | 109.0879 |
Next wealth = current wealth × (1 + period return)Multiplication is order-independent, so both end at 109.0879…, a cumulative return of about 9.0879%. A's consecutive -12% and -8% produce this decline from month 2 to month 4:
(1 - 0.12) × (1 - 0.08) - 1= -19.04%B has gains between its losses and a maximum drawdown of -12%. Drawdowns are shown as negative values:
Drawdown at a time = current wealth / highest wealth observed so far - 1Maximum drawdown = minimum of those drawdownsInclude starting wealth 100 in the running peak; otherwise a first-period loss can be missed.
| Metric | A | B |
|---|---|---|
| Six-month cumulative return | 9.0879% | 9.0879% |
| Mean monthly return | 1.8333% | 1.8333% |
| Monthly sample standard deviation | 9.3470% | 9.3470% |
| Month-end maximum drawdown | -19.0400% | -12.0000% |
Reordering leaves the mean and standard deviation unchanged. Drawdown depends on which losses follow a peak.
2. Read drawdown depth and recovery separately
Maximum drawdown measures the deepest decline, not the recovery date. Here recovery means the first observation reaching or exceeding the peak associated with that maximum drawdown.
| Item | A | B |
|---|---|---|
| Relevant peak | Month 2, 118.8000 | Month 2, 115.5600 |
| Trough | Month 4, 96.1805 | Month 3, 101.6928 |
| Recovery of that peak | Not recovered by month 6 | Recovered in month 5 |
| Status at evaluation end | Below the earlier peak | Down another 8% from month 5's new peak |
B recovering in month 5 does not mean it ends at a peak: it loses 8% in month 6. Distinguish having recovered once from having no drawdown at the final observation.
A's non-recovery is limited to the observed period; these six returns cannot establish whether or when it later recovers. These are month-end observations; no intramonth path exists to assess deeper intramonth declines.
3. Equal Sharpe ratios can accompany different loss paths
The sample Sharpe ratio divides the mean differential return over a comparison return by its standard deviation. William F. Sharpe, The Sharpe Ratio
With a monthly comparison return of zero:
Monthly sample Sharpe= mean monthly return / monthly sample standard deviation≈ 0.196141Both paths have the same value because their return samples match. The calculation is not wrong; mean and standard deviation simply do not identify return order.
This six-month illustration is not annualized into a larger performance figure. Compare the monthly summary and observed drawdown directly. Cumulative return measures start-to-end change, standard deviation dispersion, maximum drawdown peak-to-trough depth, and recovery whether the relevant peak was regained. None answers all the other questions.
4. State what the cost example holds fixed
Use a separate twelve-month input:
| Month | Gross return | Traded-notional ratio T_t |
|---|---|---|
| 1 | +2.5% | 1 |
| 2 | -1.5% | 0 |
| 3 | +3.0% | 1 |
| 4 | +1.0% | 1 |
| 5 | -2.0% | 0 |
| 6 | +4.0% | 1 |
| 7 | -1.0% | 1 |
| 8 | +2.0% | 0 |
| 9 | +1.5% | 1 |
| 10 | -2.5% | 1 |
| 11 | +3.5% | 1 |
| 12 | +1.0% | 1 |
T_t = total monthly purchase and sale notional / beginning-of-month wealthT_t=1 means aggregate notional equals opening wealth, not one order or full investment in a particular security.
Returns and trading ratios are independently specified sensitivity inputs, not generated from prices and position quantities. They do not validate consistency among signals, positions, and trades.
| Item | Assumption |
|---|---|
| Starting wealth | 100 |
| Period | Twelve monthly observations |
| Cost rates | 0, 5, 10, and 20 bp of traded notional |
| Purchases/sales | Same rate on their combined notional |
| Initial entry | Assumed included in month 1's ratio of 1 |
| Deduction | Each month's aggregate cost deducted at month-end |
| Final liquidation | No separate final liquidation cost |
| External flows | None |
Month-end deduction is a simplification, not the same as quantity accounting that reserves cost cash at purchase.
For opening wealth V_(t-1), gross return r_t, and rate c:
Monthly cost = opening wealth × trading ratio × cost rateClosing wealth = opening wealth × (1 + gross return) - monthly cost = opening wealth × (1 + r_t - cT_t)Thus net monthly return under these assumptions is r_t - cT_t. Direct quantity/cash/buy/sell accounting is covered in the synthetic portfolio accounting article.
5. Do not subtract costs just once from the final return
| Cost per notional | Ending value | Twelve-month cumulative return | Month-end maximum drawdown | Total cost amount |
|---|---|---|---|---|
| 0 bp | 111.826790 | 11.8268% | -2.5000% | 0.000000 |
| 5 bp | 111.331515 | 11.3315% | -2.5500% | 0.474270 |
| 10 bp | 110.838192 | 10.8382% | -2.6000% | 0.946641 |
| 20 bp | 109.857370 | 9.8574% | -2.7000% | 1.885713 |
For this input, higher rates reduce ending wealth and deepen drawdown. This does not establish an identical drawdown change for other paths.
Trading ratios sum to 9, but total 10 bp cost is not simply:
100 × 0.001 × 9 = 0.9Each charge uses that month's opening wealth, not initial wealth 100. Total cost is approximately 0.946641.
Nor does the difference in ending wealth equal the sum of charges:
Cost-free ending wealth - 10 bp ending wealth ≈ 0.988598Sum of amounts actually deducted ≈ 0.946641Earlier deductions change the base to which subsequent gains and losses apply. Distinguish one final subtraction from period-by-period deductions and wealth updates. The table excludes separate final liquidation charges; match ending treatment before comparing it with liquidated results.
6. Reproduce the calculations
The code uses only the standard library. Wealth and drawdowns use fractions; standard deviation and display values use decimals. statistics.stdev() calculates sample standard deviation, here on monthly observations without annualization. Python documentation
from fractions import Fraction as Ffrom statistics import mean, stdevdef equity(returns): wealth = [F(100)] for r in returns: if r <= -1: raise ValueError( "this example requires return > -100%" ) wealth.append(wealth[-1] * (1 + r)) return wealthdef drawdowns(wealth): peak = wealth[0] result = [] for value in wealth: peak = max(peak, value) result.append(value / peak - 1) return resultdef summary(returns): wealth = equity(returns) dd = drawdowns(wealth) return ( wealth[-1], wealth[-1] / wealth[0] - 1, min(dd), )Same return sample, different drawdowns
a = tuple( F(x, 100) for x in (10, 8, -12, -8, 7, 6))b = tuple( F(x, 100) for x in (7, 8, -12, 6, 10, -8))assert sorted(a) == sorted(b)wa = equity(a)wb = equity(b)assert wa[-1] == wb[-1]assert mean(a) == mean(b)assert stdev(a) == stdev(b)assert min(drawdowns(wa)) == F(-119, 625) # -19.04%assert min(drawdowns(wb)) == F(-3, 25) # -12%# A는 2개월 말 고점을 종료까지 회복하지 못한다.assert all(value < wa[2] for value in wa[3:])# B는 3·4개월 말에는 미회복, 5개월 말에 회복한다.assert wb[3] < wb[2]assert wb[4] < wb[2]assert wb[5] >= wb[2]# 이후 6개월 말에는 새 고점 아래로 다시 내려온다.assert wb[6] < wb[5]for name, returns in (("A", a), ("B", b)): end, total, mdd = summary(returns) print( name, f"total={float(total):.4%}", f"mean={float(mean(returns)):.4%}", f"std={stdev(returns):.4%}", f"MDD={float(mdd):.4%}", )Output:
A total=9.0879% mean=1.8333% std=9.3470% MDD=-19.0400%B total=9.0879% mean=1.8333% std=9.3470% MDD=-12.0000%Monthly costs and ending wealth
gross = tuple( F(x, 1000) for x in ( 25, -15, 30, 10, -20, 40, -10, 20, 15, -25, 35, 10, ))trade_ratio = ( 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1,)assert len(gross) == len(trade_ratio) == 12assert sum(trade_ratio) == 9print("BP | END | RETURN | MDD | TOTAL_FEES")previous_end = Nonefor bp in (0, 5, 10, 20): c = F(bp, 10000) net = tuple( r - c * t for r, t in zip(gross, trade_ratio) ) wealth = equity(net) fees = tuple( wealth[i] * c * t for i, t in enumerate(trade_ratio) ) # 각 월의 비용이 해당 월의 자산 갱신과 일치하는지 확인한다. for i, r in enumerate(gross): assert ( wealth[i] * (1 + r) - fees[i] == wealth[i + 1] ) if previous_end is not None: assert wealth[-1] < previous_end previous_end = wealth[-1] end, total, mdd = summary(net) print( bp, f"{float(end):.6f}", f"{float(total):.4%}", f"{float(mdd):.4%}", f"{float(sum(fees)):.6f}", )Output:
BP | END | RETURN | MDD | TOTAL_FEES0 111.826790 11.8268% -2.5000% 0.0000005 111.331515 11.3315% -2.5500% 0.47427010 110.838192 10.8382% -2.6000% 0.94664120 109.857370 9.8574% -2.7000% 1.885713Also check that the initial loss enters drawdown:
# +10%, -10%의 복리 결과는 -1%다.assert summary( (F(1, 10), F(-1, 10)))[1] == F(-1, 100)# 처음부터 20% 하락한 경우 시작 자산을 고점에 포함한다.assert summary( (F(-1, 5), F(3, 8)))[2] == F(-1, 5)# 상승 후 횡보한 경로에는 낙폭이 없다.assert min(drawdowns( equity((F(1, 10), F(0))))) == 07. What these results establish
The synthetic calculations ran with Python 3.14.5 during revision on 2026-10-24. They confirmed:
- Reordering the same returns preserves final wealth, mean, and standard deviation.
- Maximum drawdown and recovery of its associated peak differ.
- Monthly charges agree with the wealth-update equation.
- Higher costs reduce ending wealth in the supplied scenarios.
- Including initial wealth captures first-period losses.
Real market data, orders, execution prices, and liquidity were not validated. Fixed bp rates are assumptions, not measured costs for a market.
| Number to read | Conditions to inspect |
|---|---|
| Cumulative return | Start/end, cash flows, gross or net |
| Maximum drawdown | Observation frequency, initial wealth, peak/trough |
| Recovery | Definition, date, unresolved drawdown at end |
| Sharpe | Comparison return, sample size, frequency, annualization |
| Trading scale | Actual notionals or approximated weight changes |
| Net performance | Cost base, deduction timing, entry, liquidation |
The later real ETF baseline uses daily paths and entry, rebalancing, and liquidation costs. Its scope differs from this monthly synthetic sensitivity exercise.
The aim is not to attach ever more metrics, but to explain the losses, recovery state, trades, and costs behind returns under consistent conditions.
Report an error or share feedback
Open a draft with this article’s title and URL. Review the message and recipient before sending.
Open email draftIf no email app opens, copy these details into your usual email service.
Related posts
Quant & Data Research Do Transaction Costs Change the Conclusion? Accounting for Entry, Full Replacement, and Liquidation
Account for purchase budgets and costs at entry, full replacement, and liquidation; check costs, turnover, and cash constraints in a synthetic ledger.
Quant & Data Research Checking Synthetic Experiment Replays: What Should Match and What Should Change
Use nine replay checks and a modified-copy exercise to distinguish values that should match, values that should change, and verification limits.