rebalancing
БесплатноЗапускает вложенные скриптыНе проверенMaintain portfolio allocations over time using calendar-based, threshold-based, and tax-efficient rebalancing strategies. Use when the user asks about when to…
от JoelLewis★ 273 звезды на GitHubОб этом скилле
Rebalancing
Core Concepts
Calendar Rebalancing
Rebalance at fixed time intervals regardless of drift magnitude:
- Monthly: Tightest tracking to targets; highest transaction costs
- Quarterly: Common institutional frequency; good balance of tracking and costs
- Annually: Lowest cost; may allow significant drift between dates
Calendar rebalancing is simple to implement and schedule but may miss large dislocations between dates or trigger unnecessary trades when drift is minimal.
Threshold (Band) Rebalancing
Rebalance when any asset weight drifts beyond a defined tolerance band around its target:
- Monitor weights continuously (or at regular intervals)
- Trigger rebalancing when |w_actual - w_target| > tolerance
- Typical bands: +/- 3% to +/- 5% (absolute) or +/- 20% to +/- 25% (relative)
Threshold rebalancing is more responsive to market dislocations and avoids unnecessary trades when markets are calm. However, it requires more frequent monitoring.
Optimal Band Width (Leland Model)
Leland (2000) derived the optimal no-trade band width as a function of transaction costs, risk aversion, and asset variance:
Band width proportional to (3 * transaction_cost / (2 * risk_aversion * variance))^(1/3)
Key intuition:
- Higher transaction costs → wider bands (trade less)
- Higher risk aversion → narrower bands (maintain target more tightly)
- Higher variance → narrower bands (drift happens faster, risk of deviation is greater)
Rebalancing Premium
Systematic rebalancing generates a "volatility harvesting" or "rebalancing premium" through the buy-low/sell-high mechanism:
- When an asset rises, its weight increases → rebalancing sells some (sell high)
- When an asset falls, its weight decreases → rebalancing buys some (buy low)
This effect is sometimes called Shannon's Demon: in a two-asset portfolio with equal expected returns but independent volatility, the constantly rebalanced portfolio outperforms buy-and-hold. The rebalancing premium is larger when:
- Asset volatilities are higher
- Correlations are lower
- Assets have similar expected returns (so mean-reversion dominates trends)
Note: The rebalancing premium is not a free lunch — it underperforms in trending markets where winners keep winning.
Transaction Costs
Costs incurred when rebalancing that reduce net returns:
- Commissions: Per-trade or per-share fees (increasingly zero for retail)
- Bid-ask spread: The cost of crossing the spread; wider for less liquid assets
- Market impact: Price movement caused by the trade itself; significant for large positions in less liquid markets
- Opportunity cost: Delay cost if rebalancing is deferred to avoid transaction costs
Total implementation cost = commissions + half-spread + market impact + opportunity cost
Tax-Efficient Rebalancing
Strategies to minimize tax impact when rebalancing in taxable accounts:
- Use cash flows: Direct new contributions to underweight assets and withdrawals from overweight assets
- Redirect dividends and interest: Reinvest income from overweight assets into underweight assets
- Rebalance with new contributions: The most tax-efficient method — no selling required
- Asset location: Hold tax-inefficient assets (bonds, REITs) in tax-deferred accounts; rebalance these freely
- Selective lot identification: When selling, choose tax lots with the highest cost basis (lowest gain) or lots held over one year (long-term capital gains rate)
Coordinating with Tax-Loss Harvesting (TLH)
Rebalancing and TLH should be planned together, not as separate trade lists:
- Combine TLH sells with rebalance sells to reduce total trade count and transaction costs
- An overweight position sitting at a loss is the ideal dual-purpose trade — the harvest and the rebalance are the same sell
- Check open wash-sale windows before buying back or before rebalance buys in any account (including IRAs and spouse accounts)
Tax benefit = Realized loss * Marginal tax rate. For the 61-day wash-sale window, the $3,000 ordinary-income offset, replacement selection, and full TLH mechanics, see the tax-loss-harvesting skill.
Rebalancing Across Account Types
When an investor has multiple account types (taxable, IRA, 401k), optimize rebalancing by:
- Tax-deferred accounts (IRA, 401k): Rebalance freely — no tax consequences
- Taxable accounts: Minimize selling; use cash flows, TLH, and selective lot sales
- Cross-account rebalancing: Consider the aggregate portfolio across all accounts and rebalance within the most tax-efficient account
Drift Tolerance Setting
Factors that determine optimal band width:
- Tighter bands (e.g., +/- 2%): Better risk control, higher costs, appropriate for low-cost/institutional settings
- Wider bands (e.g., +/- 10%): Lower costs, more drift risk, appropriate for taxable accounts with high tax impact
- Asset-specific bands: More volatile assets may need wide
Установить rebalancing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл rebalancing?
Maintain portfolio allocations over time using calendar-based, threshold-based, and tax-efficient rebalancing strategies. Use when the user asks about when to rebalance, rebalancing bands, transaction cost trade-offs, tax-efficient rebalancing, or the rebalancing premium. Also trigger when users mention 'my portfolio drifted', 'how often should I rebalance', 'rebalancing across taxable and IRA accounts', 'volatility harvesting', 'buy low sell high automatically', or ask whether to use cash flows to rebalance.
Как установить скилл rebalancing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rebalancing запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic