options-payoff
Generate an interactive options payoff curve chart with dynamic parameter controls. Use this skill whenever the user shares an options position screenshot, describes an options strategy, or asks to visualize how an options trade makes or loses money. Triggers include: any mention of butterfly, spread (vertical/calendar/diagonal/ratio), straddle, strangle, condor, covered call, protective put, iron condor, or any multi-leg options structure. Also triggers when a user pastes strike prices, premiums, expiry dates, or says things like "show me the payoff", "draw the P&L curve", "what does this trade look like", or uploads a screenshot from a broker (IBKR, TastyTrade, Robinhood, etc). Always use this skill even if the user only provides partial info — extract what you can and use defaults for the rest. --- # Options Payoff Curve Skill Generates a fully interactive HTML widget (via `visualize:show_widget`) showing: - **Expiry payoff curve** (dashed gray line) — intrinsic value at expiration - **Theoretical value curve** (solid colored line) — Black-Scholes price at current DTE/IV - Dynamic sliders for all key parameters - Real-time stats: max profit, max loss, breakevens, current P&L at spot --- ## Step 1: Extract Strategy From User Input When the user provides a screenshot or text, extract: | Field | Where to find it | Default if missing | |---|---|---| | Strategy type | Title bar / leg description | "custom" | | Underlying | Ticker symbol | SPX | | Strike(s) | K1, K2, K3... in title or leg table | nearest round number | | Premium paid/received | Filled price or avg price | 5.00 | | Quantity | Position size | 1 | | Multiplier | 100 for equity options, 100 for SPX | 100 | | Expiry | Date in title | 30 DTE | | Spot price | Current underlying price (NOT strike) | middle strike | | IV | Shown in greeks panel, or estimate from vega | 20% | | Risk-free rate | — | 4.3% | **Critical for screenshots**: The spot price is the CURRENT price of the underlying index/stock, NOT the str
Changelog: Source: GitHub https://github.com/himself65/finance-skills
No comments yet. Be the first one!