Skip to content
Skillpedia
Analysis & spreadsheets37k · #7538

options-payoff

What it does

This skill explains what an option trade could earn or lose at expiry. It is for traders and students who want to see a strategy's payoff before placing it.

When to use it

  • ✓When you want to see the profit and loss chart for a single option or a multi-leg strategy.
  • ✓When you need the breakeven price and maximum loss for an options position.
  • ✓When you want to compare how a strategy behaves under different volatility levels.

Skill link

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/options-payoff/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/options-payoff/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Show me the profit and loss chart for buying a call and selling a higher call on Apple.”

5 new skills a week. 1 minute to read.

How it works

It takes the legs of a trade, such as buying or selling calls and puts, and calculates their value at expiry. It also prices options with the Black-Scholes model to show scenarios.

Technical content (original SKILL.md)

Original text by the author, straight from 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
FAQ

What are breakeven points?

They are the underlying prices where a trade neither makes nor loses money at expiry.

Does it give live trading instructions?

No. It is for research and backtesting only, and it does not output trading orders.

What strategies does it cover?

It covers single-leg trades such as long calls and puts, and multi-leg strategies built from several options.

Details

Original description by the author

Option P&L analysis methodology: payoff diagrams, breakeven calculation, multi-leg strategy visualization, and Greeks-based scenario analysis.

repo: HKUDS/Vibe-Trading

Popularity

GitHub stars
37k
Ranking position
#7538
License
MIT
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills