Executing Rebalancing with Virtual Cash
Prepared with AI assistance · Reviewed by Anuga Weerasinghe · 2026-10-09

The Mechanism of Rebalancing
Rebalancing is the process of buying and selling assets to return your portfolio to its original target weights. In a spot paper trading account, this process is executed entirely through market buy and sell orders using your available virtual cash. To reduce an overweight position, you sell a portion of that asset, which generates virtual cash. You then use this cash to buy more of the underweight assets. This systematic process forces you to sell high and buy low, matching disciplined investing principles.
On TradeHQ, rebalancing does not require complex derivatives or margin trading. Because the platform only supports spot instruments and market orders, every adjustment is straightforward. However, you must carefully calculate the transaction sizes to avoid over-correcting. Since prices are periodic snapshots, you should execute your trades efficiently to minimize the impact of price updates during your rebalancing process. Having a clear mathematical plan beforehand ensures your execution is swift, precise, and highly effective.
Rebalancing with a Virtual Cash Buffer
Managing a virtual cash buffer is crucial when rebalancing spot portfolios. In our paper trading environment, cash is not just idle capital; it serves as a vital shock absorber and liquidity source. When you need to buy underweight assets, your virtual cash balance provides the immediate funds required without forcing you to sell other assets first. Maintaining a target cash allocation, such as five percent of your total portfolio, can provide funds for modest adjustments, but does not guarantee that every planned purchase is affordable.
If your virtual cash balance falls too low, you must generate cash by selling overperforming assets. Conversely, if your cash balance grows too large due to asset sales, your portfolio suffers from drag, meaning your returns are diluted by the unproductive cash. Properly managing this balance on TradeHQ means treating cash as a dynamic asset class that requires regular adjustments, just like your stock, cryptocurrency, or exchange-traded fund holdings.
Worked Example: Restoring Target Weights
Let us work through a concrete execution example using a drifted portfolio. Suppose your total portfolio value is $100,000, and your target allocations are forty percent stocks, forty percent bond ETFs, and twenty percent cash. Currently, your stocks have grown to fifty thousand dollars, your bond ETFs have fallen to thirty thousand dollars, and you hold twenty thousand dollars in virtual cash. To restore your target weights, you must calculate the difference between your current holdings and your target allocations.
Your target values are forty thousand dollars for stocks, forty thousand dollars for bond ETFs, and twenty thousand dollars for cash. To realign the portfolio, you must sell ten thousand dollars worth of stocks, reducing that position to forty thousand. This sale increases your virtual cash temporarily. Next, you use that cash to purchase ten thousand dollars worth of bond ETFs, raising that position to forty thousand. This execution successfully restores your target forty-forty-twenty distribution perfectly.
Practice Task: Rebalancing Your Portfolio
For your final practice challenge, you will calculate the precise trades needed to rebalance a drifted portfolio. Assume your total virtual portfolio value is exactly $100,000. Your target allocations are sixty percent spot equities and forty percent virtual cash. However, due to market swings, your equities are now worth seventy thousand dollars, and your virtual cash balance is thirty thousand dollars. Determine the exact market order you must place on TradeHQ to restore your target weights.
To solve this challenge, first identify the target dollar values: sixty thousand dollars for equities and forty thousand dollars for virtual cash. Your current equity position is seventy thousand dollars, which is ten thousand dollars over your target. Therefore, you must place a market sell order for ten thousand dollars of your equity holding. This trade reduces your equities to sixty thousand dollars and increases your virtual cash to forty thousand, achieving your target allocation perfectly.
Key takeaways
- Rebalancing restores target weights by reducing overweight holdings and increasing underweight holdings; weight alone does not establish whether an asset is overvalued or undervalued.
- Virtual cash acts as an essential liquidity buffer during rebalancing executions.
- Properly sized market orders must be used to execute rebalancing smoothly on TradeHQ's spot simulation.