Yield Curve Trading Strategies
Yield curve trading strategies exploit curve shape, steepness, and movements to generate returns. These strategies range from simple (riding the yield curve) to complex (butterfly trades), each with distinct risk-return profiles. This section explores the major yield curve trading strategies used by professional fixed income traders and portfolio managers.
Python exercise
# Interactive Yield Curve Trading Strategies Visualization
# Shows Riding the Curve, Barbell vs. Bullet, and Butterfly trades
interactive_html = """
<div id="yield-strategies" style="margin: 2em 0; padding: 1.5em; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
<h3 style="margin-top: 0; color: #1f2937; font-size: 1.25em; font-weight: 600;">Yield Curve Trading Strategies</h3>
<p style="color: #6b7280; margin-bottom: 1.5em;">Explore different yield curve trading strategies:</p>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1em; margin-bottom: 2em;">
<div style="padding: 1em; background: #f9fafb; border-radius: 6px;">
<label style="display: block; margin-bottom: 0.5em; font-weight: 500; color: #374151;">Strategy:</label>
<select id="strategy" style="width: 100%; padding: 0.5em; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.9em;">
<option value="riding">Riding the Curve</option>
<option value="barbell">Barbell vs. Bullet</option>
<option value="butterfly">Butterfly Trade</option>
</select>
</div>
<div style="padding: 1em; background: #f9fafb; border-radius: 6px;">
<label style="display: block; margin-bottom: 0.5em; font-weight: 500; color: #374151;">Short Rate (%):</label>
<input type="range" id="short_rate" min="1" max="6" value="2.5" step="0.1" style="width: 100%; height: 8px; border-radius: 4px; background: #e5e7eb; outline: none;">
<div style="text-align: center; margin-top: 0.5em;">
<span id="short_rate_value" style="display: inline-block; padding: 0.5em 1em; background: #059669; color: white; font-weight: 600; font-size: 0.9em; border-radius: 6px; min-width: 50px;">2.5%</span>
</div>
</div>
<div style="padding: 1em; background: #f9fafb; border-radius: 6px;">
<label style="display: block; margin-bottom: 0.5em; font-weight: 500; color: #374151;">Long Rate (%):</label>
<input type="range" id="long_rate" min="2" max="8" value="4.3" step="0.1" style="width: 100%; height: 8px; border-radius: 4px; background: #e5e7eb; outline: none;">
<div style="text-align: center; margin-top: 0.5em;">
<span id="long_rate_value" style="display: inline-block; padding: 0.5em 1em; background: #dc2626; color: white; font-weight: 600; font-size: 0.9em; border-radius: 6px; min-width: 50px;">4.3%</span>
</div>
</div>
<div style="padding: 1em; background: #f9fafb; border-radius: 6px;">
<label style="display: block; margin-bottom: 0.5em; font-weight: 500; color: #374151;">Buy Maturity (years):</label>
<input type="range" id="buy_maturity" min="1" max="10" value="5" step="1" style="width: 100%; height: 8px; border-radius: 4px; background: #e5e7eb; outline: none;">
<div style="text-align: center; margin-top: 0.5em;">
<span id="buy_maturity_value" style="display: inline-block; padding: 0.5em 1em; background: #2563eb; color: white; font-weight: 600; font-size: 0.9em; border-radius: 6px; min-width: 50px;">5Y</span>
</div>
</div>
</div>
<div style="background: white; padding: 1.5em; border-radius: 6px; border: 1px solid #e5e7eb;">
<canvas id="strategyCanvas" width="700" height="700" style="width: 100%; max-width: 700px; height: 700px; border: 1px solid #e5e7eb; border-radius: 4px; display: block;"></canvas>
</div>
<div id="strategy-analysis" style="margin-top: 1.5em; padding: 1.5em; background: #eff6ff; border-radius: 6px; border-left: 4px solid #2563eb;">
<h4 style="margin: 0 0 0.5em 0; color: #1e40af; font-size: 1em; font-weight: 600;">Strategy Analysis:</h4>
<div id="analysis_text" style="color: #1e40af; font-size: 0.9em; line-height: 1.6;">
Analyzing strategy performance...
</div>
</div>
</div>
<script>
(function() {
function initCanvas() {
const canvas = document.getElementById('strategyCanvas');
if (!canvas) return;
const ctx = canvas.getContext('2d');
if (!ctx) return;
const dpr = window.devicePixelRatio || 1;
const baseWidth = 700;
const baseHeight = 700;
canvas.width = baseWidth * dpr;
canvas.height = baseHeight * dpr;
ctx.scale(dpr, dpr);
canvas.style.width = baseWidth + 'px';
canvas.style.height = baseHeight + 'px';
}
function calculateYields(shortRate, longRate, maturities) {
return maturities.map(m => {
return shortRate + (longRate - shortRate) * (1 - Math.exp(-m / 10));
});
}
function drawStrategy(ctx, width, height, strategy, shortRate, longRate, buyMaturity) {
ctx.clearRect(0, 0, width, height);
const maturities = [1, 2, 3, 4, 5, 7, 10, 20, 30];
const yields = calculateYields(shortRate, longRate, maturities);
const padding = 80;
const plotWidth = width - padding * 2;
const plotHeight = height - padding * 2;
const maxMaturity = 30;
const minYield = Math.min(...yields) - 0.5;
const maxYield = Math.max(...yields) + 0.5;
const yieldRange = maxYield - minYield;
// Draw grid
ctx.strokeStyle = '#e5e7eb';
ctx.lineWidth = 1;
for (let i = 0; i <= 10; i++) {
const y = padding + (plotHeight * i / 10);
ctx.beginPath();
ctx.moveTo(padding, y);
ctx.lineTo(width - padding, y);
ctx.stroke();
}
// Draw yield curve
ctx.strokeStyle = '#2563eb';
ctx.lineWidth = 3;
ctx.beginPath();
for (let i = 0; i < maturities.length; i++) {
const x = padding + (maturities[i] / maxMaturity) * plotWidth;
const y = height - padding - ((yields[i] - minYield) / yieldRange) * plotHeight;
if (i === 0) ctx.moveTo(x, y);
else ctx.lineTo(x, y);
}
ctx.stroke();
// Draw points
ctx.fillStyle = '#2563eb';
for (let i = 0; i < maturities.length; i++) {
const x = padding + (maturities[i] / maxMaturity) * plotWidth;
const y = height - padding - ((yields[i] - minYield) / yieldRange) * plotHeight;
ctx.beginPath();
ctx.arc(x, y, 5, 0, 2 * Math.PI);
ctx.fill();
}
// Draw strategy-specific elements
if (strategy === 'riding') {
const holdPeriod = 1;
const sellMaturity = buyMaturity - holdPeriod;
const buyYield = shortRate + (longRate - shortRate) * (1 - Math.exp(-buyMaturity / 10));
const sellYield = shortRate + (longRate - shortRate) * (1 - Math.exp(-sellMaturity / 10));
const buyX = padding + (buyMaturity / maxMaturity) * plotWidth;
const buyY = height - padding - ((buyYield - minYield) / yieldRange) * plotHeight;
const sellX = padding + (sellMaturity / maxMaturity) * plotWidth;
const sellY = height - padding - ((sellYield - minYield) / yieldRange) * plotHeight;
ctx.fillStyle = '#059669';
ctx.beginPath();
ctx.arc(buyX, buyY, 10, 0, 2 * Math.PI);
ctx.fill();
ctx.fillStyle = '#dc2626';
ctx.beginPath();
ctx.arc(sellX, sellY, 10, 0, 2 * Math.PI);
ctx.fill();
ctx.strokeStyle = '#059669';
ctx.lineWidth = 2;
ctx.setLineDash([5, 5]);
ctx.beginPath();
ctx.moveTo(buyX, buyY);
ctx.lineTo(sellX, sellY);
ctx.stroke();
ctx.setLineDash([]);
updateAnalysis(`Riding the Curve: Buy ${buyMaturity}Y at ${buyYield.toFixed(2)}%, hold 1Y, sell as ${sellMaturity}Y at ${sellYield.toFixed(2)}%. Roll-down benefit: ${(buyYield - sellYield).toFixed(2)}%`);
} else if (strategy === 'barbell') {
const barbellShort = 2;
const barbellLong = 10;
const bulletMaturity = 5;
const barbellShortYield = shortRate + (longRate - shortRate) * (1 - Math.exp(-barbellShort / 10));
const barbellLongYield = shortRate + (longRate - shortRate) * (1 - Math.exp(-barbellLong / 10));
const bulletYield = shortRate + (longRate - shortRate) * (1 - Math.exp(-bulletMaturity / 10));
const shortX = padding + (barbellShort / maxMaturity) * plotWidth;
const shortY = height - padding - ((barbellShortYield - minYield) / yieldRange) * plotHeight;
const longX = padding + (barbellLong / maxMaturity) * plotWidth;
const longY = height - padding - ((barbellLongYield - minYield) / yieldRange) * plotHeight;
const bulletX = padding + (bulletMaturity / maxMaturity) * plotWidth;
const bulletY = height - padding - ((bulletYield - minYield) / yieldRange) * plotHeight;
ctx.fillStyle = '#059669';
ctx.beginPath();
ctx.arc(shortX, shortY, 10, 0, 2 * Math.PI);
ctx.fill();
ctx.beginPath();
ctx.arc(longX, longY, 10, 0, 2 * Math.PI);
ctx.fill();
ctx.strokeStyle = '#059669';
ctx.lineWidth = 2;
ctx.setLineDash([5, 5]);
ctx.beginPath();
ctx.moveTo(shortX, shortY);
ctx.lineTo(longX, longY);
ctx.stroke();
ctx.setLineDash([]);
ctx.fillStyle = '#dc2626';
ctx.beginPath();
ctx.arc(bulletX, bulletY, 10, 0, 2 * Math.PI);
ctx.fill();
updateAnalysis(`Barbell (2Y + 10Y): Higher convexity, lower yield. Bullet (5Y): Higher yield, lower convexity. Same duration, different risk profiles.`);
} else if (strategy === 'butterfly') {
const wingShort = 2;
const body = 5;
const wingLong = 10;
const wingShortYield = shortRate + (longRate - shortRate) * (1 - Math.exp(-wingShort / 10));
const bodyYield = shortRate + (longRate - shortRate) * (1 - Math.exp(-body / 10));
const wingLongYield = shortRate + (longRate - shortRate) * (1 - Math.exp(-wingLong / 10));
const shortX = padding + (wingShort / maxMaturity) * plotWidth;
const shortY = height - padding - ((wingShortYield - minYield) / yieldRange) * plotHeight;
const bodyX = padding + (body / maxMaturity) * plotWidth;
const bodyY = height - padding - ((bodyYield - minYield) / yieldRange) * plotHeight;
const longX = padding + (wingLong / maxMaturity) * plotWidth;
const longY = height - padding - ((wingLongYield - minYield) / yieldRange) * plotHeight;
ctx.fillStyle = '#dc2626';
ctx.beginPath();
ctx.arc(shortX, shortY, 10, 0, 2 * Math.PI);
ctx.fill();
ctx.beginPath();
ctx.arc(longX, longY, 10, 0, 2 * Math.PI);
ctx.fill();
ctx.fillStyle = '#059669';
ctx.beginPath();
ctx.arc(bodyX, bodyY, 10, 0, 2 * Math.PI);
ctx.fill();
updateAnalysis(`Butterfly Trade: Short wings (2Y, 10Y) + Long body (5Y). Profits from curvature changes, duration neutral.`);
}
// Labels
ctx.fillStyle = '#374151';
ctx.font = '12px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif';
ctx.textAlign = 'center';
ctx.fillText('Maturity (Years)', width / 2, height - 10);
ctx.textAlign = 'right';
ctx.fillText('Yield (%)', padding - 10, height / 2);
// Title
const titles = {
riding: 'Riding the Yield Curve',
barbell: 'Barbell vs. Bullet',
butterfly: 'Butterfly Trade'
};
ctx.font = 'bold 16px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif';
ctx.textAlign = 'center';
ctx.fillText(titles[strategy] || 'Yield Curve Strategy', width / 2, 30);
}
function updateAnalysis(text) {
const analysisEl = document.getElementById('analysis_text');
if (analysisEl) analysisEl.textContent = text;
}
window.updateStrategy = function() {
const strategyEl = document.getElementById('strategy');
const shortRateEl = document.getElementById('short_rate');
const longRateEl = document.getElementById('long_rate');
const buyMaturityEl = document.getElementById('buy_maturity');
if (!strategyEl || !shortRateEl || !longRateEl || !buyMaturityEl) return;
const strategy = strategyEl.value;
const shortRate = parseFloat(shortRateEl.value);
const longRate = parseFloat(longRateEl.value);
const buyMaturity = parseInt(buyMaturityEl.value);
document.getElementById('short_rate_value').textContent = shortRate.toFixed(1) + '%';
document.getElementById('long_rate_value').textContent = longRate.toFixed(1) + '%';
document.getElementById('buy_maturity_value').textContent = buyMaturity + 'Y';
const canvas = document.getElementById('strategyCanvas');
if (!canvas) return;
const ctx = canvas.getContext('2d');
if (!ctx) return;
const dpr = window.devicePixelRatio || 1;
const width = canvas.width / dpr;
const height = canvas.height / dpr;
drawStrategy(ctx, width, height, strategy, shortRate, longRate, buyMaturity);
};
function tryInit() {
const canvas = document.getElementById('strategyCanvas');
const strategyEl = document.getElementById('strategy');
if (canvas && strategyEl) {
initCanvas();
window.updateStrategy();
strategyEl.addEventListener('change', window.updateStrategy);
['short_rate', 'long_rate', 'buy_maturity'].forEach(id => {
document.getElementById(id).addEventListener('input', window.updateStrategy);
});
return true;
}
return false;
}
if (!tryInit()) {
setTimeout(() => {
if (!tryInit()) {
setTimeout(tryInit, 200);
}
}, 50);
}
})();
</script>
"""
import sys
sys.stdout.write(f"[HTML_CONTENT]{interactive_html}[/HTML_CONTENT]\n")
sys.stdout.flush()
Riding the Yield Curve
Riding the yield curve (also called roll-down strategy) involves buying bonds with maturities longer than the investment horizon, holding them as they "roll down" the curve, and selling before maturity.
Strategy Mechanics
- Buy longer maturity: Purchase bond with maturity longer than holding period
- Hold as time passes: Bond moves down the curve (toward shorter maturity)
- Sell before maturity: Sell when bond reaches target maturity
- Capture roll-down: Profit from yield decline as bond ages
Why It Works
Normal yield curve:
- Longer maturities have higher yields
- As bond ages, it moves to lower-yield (shorter maturity) segment
- Price increases as yield decreases (bond price-yield inverse relationship)
Example:
- Buy 5-year bond at 3.5% yield
- Hold for 1 year
- Sell as 4-year bond (now yielding 3.3%)
- Profit from 0.2% yield decline (price appreciation)
Risk and Return
Returns:
- Roll-down return: Yield decline as bond ages
- Coupon income: Regular coupon payments
- Total return: Roll-down + coupon income
Risks:
- Curve flattening: If curve flattens, roll-down benefit reduced
- Curve inversion: If curve inverts, strategy loses money
- Interest rate risk: Parallel shifts affect all bonds
- Liquidity risk: May need to sell in illiquid market
Implementation
Key considerations:
- Curve shape: Works best with normal (upward-sloping) curve
- Steepness: Steeper curve = greater roll-down benefit
- Holding period: Match to investment horizon
- Risk management: Monitor curve changes
Barbell vs. Bullet Strategies
Barbell and bullet are portfolio construction strategies with different maturity distributions and risk-return profiles.
Bullet Strategy
Bullet strategy concentrates all bonds at a single maturity:
- Maturity concentration: All bonds at target maturity (e.g., 5 years)
- Duration matching: Matches target duration exactly
- Simple structure: Easy to understand and manage
Advantages:
- Precise duration matching
- Simple to implement
- Lower transaction costs
Disadvantages:
- Limited flexibility
- Vulnerable to specific maturity shocks
- Less convexity benefit
Barbell Strategy
Barbell strategy splits portfolio between short and long maturities:
- Two maturity clusters: Short-term (e.g., 2 years) and long-term (e.g., 10 years)
- Duration matching: Weighted average duration matches target
- Convexity benefit: Higher convexity than bullet
Advantages:
- Higher convexity (better price performance in large rate moves)
- Flexibility to adjust either end
- Diversification across maturities
Disadvantages:
- More complex to manage
- Higher transaction costs
- Vulnerable to curve steepening/flattening
Comparison
Duration matching:
- Both strategies can match same target duration
- Different maturity distributions
Convexity:
- Barbell typically has higher convexity
- Better performance in large rate moves
Yield:
- Bullet typically has higher yield (intermediate rates usually highest)
- Barbell may sacrifice some yield for convexity
Butterfly Trades
Butterfly trades are curve positioning strategies that profit from changes in curve shape (curvature) rather than parallel shifts.
Strategy Structure
Butterfly trades involve three positions:
- Wings: Short positions in short and long maturities
- Body: Long position in intermediate maturity
- Net duration neutral: Overall portfolio duration ≈ 0
Types of Butterflies
Steepening butterfly:
- Profit from curve steepening
- Long intermediate, short wings
- Benefits when middle rates rise relative to ends
Flattening butterfly:
- Profit from curve flattening
- Short intermediate, long wings
- Benefits when middle rates fall relative to ends
Risk and Return
Returns:
- Curvature changes: Profit from changes in curve shape
- Relative value: Exploits mispricing between maturities
Risks:
- Parallel shifts: Neutral to parallel shifts (duration neutral)
- Curvature risk: Losses if curvature moves against position
- Liquidity risk: May need to trade in less liquid segments
Implementation
Key considerations:
- Curvature measurement: Monitor curve shape changes
- Maturity selection: Choose appropriate wing and body maturities
- Risk management: Monitor overall portfolio risk
- Timing: Enter when curvature is expected to change
Carry Trades
Carry trades profit from yield pickup by extending maturity or taking on additional risk.
Strategy Mechanics
- Identify yield pickup: Find higher-yielding securities
- Extend maturity or risk: Move to longer maturity or lower credit
- Capture carry: Earn higher yield
- Manage risk: Monitor for adverse movements
Types of Carry Trades
Maturity extension:
- Move from short to long maturities
- Capture yield pickup
- Accept duration risk
Credit carry:
- Move from high-grade to lower-grade bonds
- Capture credit spread
- Accept credit risk
Curve carry:
- Position in steeper part of curve
- Capture roll-down benefit
- Accept curve risk
Risk Considerations
Interest rate risk:
- Rates may rise, causing losses
- Duration risk from extension
Credit risk:
- Credit spreads may widen
- Default risk for lower-grade bonds
Liquidity risk:
- May need to exit in stressed markets
- Wider bid-ask spreads
Implementation
Key considerations:
- Yield pickup: Ensure adequate compensation for risk
- Risk limits: Set appropriate risk limits
- Monitoring: Continuously monitor positions
- Exit strategy: Plan exit before adverse moves
Strategy Selection
Market Conditions
Normal curve, steep:
- Riding the curve works well
- Barbell benefits from convexity
- Carry trades attractive
Flat curve:
- Limited roll-down benefit
- Butterfly trades may work
- Carry trades less attractive
Inverted curve:
- Riding the curve loses money
- Focus on short-term
- Avoid extension strategies
Risk Tolerance
Conservative:
- Bullet strategies
- Short maturities
- High credit quality
Moderate:
- Barbell strategies
- Intermediate maturities
- Investment-grade credit
Aggressive:
- Butterfly trades
- Long maturities
- Lower credit quality
- Leverage
Key Takeaways
Riding the yield curve profits from bonds moving down a normal curve as they age, capturing roll-down benefit plus coupon income.
Barbell strategies (short + long maturities) offer higher convexity than bullet strategies (single maturity), providing better performance in large rate moves.
Butterfly trades profit from curve curvature changes rather than parallel shifts, requiring three positions (wings + body) with net duration neutrality.
Carry trades capture yield pickup by extending maturity or taking additional risk, requiring careful risk management.
Strategy selection depends on market conditions (curve shape, steepness), risk tolerance, and investment objectives.
All yield curve strategies require understanding of curve dynamics, risk management, and market timing.
Next: Section 6 explores economic implications of yield curves (recession indicators, monetary policy, inflation expectations).