hedging-strategy
यह क्या करती है
यह स्किल उन पोज़िशन का जोखिम कम करने की योजना बनाती है जो आपके पास पहले से हैं। यह उन निवेशकों के लिए है जो सुरक्षा चाहते हैं और जानना चाहते हैं कि उसकी लागत क्या होगी।
कब इस्तेमाल करें
- ✓जब आपके पास बड़ा शेयर पोर्टफ़ोलियो हो और आपको बाज़ार गिरने की चिंता हो।
- ✓जब आप जानना चाहें कि पोर्टफ़ोलियो के बाज़ार जोखिम को संतुलित करने के लिए कितने इंडेक्स फ़्यूचर्स कॉन्ट्रैक्ट लगेंगे।
- ✓जब आप ऑप्शन से सुरक्षा की लागत की तुलना कुछ होल्डिंग बेचने से करना चाहें।
Skill का लिंक
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/hedging-strategy/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस साल बाज़ार गिरावट से अपने 1 करोड़ युआन के शेयर पोर्टफ़ोलियो को कैसे बचाऊँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह पोर्टफ़ोलियो के बीटा से हेज अनुपात निकालती है, जो मापता है कि वह बाज़ार के साथ कितना चलता है। फिर यह फ़्यूचर्स और ऑप्शन जैसे इंस्ट्रूमेंट की तुलना करती है और हर एक की लागत का अनुमान लगाती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Hedging Strategy Design
Overview
Design systematic hedging plans for existing positions, covering linear hedges (futures / ETFs) and nonlinear hedges (options). Output hedge ratios, cost estimates, and execution plans. Core principle: hedging does not eliminate risk; it exchanges unknown losses for known costs.
Core Concepts
1. Beta Hedging (Futures / ETFs)
Principle: hedge portfolio systematic risk (beta) with index futures or ETFs while preserving single-stock alpha.
Hedge ratio calculation:
# Minimum-variance hedge ratio
hedge_ratio = beta_portfolio * (portfolio_value / futures_value)
# Example: hold a 10 million RMB China A-share portfolio, beta = 1.2
# CSI 300 futures (IF) contract value = index level × 300
# IF level = 4000, contract value = 4000 × 300 = 1.2 million
# Required number of short contracts = 1.2 × (1000 / 120) = 10
# Beta estimation method
import numpy as np
# OLS regression: portfolio_returns = alpha + beta * index_returns + epsilon
beta = np.cov(portfolio_returns, index_returns)[0][1] / np.var(index_returns)
China A-share beta hedging instruments:
| Instrument | Code | Contract Multiplier | Margin | Suitable Scale |
|---|---|---|---|---|
| IF (CSI 300 futures) | IF2403 | 300 RMB / point | ~12% | > 5 million RMB |
| IC (CSI 500 futures) | IC2403 | 200 RMB / point | ~14% | > 3 million RMB |
| IM (CSI 1000 futures) | IM2403 | 200 RMB / point | ~15% | > 3 million RMB |
| CSI 300 ETF (510300) | 510300.SH | — | Unlevered | Any size |
Note: stock-index futures have basis (spot-futures spread). Shorting futures when they trade at a discount brings extra return (basis convergence), while premium pricing adds extra cost.
2. Option Hedging Strategies
Protective Put
Hold the underlying + buy a put option
- Cost: option premium (typically 1-3% of underlying value per month)
- Protection range: fully protected below the strike price
- Applicable scenario: worried about a large drawdown but do not want to sell the position
China A-share example (50ETF options):
# Hold 1 million shares of 50ETF (about 2.7 million RMB)
# Buy 100 contracts of 50ETF put 2700 (strike 2.700)
# Premium ≈ 0.05 RMB/share × 10000 shares/contract × 100 contracts = 50,000 RMB
# Cost ratio = 50,000 / 2,700,000 ≈ 1.85%
# Protection effect: losses are capped once ETF falls below 2.700
Collar
Hold the underlying + buy an OTM put + sell an OTM call
- Cost: close to zero-cost (the call premium offsets the put premium)
- Trade-off: gives up upside above the call strike
- Applicable scenario: willing to cap upside in exchange for free downside protection
Parameter selection guide:
| Parameter | Aggressive | Balanced | Conservative |
|---|---|---|---|
| Put strike | ATM-5% | ATM-8% | ATM-10% |
| Call strike | ATM+8% | ATM+5% | ATM+3% |
| Net cost | Slightly positive | Near zero | Slightly negative (income) |
| Maximum downside loss | -5% | -8% | -10% |
| Maximum upside gain | +8% | +5% | +3% |
Put Spread (Bear Put Spread Hedge)
Buy a higher-strike put + sell a lower-strike put
- Cost: 30-50% cheaper than buying a naked put
- Protection range: only between the two strikes; no protection below the lower strike
- Applicable scenario: hedging against moderate drawdowns while being cost-sensitive
3. Tail-Risk Hedging
Far OTM put strategy:
# Buy deep OTM puts (delta ≈ -0.05 ~ -0.10)
# Characteristics: expires worthless most of the time, but pays off massively during black swans
# Parameters
otm_put_strike = current_price * 0.85 # 15% OTM
cost_per_month = portfolio_value * 0.003 # about 0.3% / month
expected_payoff_in_crash = portfolio_value * 0.10 # ~10% payoff in a severe selloff
# Cost management: ongoing spend of about 3.6% / year, profitable only in tail events
# Taleb-style hedge: lose small amounts often, make large gains occasionally
VIX call strategy (US equities / options market):
# Buy OTM VIX calls (strike = current VIX + 10)
# If VIX jumps from 15 to 40, call value explodes
# Naturally negatively correlated with an equity portfolio
# China A-share substitutes:
# China has no VIX futures, so alternatives are:
# 1. Buy OTM 50ETF puts (similar tail protection)
# 2. Go long volatility: buy a straddle
# 3. Allocate to gold ETF (518880.SH) as a safe-haven asset
4. Cross-Asset Hedging
**S
अक्सर पूछे जाने वाले सवाल
क्या हेजिंग सारा जोखिम हटा देती है?
नहीं। यह अज्ञात नुकसान के बदले ज्ञात लागत, जैसे फ़ीस या ऑप्शन प्रीमियम, देती है।
यह कौन-से इंस्ट्रूमेंट बताती है?
CSI 300 और CSI 500 जैसे चीन के A-शेयर इंडेक्स फ़्यूचर्स, साथ ही ऑप्शन और ETF।
यह कितना हेज करना है, यह कैसे तय करती है?
यह हेज का आकार बीटा से तय करती है, ताकि सुरक्षा इस बात से मेल खाए कि पोर्टफ़ोलियो बाज़ार के साथ कैसे चलता है।
जानकारी
लेखक का मूल विवरण
Hedging strategy design (beta hedge / option protection / tail risk / cross-asset hedging), including hedge-ratio calculation and cost evaluation.
repo: HKUDS/Vibe-Trading
लोकप्रियता
- GitHub स्टार
- 37k
- रैंकिंग में स्थान
- #7524
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
vibe-trading
37kयह आपके एजेंट को वित्त शोध का पूरा टूलकिट देती है, जिसमें बैकटेस्ट, फ़ैक्टर एनालिसिस, ऑप्शन प्राइसिंग और कई बाज़ारों का डेटा शामिल है।
adr-hshare
37kयह आपके एजेंट को दिखाती है कि कई बाज़ारों में लिस्टेड एक चीनी कंपनी के भाव की तुलना कैसे करें, जैसे अमेरिकी ADR और हॉन्गकॉन्ग शेयर।
akshare
37kयह आपके एजेंट को चीनी और वैश्विक शेयरों, फ़्यूचर्स, फ़ॉरेक्स और आर्थिक संकेतकों का मुफ़्त बाज़ार डेटा लेने देती है, बिना API key के।
alpha-zoo
37kयह आपके एजेंट को बने-बनाए स्टॉक फ़ैक्टरों की लाइब्रेरी देखने और चुने हुए बाज़ार पर उनके पूरे समूह के रिटर्न की भविष्यवाणी की क्षमता जाँचने देती है।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।