Skills

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

StrategyBiasPremiumMax ProfitMax Loss
Long CallBullishPaidUnlimitedPremium
Long PutBearishPaidStrike - premiumPremium
Short CallNeutral / mildly bearishReceivedPremiumUnlimited
Short PutNeutral / mildly bullishReceivedPremiumStrike - premium

1.2 Vertical Spreads

StrategyStructureMarket ViewNet Premium
Bull Call SpreadLong Call (lower K) + Short Call (higher K)Moderately bullishNet debit
Bear Put SpreadLong Put (higher K) + Short Put (lower K)Moderately bearishNet debit
Bull Put SpreadShort Put (higher K) + Long Put (lower K)Moderately bullishNet credit
Bear Call SpreadShort Call (lower K) + Long Call (higher K)Moderately bearishNet credit

1.3 Straddles / Strangles (Volatility Strategies)

Read the whole SKILL.md on GitHub

More in Engineering