
Options Payoff
Option P&L analysis methodology: payoff diagrams, breakeven calculation, multi-leg...
Install
npx skills add HKUDS/Vibe-Trading --skill options-payoff -g -a claude-code -y- Repository
- HKUDS/Vibe-Trading37.4k
- Category
- Engineering
- Updated
- 3d ago
- License
- MIT
- Context cost
- Mediumabout 3,000 tokens
- Runs scripts
- No, instructions only
What it does
Option P&L analysis methodology: payoff diagrams, breakeven calculation, multi-leg strategy visualization, and Greeks-based scenario analysis.
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 |
