Sub topic 7
Hybrid Rules: Check on a Schedule, Trade Only if a Band Is Breached
This chapter assumes you know what a target allocation is and how to compute portfolio weights and drift. It also assumes you have met calendar rebalancing (trade on a fixed schedule) and threshold rebalancing (trade when drift passes a band). The Python examples use only the standard library.
The idea in one sentence
A hybrid rule looks at the portfolio on a fixed schedule. At each look it trades only if at least one asset class sits outside its tolerance band.
Each pure rule has a weakness, and the hybrid rule covers both.
- A pure calendar rule trades on every review date, even when the portfolio has barely moved. You pay costs and possibly taxes for almost no risk reduction.
- A pure threshold rule needs continuous monitoring, and in a volatile market it can fire repeatedly in a short span.
The hybrid rule keeps the calendar's predictability, because you look on known dates. It keeps the threshold's selectivity, because you trade only when drift is large enough to matter.
How the decision flows
At every date you ask two questions in order. The first is cheap and the second needs a calculation.
Both branches end by recording the review date. The next sections explain why that detail matters.
Building the pieces
The band check and the calendar check are separate functions. The hybrid rule is their logical AND.
from datetime import date
def breaches_band(weights, targets, abs_band=None, rel_band=None):
"""Return the asset classes outside their tolerance band.
abs_band: allowed drift in weight, e.g. 0.05 for 5 percentage points.
rel_band: allowed drift as a fraction of the target, e.g. 0.25 for 25%.
"""
out = []
for a, target in targets.items():
drift = abs(weights[a] - target)
if abs_band is not None and drift > abs_band:
out.append(a)
elif rel_band is not None and drift > rel_band * target:
out.append(a)
return out
def calendar_due(last_review: date, today: date, interval_months: int) -> bool:
elapsed = (today.year - last_review.year) * 12 + (today.month - last_review.month)
return elapsed >= interval_months
def hybrid_should_trade(last_review, today, interval_months, weights, targets, abs_band):
if not calendar_due(last_review, today, interval_months):
return False
return bool(breaches_band(weights, targets, abs_band=abs_band))
targets = {"stocks": 0.60, "bonds": 0.40}
values = {"stocks": 72000.0, "bonds": 38000.0}
total = sum(values.values())
weights = {a: values[a] / total for a in values}
print(hybrid_should_trade(date(2026, 5, 28), date(2026, 11, 28), 6, weights, targets, 0.05))
print(hybrid_should_trade(date(2026, 5, 28), date(2026, 10, 28), 6, weights, targets, 0.05))The output is True and then False. Stocks are 65.5% against a 60% target, so drift is about 5.5 points, outside a 5-point band. On 28 October only five months have elapsed, so the portfolio is never examined.
Two details of this code are easy to miss.
calendar_duecounts calendar months and ignores the day of the month. A review from 31 May is due on 1 November, because the month counter reads 6. This is usually acceptable. Note it if you need exact day counts.- When you pass both
abs_bandandrel_band,breaches_bandflags an asset class that breaches either one. This makes the rule stricter than either band alone. Choose one band type per rule unless you want that behavior.
Reviewing versus rebalancing: track two dates
This is the most common implementation error. Suppose you store only the date of the last trade, and compare it with today to decide whether a review is due. Consider a portfolio with a 6-month interval that is within bands on the review date.
- The six months pass and the review is due.
- No band is breached, so you do not trade and
last_rebalancedoes not change. - Tomorrow,
calendar_dueis stillTrue, becauselast_rebalanceis still six or more months old.
The rule has quietly turned into daily threshold monitoring. The calendar no longer does anything.
The fix is to store the date of the last review, not the last trade. Update it every time you look, whether or not you trade. Keep the date of the last trade as a separate record for tax and cost tracking.
from datetime import date
def breaches_band(weights, targets, abs_band=None, rel_band=None):
out = []
for a, target in targets.items():
drift = abs(weights[a] - target)
if abs_band is not None and drift > abs_band:
out.append(a)
elif rel_band is not None and drift > rel_band * target:
out.append(a)
return out
def calendar_due(last_review, today, interval_months):
elapsed = (today.year - last_review.year) * 12 + (today.month - last_review.month)
return elapsed >= interval_months
def review(state, today, values, targets, interval_months, abs_band):
"""Return (decision, breached, new_state). Decision is skip, hold, or trade."""
if not calendar_due(state["last_review"], today, interval_months):
return "skip", [], state
total = sum(values.values())
weights = {a: values[a] / total for a in values}
breached = breaches_band(weights, targets, abs_band=abs_band)
new_state = dict(state, last_review=today)
if breached:
new_state["last_rebalance"] = today
return "trade", breached, new_state
return "hold", breached, new_state
targets = {"stocks": 0.60, "bonds": 0.40}
state = {"last_review": date(2026, 5, 28), "last_rebalance": date(2026, 5, 28)}
history = [
(date(2026, 6, 28), {"stocks": 70000.0, "bonds": 40000.0}),
(date(2026, 8, 28), {"stocks": 69000.0, "bonds": 41000.0}),
(date(2026, 9, 28), {"stocks": 71000.0, "bonds": 39000.0}),
(date(2026, 11, 28), {"stocks": 72000.0, "bonds": 38000.0}),
]
for today, values in history:
decision, breached, state = review(state, today, values, targets, 3, 0.05)
print(today, decision, breached)The output is:
2026-06-28 skip []
2026-08-28 hold []
2026-09-28 skip []
2026-11-28 trade ['stocks', 'bonds']Walk through the four dates.
- 28 June: Only one month has passed since the last review, so the review is skipped. The portfolio is not examined, even though its weights are visible.
- 28 August: The three-month interval has passed. Stocks are about 62.7%, a drift of 2.7 points, inside the 5-point band, so the decision is hold. The review date moves to 28 August.
- 28 September: Only one month has passed since 28 August, so this is skipped. Because we updated
last_reviewon the hold, the schedule stays on the calendar. - 28 November: Another three months have passed. Stocks are 65.5%, a drift of 5.5 points, so a band is breached and the decision is trade. In a two-asset portfolio, one asset's overweight is the other's underweight, so both classes are flagged.
After the trade decision, compute the amounts with the trade formula from the earlier chapter. For these values that means selling 6,000 of stocks and buying 6,000 of bonds.
Choosing the interval and the bands
The two parameters work together, and the right combination is less obvious than for either pure rule.
- The interval sets how long a breach can go unnoticed. A band breached in week two of a 12-month interval stays unaddressed for the other 50 weeks. A shorter interval reduces that exposure but increases the number of reviews. Reviews are cheap when they cost only a look, so monthly or quarterly intervals are common. They do not mean monthly or quarterly trades.
- The band sets how much drift you tolerate and how often you trade. Tight bands produce trades at most reviews, which makes the hybrid rule behave like the pure calendar rule. Wide bands produce few trades, and the portfolio can drift far between them.
- Relative bands scale with the target. A 25% relative band on a 60% target allows 15 points of drift. On a 40% target it allows 10 points. On a 5% target it allows only 1.25 points. Use relative bands when the portfolio has small asset classes, because an absolute 5-point band would let a 5% holding double or vanish before it triggered.
A reasonable starting design for a two- or three-asset portfolio is a quarterly review with a 5-point absolute band. For portfolios with small holdings, use a relative band of about 20 to 25%. Treat these figures as starting points to test against your own costs and tax situation, not as universal settings.
What the hybrid rule does not fix
- Drift between reviews. If a market crash pushes stocks far below target in the middle of a quarter, the rule waits for the next review date. A hybrid rule is deliberately less responsive than a continuously monitored threshold rule.
- Band breaches that reverse. A breach on review day may reflect a temporary swing. Trading on that day locks in the position. Review days are chosen in advance, so you cannot choose a good day.
- Taxes. The rule decides whether to trade, but it does not decide how. In a taxable account, selling an appreciated holding can trigger a tax bill that outweighs the benefit of the trade. The costs and taxes chapter covers this.
Comparing the three rules
| Rule | When you look | When you trade | Main weakness |
|---|---|---|---|
| Calendar | On a schedule | At every review | Trades even when drift is tiny |
| Threshold | Continuously or often | When a band is breached | Needs frequent monitoring, can trade often in volatile markets |
| Hybrid | On a schedule | At a review, only if a band is breached | Slow to react between reviews |
Writing it into a policy
A hybrid rule needs four values in your written policy: the review interval, the band type, the band size, and the way you record reviews. For example: "Review on the last business day of March, June, September, and December. Trade only if any asset class differs from its target by more than 5 percentage points. Record each review date, whether or not a trade occurs." The wording of the last sentence prevents the two-date error described earlier.
Exercise
A portfolio is 50% stocks, 40% bonds, and 10% real estate. It follows a hybrid rule with a quarterly review and a 25% relative band. On review day the weights are 57%, 34%, and 9%. Does the rule trade? Show the drift limit for each asset class.
Show answer
Yes. The relative limit is 25% of each target: stocks 12.5 points, bonds 10 points, real estate 2.5 points. The actual drifts are 7 points for stocks, 6 points for bonds, and 1 point for real estate. None of them exceeds its limit, so the rule does not trade. The answer is no. The review is recorded and the portfolio holds. A 5-point absolute band would have triggered, because both stocks (7) and bonds (6) exceed 5.
Exercise
An implementation stores only last_rebalance and sets last_rebalance = today only when it trades. The interval is 6 months. What goes wrong after a review where no band is breached, and what is the fix?
Show answer
After the review passes with no trade, last_rebalance is unchanged, so calendar_due keeps returning True on every later day. The rule then checks the bands daily, which is pure threshold monitoring and defeats the schedule. The fix is to store a separate last_review date, update it at every review whether or not a trade occurs, and use it in calendar_due.