options-payoff

Compute option strategy payoff curves, break-evens, and Black-Scholes Greeks.

Updated May 5, 2026
One-click install
npx skills add https://github.com/wudye/traderAssistHK --skill options-payoff-wudye
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: options-payoff
Source: https://github.com/wudye/traderAssistHK/tree/main/backend/src/skills/options-payoff
Command: npx skills add https://github.com/wudye/traderAssistHK --skill options-payoff-wudye

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, scipy, matplotlib, plotly.

What problem does it solve?

Options traders and quant analysts need to quickly understand how option strategies behave across underlying prices, volatility scenarios, and time, including where profit breaks even and how Greeks influence outcomes.

Core Features & Use Cases

  • Payoff diagram generation for single-leg and multi-leg portfolios to see expiry P&L and theoretical value curves across an underlying price range.
  • Black-Scholes pricing, Greeks, and implied volatility inversion to quantify price sensitivity (delta), curvature (gamma), time decay (theta), and volatility sensitivity (vega), including solving for IV via Newton-Raphson with safeguards.
  • Break-even, max profit/loss, and volatility scenario analysis to support research and backtesting decisions with capped-risk assessment and IV sensitivity visualization.

Quick Start

Ask options-payoff to generate an interactive payoff diagram and breakeven points for an iron condor using your specified strikes, premiums, time to expiry, and volatility assumptions.

Frequently Asked Questions about options-payoff

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I visualize an options strategy payoff diagram for a multi-leg position?

You can visualize options strategy payoff by computing expiry P&L curves and theoretical values across an underlying price range. This tool generates interactive diagrams for single-leg and multi-leg portfolios like vertical spreads, straddles, and iron condors.

How do I calculate breakeven points and max profit or loss for an option spread?

Breakeven points are calculated using numerical root-finding on the payoff function. The tool identifies break-even points, max profit, and max loss to support research with capped-risk assessment for various spread strategies.

How does Black-Scholes implied volatility inversion work for options pricing?

Implied volatility inversion works by solving for volatility using Newton-Raphson root-finding with convergence safeguards. The tool computes Black-Scholes theoretical values and handles edge cases to quantify delta, gamma, theta, and vega sensitivities.

Can I use numpy and scipy for Greeks-driven scenario analysis and time decay visualization?

Yes, you can use numpy and scipy for Greeks-driven scenario analysis. The tool applies these dependencies to compute price sensitivity, curvature, time decay, and volatility sensitivity, enabling IV sensitivity visualization during research and backtesting.

What is the best way to compare volatility scenarios for butterfly and calendar spread strategies?

The best way to compare volatility scenarios is by generating theoretical value curves and breakeven analysis across different underlying prices. The tool supports butterflies, iron variants, calendars, and diagonals with IV sensitivity visualization.

Why does implied volatility inversion fail to converge for deep out-of-the-money options?

Implied volatility inversion may fail to converge for deep out-of-the-money options due to numerical instability in the root-finding process. The tool applies Newton-Raphson methods with safeguards and edge-case handling to mitigate these convergence issues.