Rebalance with new cash or sell? A worked example after fees
A plan can reach its target weights before fees and miss two limits afterward. We compare adding cash with selling existing holdings, then separate the cash ledger from the optimizer’s cost assumptions.
In this article 7 sections
The short read
- Selling €5,000 and buying €5,000 of bonds reaches the equity and cash boundaries before fees. A €10 fee makes both checks fail.
- An invented €10,000 contribution and €8,000 bond purchase leaves €6,992 cash after an €8 fee, within the enumerated limits.
- On the artificial optimizer inputs, a 10-basis-point cost assumption leaves the displayed target weights unchanged; a 100-basis-point stress changes them.
A portfolio has drifted above its equity limit. Should the next step be a sale, or could an upcoming cash contribution restore the balance? The answer depends on the amount available, what it buys and which value each rule uses after costs.
Our investment-policy worked example established explicit limits and a fictional portfolio. Here we change the invented starting amounts, compare six plans and execute the resulting checks. A separate skfolio experiment explores a cost assumption inside an optimizer. Neither exercise chooses an allocation for a real person.
Begin with the drift and the available funding
The new fictional snapshot is €45,000 in GLOBAL_EQUITY, €25,000 in REGIONAL_EQUITY, €25,000 in BONDS and €5,000 in CASH. Total value is €100,000; equities are 70%. This is an invented variation, not a later observed price history of the original portfolio.
We retain the teaching policy: 55–65% equities, 25–35% bonds, 5–15% cash and no instrument above 45% of total value. The complete invented fund constituents remain available for the equity-issuer check. Every limit is inclusive.
The first plan has no new money. A second group assumes an external €10,000 contribution has actually arrived. Treat that contribution as an input to establish, rather than quietly assuming the investor can produce it.
Keep the contribution and the trade separate
A contribution increases portfolio value. A trade transfers value between holdings. A fee reduces value. In this fixture:
Post-plan value = €100,000 + contribution − fees.
The sale proceeds are not added a second time. They move from a fund into cash; a bond purchase moves cash into bonds. We apply an invented fee of 10 basis points, or 0.10%, to both purchases and sales. Cash deposits themselves have no fee in the example.
There are no taxes, spreads beyond the stated fee, minimum ticket charges, price changes, FX changes, settlement restrictions or pending orders. These omissions define what the ledger can establish. They would need separate inputs in an actual review.
Compare the six executed plans
The table renders the published results.json, generated from plans.json. Amounts are EUR market values; percentage denominators are the post-plan totals shown beside the fees.
| Fictional plan | Fees / total value (€) | Equities / cash | Result |
|---|---|---|---|
| Leave the invented drift unchanged | 0.00 / 100,000.00 | 70.00 % / 5.00 % | Rule breach |
| Add €10,000 and hold cash | 0.00 / 110,000.00 | 63.64 % / 13.64 % | Rule breach |
| Add €10,000; buy €8,000 of bonds | 8.00 / 109,992.00 | 63.64 % / 6.36 % | Within these checks |
| Add €10,000; buy €10,000 of bonds | 10.00 / 109,990.00 | 63.64 % / 4.54 % | Rule breach |
| Sell €5,000; buy €5,000 of bonds | 10.00 / 99,990.00 | 65.01 % / 4.99 % | Rule breach |
| Sell €6,000; buy €5,000 of bonds | 11.00 / 99,989.00 | 64.01 % / 5.99 % | Within these checks |
Fictional plan
Leave the invented drift unchanged
- Fees / total value (€)
- 0.00 / 100,000.00
- Equities / cash
- 70.00 % / 5.00 %
- Result
- Rule breach
Fictional plan
Add €10,000 and hold cash
- Fees / total value (€)
- 0.00 / 110,000.00
- Equities / cash
- 63.64 % / 13.64 %
- Result
- Rule breach
Fictional plan
Add €10,000; buy €8,000 of bonds
- Fees / total value (€)
- 8.00 / 109,992.00
- Equities / cash
- 63.64 % / 6.36 %
- Result
- Within these checks
Fictional plan
Add €10,000; buy €10,000 of bonds
- Fees / total value (€)
- 10.00 / 109,990.00
- Equities / cash
- 63.64 % / 4.54 %
- Result
- Rule breach
Fictional plan
Sell €5,000; buy €5,000 of bonds
- Fees / total value (€)
- 10.00 / 99,990.00
- Equities / cash
- 65.01 % / 4.99 %
- Result
- Rule breach
Fictional plan
Sell €6,000; buy €5,000 of bonds
- Fees / total value (€)
- 11.00 / 99,989.00
- Equities / cash
- 64.01 % / 5.99 %
- Result
- Within these checks
Leaving the snapshot unchanged breaches the equity ceiling. Adding €10,000 without investing it lowers equities to about 63.64%, but also lowers bonds to 22.73%. The equity check improves while the bond check fails.
Buying €8,000 of bonds from that expanded cash balance incurs €8 in fees. Bonds become €33,000, cash becomes €6,992 and total value becomes €109,992. The enumerated checks are within their limits. Buying €10,000 of bonds instead leaves only €4,990 cash after fees, below 5% of the new total.
Inspect the plan that almost passes
Without a contribution, selling €5,000 of GLOBAL_EQUITY and buying €5,000 of bonds appears tidy. Before costs, equities are €65,000, bonds €30,000 and cash €5,000: exactly 65%, 30% and 5%.
The two trade legs each cost €5. After the €10 fee, portfolio value is €99,990 and cash is €4,990. Equities are now 65.0065%, just above the ceiling. Cash is 4.9905%, just below its floor. A rounded pre-trade allocation hides two breaches.
The alternative fixture sells €6,000 of the global fund and buys €5,000 of bonds. Its €11 total fee leaves €5,989 cash and a €99,989 portfolio. Equities are approximately 64.01%, so the checks pass. This is one constructed feasible plan, not a claim that €6,000 is the unique or best sale amount.
The two feasible plans also end with different capital bases. Comparing €109,992 with €99,989 does not measure investment performance: one includes a €10,000 contribution.
Put optimizer costs in their own model
skfolio exposes transaction_costs and previous_weights. Its transaction-cost documentation describes a linear penalty based on absolute weight changes. That penalty reduces expected return within the model. The documentation also requires matching the cost input to the return periodicity and assumed holding duration.
We ran three utility-maximizing fits with skfolio 1.12.9 and CLARABEL, using the same 240 artificial observations as the original packet. Previous weights match this article’s 45/25/25/5 snapshot. The fits use the stated allocation bounds, variance risk aversion of 1 and an assumed holding duration of 21 observations. Fund cost assumptions are 0, 10 and 100 basis points, divided by 21; the artificial cash proxy has zero transaction cost.
| One-off cost assumption | Global / regional equity | Bonds / cash | Sum of absolute fund weight changes |
|---|---|---|---|
| 0 basis points | 45.00 % / 10.00 % | 35.00 % / 10.00 % | 25.00 % |
| 10 basis points | 45.00 % / 10.00 % | 35.00 % / 10.00 % | 25.00 % |
| 100 basis points | 45.00 % / 20.00 % | 25.00 % / 10.00 % | 5.00 % |
One-off cost assumption
0 basis points
- Global / regional equity
- 45.00 % / 10.00 %
- Bonds / cash
- 35.00 % / 10.00 %
- Sum of absolute fund weight changes
- 25.00 %
One-off cost assumption
10 basis points
- Global / regional equity
- 45.00 % / 10.00 %
- Bonds / cash
- 35.00 % / 10.00 %
- Sum of absolute fund weight changes
- 25.00 %
One-off cost assumption
100 basis points
- Global / regional equity
- 45.00 % / 20.00 %
- Bonds / cash
- 25.00 % / 10.00 %
- Sum of absolute fund weight changes
- 5.00 %
The 10-basis-point case returns the same displayed weights as the zero-cost case. At the deliberately larger 100-basis-point stress, the sum of absolute fund weight changes falls from about 25% to 5%. That sum counts both fund purchases and sales and excludes the cash leg. It is the convention used in this example, rather than a universal turnover definition.
These fits demonstrate sensitivity to an objective and cost input. They do not forecast returns. The weight-space penalty also does not settle the exact euro fee against a cash account. The separate ledger performs that calculation. The reviewed upstream example is pinned to the source revision recorded in the packet.
Preserve the comparison as a review record
A useful record keeps the contribution assumption, trade legs, fee convention, before-and-after amounts, policy version and unresolved inputs together. Record gross traded euros directly: the two-leg €6,000/€5,000 plan trades €11,000, even though only €1,000 net moves into cash before fees.
If an open order already reserves some cash, this ledger is incomplete until that state is added. The companion portfolio-data guide works through that distinction. If the proposed response is to change a limit, the checkable-rules guide explains how a policy revision changes the question being checked.
For a separate product workflow, Investboard offers a readable-policy builder and a portfolio demo. The demo contains different data. We did not import this ledger into Investboard or test a live connection.
Reproduce the ledgers and the fits
Download the evidence packet, its archive checksum, and the English or German instructions. The packet includes holdings, fund contents, plans, reference code, observed results, dependency versions and reuse terms.
# Exact ledgers and six boundary tests, Python 3.9+:
python3 -m unittest -v test_evidence
python3 reproduce.py --ledger-only --verify
# Separate optimizer fits, Python 3.12:
python3.12 -m venv .venv
.venv/bin/python -m pip install -r requirements.lock
.venv/bin/python reproduce.py --verify --output observed-results.json
The exact ledgers are compared directly with their published results. Optimizer weights allow a tolerance of 0.000001. These are deliberately narrow checks of fictional fixtures, executed with AI assistance on November 12, 2026. No model-response benchmark, tax assessment, real investment return or broker action was evaluated.
Cite this research
InvestingStack (2026). Rebalance with new cash or sell? A worked example after fees. InvestingStack. https://investingstack.ai/research/rebalance-cash-or-trades
Published: Nov 12, 2026
Evidence and downloads