options-payoff
Fungsinya
Skill ini menjelaskan apa yang bisa didapat atau hilang dari transaksi opsi saat kedaluwarsa. Skill ini untuk trader dan siswa yang ingin melihat payoff sebuah strategi sebelum menjalankannya.
Kapan dipakai
- ✓Saat Anda ingin melihat grafik untung dan rugi untuk satu opsi atau strategi multi-kaki.
- ✓Saat Anda membutuhkan harga impas dan kerugian maksimum untuk posisi opsi.
- ✓Saat Anda ingin membandingkan bagaimana sebuah strategi berperilaku pada tingkat volatilitas yang berbeda.
Link skill
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/options-payoff/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Tunjukkan grafik untung dan rugi untuk membeli call dan menjual call yang lebih tinggi pada Apple.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini mengambil kaki-kaki transaksi, seperti membeli atau menjual call dan put, lalu menghitung nilainya saat kedaluwarsa. Skill ini juga menghargai opsi dengan model Black-Scholes untuk menampilkan skenario.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Options Payoff — Option P&L Analysis Methodology
Overview
This skill is designed for option strategy analysis scenarios within the Vibe-Trading quantitative framework, covering:
- P&L curve generation for single-leg and multi-leg option portfolios
- Black-Scholes pricing and Greeks calculation
- Implied volatility inversion
- Strategy selection decision support
Constraint: For research and backtesting only. Do not output live trading instructions, in line with the project's guardrails.
Built-in execution tool
Load this skill for methodology, then call options_payoff for production
calculations. Pass signed legs (qty > 0 long, qty < 0 short),
entry_spot, and expiry_days; optionally pass actual per-share premiums,
multiplier, commission, chart bounds, and IV scenarios. The tool returns an
expiry curve, a spot × IV scenario matrix, and analytic breakeven/max-risk
results that do not depend on the display grid containing every strike.
1. Supported Strategy Types
1.1 Single-Leg Strategies
| Strategy | Bias | Premium | Max Profit | Max Loss |
|---|---|---|---|---|
| Long Call | Bullish | Paid | Unlimited | Premium |
| Long Put | Bearish | Paid | Strike - premium | Premium |
| Short Call | Neutral / mildly bearish | Received | Premium | Unlimited |
| Short Put | Neutral / mildly bullish | Received | Premium | Strike - premium |
1.2 Vertical Spreads
| Strategy | Structure | Market View | Net Premium |
|---|---|---|---|
| Bull Call Spread | Long Call (lower K) + Short Call (higher K) | Moderately bullish | Net debit |
| Bear Put Spread | Long Put (higher K) + Short Put (lower K) | Moderately bearish | Net debit |
| Bull Put Spread | Short Put (higher K) + Long Put (lower K) | Moderately bullish | Net credit |
| Bear Call Spread | Short Call (lower K) + Long Call (higher K) | Moderately bearish | Net credit |
1.3 Straddles / Strangles (Volatility Strategies)
| Strategy | Structure | Market View |
|---|---|---|
| Long Straddle | Long Call (ATM) + Long Put (ATM) | Large move up or down, low volatility |
| Short Straddle | Short Call (ATM) + Short Put (ATM) | Range-bound market, high volatility |
| Long Strangle | Long Call (OTM) + Long Put (OTM) | Large move, lower cost than a straddle |
| Short Strangle | Short Call (OTM) + Short Put (OTM) | Tight range, collect two-sided premium |
1.4 Butterflies / Iron Butterflies
| Strategy | Structure | Feature |
|---|---|---|
| Long Butterfly (Call) | Long Call (K1) + 2× Short Call (K2) + Long Call (K3) | Low-cost bet that the underlying expires near K2 |
| Long Butterfly (Put) | Long Put (K3) + 2× Short Put (K2) + Long Put (K1) | Same logic, built with puts |
| Iron Butterfly | Short Call (K2) + Short Put (K2) + Long Call (K3) + Long Put (K1) | Net credit, max profit at K2 |
1.5 Condors / Iron Condors
| Strategy | Structure | Feature |
|---|---|---|
| Long Condor (Call) | Long Call (K1) + Short Call (K2) + Short Call (K3) + Long Call (K4) | Bet that the underlying stays between K2 and K3 |
| Iron Condor | Short Put (K2) + Long Put (K1) + Short Call (K3) + Long Call (K4) | Most common neutral strategy with capped risk on both sides |
Here K1 < K2 < K3 < K4, and K2 / K3 are usually OTM.
1.6 Calendar Spreads (Time Spreads)
| Strategy | Structure | Market View |
|---|---|---|
| Calendar Spread | Short near-month Call/Put (K) + Long far-month Call/Put (K) | Short-term range-bound market + rising forward volatility |
| Diagonal Spread | Short near-month Call/Put (K1) + Long far-month Call/Put (K2) | Calendar spread with mild directional bias |
Calendar spreads profit because near-month Theta decay is faster than far-month Theta decay.
1.7 Ratio Spreads
| Strategy | Structure | Feature |
|---|---|---|
| Ratio Call Spread | Long 1× Call (K1) + Short N× Call (K2), N>1 | Limited upside profit, losses if the upside move becomes extreme |
| Ratio Put Spread | Long 1× Put (K2) + Short N× Put (K1) | Limited downside profit, losses if the downside move becomes extreme |
| Call Back Spread | Short 1× Call (K1) + Long N× Call (K2), N>1 | Profits from extreme upside, loses on a modest rally |
| Put Back Spread | Short 1× Put (K2) + Long N× Put (K1), N>1 | Profits from extreme downside, loses on a mild decline |
1.8 Protective / Hedging Strategies
| Strategy | Structure | Use Case |
|---|---|---|
| Covered Call | L |
Pertanyaan umum
Apa itu titik impas?
Itu adalah harga aset dasar tempat sebuah transaksi tidak untung dan tidak rugi saat kedaluwarsa.
Apakah skill ini memberi instruksi trading langsung?
Tidak. Skill ini hanya untuk riset dan backtesting, dan tidak menghasilkan order trading.
Strategi apa saja yang dicakup?
Skill ini mencakup transaksi satu kaki seperti long call dan put, serta strategi multi-kaki yang dibangun dari beberapa opsi.
Detail
Deskripsi asli dari pembuat
Option P&L analysis methodology: payoff diagrams, breakeven calculation, multi-leg strategy visualization, and Greeks-based scenario analysis.
repo: HKUDS/Vibe-Trading
Popularitas
- Bintang GitHub
- 37k
- Peringkat
- #7538
- Lisensi
- MIT
- Diperbarui
- 1/11/2026
Komentar
- …
Skill lain dari repositori ini
vibe-trading
37kMemberi agent Anda perangkat riset keuangan lengkap, mencakup backtest, analisis faktor, penetapan harga opsi, dan data pasar di banyak pasar.
adr-hshare
37kMenunjukkan kepada agent Anda cara membandingkan harga perusahaan Tiongkok yang terdaftar di beberapa pasar, seperti ADR AS dan saham Hong Kong.
akshare
37kMemungkinkan agent Anda mengambil data pasar gratis untuk saham Tiongkok dan global, futures, forex, dan indikator ekonomi, tanpa perlu kunci API.
alpha-zoo
37kMemungkinkan agent Anda menelusuri pustaka faktor saham siap pakai dan menguji seberapa baik sekumpulan faktor itu memprediksi imbal hasil di pasar pilihan.
Skill serupa
gitcrawl
394kMemungkinkan agent Anda mencari arsip issue dan pull request GitHub yang tersimpan, mengelompokkan yang duplikat, dan memeriksa status terkininya di GitHub.
slacrawl
394kMemungkinkan agent Anda mencari dan menghitung pesan di arsip Slack lokal, memeriksa seberapa baru arsip itu, dan menyegarkannya bila diperlukan.
goplaces
394kMembantu agent Anda mencari tempat, mendapatkan detail dan ulasannya, serta menentukan nama tempat memakai Google Places, dengan keluaran JSON untuk skrip.