Analyzes and simulates options trading strategies using Black-Scholes pricing, Greeks calculation, and P/L modeling. Covers covered calls, spreads, iron condors, and earnings plays with risk management guidance.
Ships in tradermonty-claude-trading-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill provides comprehensive options strategy analysis and education using theoretical pricing models. It helps traders understand, analyze, and simulate options strategies without requiring real-time market data subscriptions.
Core Capabilities:
Data Sources:
Required:
numpy, scipy, requestsOptional:
Installation:
pip install numpy scipy requests
Quick Start Examples:
Run from the installed skill directory after installing requirements.txt.
Use the library for custom inputs; the module's fixed research demonstration does
not parse ticker, pricing or strategy flags. This fictional European option uses
T in years and annual decimal rates/volatility/dividend yield. The model assumes
constant volatility/rates and continuous dividends; it is not a trading recommendation.
import sys
from pathlib import Path
sys.path.insert(0, str(Path("scripts").resolve()))
from black_scholes import OptionPricer
# Fictional European option; T is years, r/sigma/q are annual decimals.
pricer = OptionPricer(S=100.0, K=100.0, T=1.0, r=0.0, sigma=0.2, q=0.0)
greeks = pricer.get_all_greeks("call")
print(greeks)
Use this skill when:
Example requests:
Required from User:
Optional from User:
Fetched from FMP API:
Example User Input:
Ticker: AAPL
Strategy: Bull Call Spread
Long Strike: $180
Short Strike: $185
Expiration: 30 days
Contracts: 10
IV: 25% (or use HV if not provided)
Objective: Estimate volatility from historical price movements.
Method:
from black_scholes import fetch_historical_prices_for_hv, calculate_historical_volatility
prices = fetch_historical_prices_for_hv("AAPL", api_key, days=91)
if prices is None or len(prices) < 91:
raise ValueError("Historical evidence unavailable; supply verified IV instead")
HV = calculate_historical_volatility(prices, window=90)
Output:
User Can Override:
sigma=0.28 to OptionPricerRead references/black_scholes_methodology.md (section "Step 3 detail: Price Options Using Black-Scholes") when pricing each option leg. It holds the Black-Scholes formulas, dividend and American-option adjustments, the Python implementation and the per-leg output notes.
Read references/black_scholes_methodology.md (section "Step 4 detail: Calculate Greeks") when calculating Greeks. It holds the per-Greek Python functions, the position-Greeks aggregation example and the Greeks interpretation table.
Objective: Calculate profit/loss at various stock prices at expiration.
Method:
Generate stock price range (e.g., ±30% from current price):
current_price = 180
price_range = np.linspace(current_price * 0.7, current_price * 1.3, 100)
For each price point, calculate P/L:
def calculate_pnl(strategy, stock_price_at_expiration):
pnl = 0
for leg in strategy.legs:
if leg.type == 'call':
intrinsic_value = max(0, stock_price_at_expiration - leg.strike)
else: # put
intrinsic_value = max(0, leg.strike - stock_price_at_expiration)
if leg.position == 'long':
pnl += (intrinsic_value - leg.premium_paid) * 100 # Per contract
else: # short
pnl += (leg.premium_received - intrinsic_value) * 100
return pnl * num_contracts
Key Metrics:
Example Output:
Bull Call Spread: $180/$185 on AAPL (30 DTE, 10 contracts)
Current Price: $180.00
Net Debit: $2.50 per spread ($2,500 total)
Max Profit: $2,500 (at $185+)
Max Loss: -$2,500 (at $180-)
Breakeven: $182.50
Risk/Reward: 1:1
Probability Profit: ~55% (if stock stays above $182.50)
Read references/strategy_analysis_examples.md (section "Step 6 detail: Generate P/L Diagram (ASCII Art)") when drawing the P/L diagram. It holds the generate_pnl_diagram function and an example diagram.
Provide tailored guidance based on strategy type: Read references/strategy_analysis_examples.md (section "Step 7 detail: Strategy-Specific Analysis") when writing strategy-specific guidance. It holds the worked Covered Call, Protective Put and Iron Condor examples.
Read references/strategy_analysis_examples.md (section "Step 8 detail: Earnings Strategy Analysis") when the user asks about an earnings play. It holds the Earnings Calendar integration snippet and the Long Straddle/Strangle and Short Iron Condor examples with IV crush analysis.
Read references/strategy_analysis_examples.md (section "Step 9 detail: Risk Management Guidance") when sizing a position or setting exit rules. It holds the position-sizing examples, portfolio Greeks guidelines and exit rules by strategy.
Read references/analysis_report_template.md (section "Strategy Analysis Report Template and File Naming") when writing the final report. It holds the full Markdown report template and the file naming convention.
Read references/pricing_and_volatility_guidance.md when explaining pricing limitations or volatility (HV vs IV, IV percentile). It holds the Black-Scholes assumption caveats and the volatility guidance.
Earnings Calendar:
Technical Analyst:
US Stock Analysis:
Bubble Detector:
Portfolio Manager:
Read references/common_use_cases.md when planning the workflow for a typical request. It holds four worked use cases: learn a strategy, analyze a trade, earnings strategy, portfolio Greeks check.
Problem: IV not available
Problem: Negative option price
Problem: Greeks seem wrong
Problem: Strategy too complex
References:
references/black_scholes_methodology.md - Black-Scholes formulas, Greeks, and interpretation, plus the Step 3 and Step 4 implementation detailreferences/strategy_analysis_examples.md - P/L diagram, strategy-specific, earnings strategy and risk management examples (Steps 6 to 9)references/analysis_report_template.md - Full analysis report template and file namingreferences/pricing_and_volatility_guidance.md - Theoretical pricing limitations and volatility guidancereferences/common_use_cases.md - Four worked request flowsScripts:
scripts/black_scholes.py - Pricing engine and GreeksExternal Resources:
Version: 1.0 Last Updated: 2025-11-08 Dependencies: Python 3.9+, numpy, scipy, requests API: FMP API (optional; endpoint access depends on plan)
The Python helpers use the adjacent generated client and stable quote/profile/full-EOD endpoints, with shared retry, timeout and redaction behavior and no legacy HTTP fallback. Pass an explicit API key; endpoint access depends on your FMP plan. The manual model and the fixed-input black_scholes.py demonstration remain offline.
History accepts flat EOD rows or matching historical envelopes, excludes future dates and returns the newest requested sessions oldest first. It uses adjClose only for a consistently adjusted selection; otherwise provider close is used only when adjusted evidence is absent throughout. Provider close is not certified as adjusted. Invalid or mixed evidence returns None, as does an unavailable quote. Do not calculate a model from missing evidence.
get_dividend_yield retains the legacy 0.0 failure return and emits an unverified zero fallback warning. That fallback does not establish no dividend: supply a verified dividend yield as OptionPricer(q=...). An explicit provider dividend of zero returns zero without the warning. No live endpoint access or option-market accuracy has been verified by offline tests.
README.md (opens in a new tab)references/analysis_report_template.md (opens in a new tab)references/black_scholes_methodology.md (opens in a new tab)references/common_use_cases.md (opens in a new tab)references/pricing_and_volatility_guidance.md (opens in a new tab)references/strategy_analysis_examples.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/black_scholes.py (opens in a new tab)scripts/fmp_client.py (opens in a new tab)scripts/tests/conftest.py (opens in a new tab)scripts/tests/test_black_scholes.py (opens in a new tab)scripts/tests/test_fmp_client_breaker.py (opens in a new tab)scripts/tests/test_generated_market_data.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/tradermonty-claude-trading-skills:options-strategy-advisorfrom tradermonty-claude-trading-skills
tradermonty-claude-trading-skills@cascade-business-ops is listed by joshuarweaver/cascade-business-ops — review the source before installing
npx claudepluginhub joshuarweaver/cascade-business-ops --plugin tradermonty-claude-trading-skills74 skills in this plugin
/backtest-expertExpert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development./breadth-chart-analystThis skill should be used when analyzing market breadth charts, specifically the S&P 500 Breadth Index (200-Day MA based) and the US Stock Market Uptrend Stock Ratio charts. Use this skill when the user provides breadth chart images for analysis, requests market breadth assessment, positioning strategy recommendations, or wants to understand medium-term strategic and short-term tactical market outlook based on breadth indicators. Also works WITHOUT chart images by fetching CSV data directly from public sources. All analysis and output are conducted in English./breakout-trade-plannerGenerate Minervini-style breakout trade plans from VCP screener output with worst-case risk calculation, portfolio heat management, and Alpaca-compatible order templates (stop-limit bracket for pre-placement, limit bracket for post-confirmation). Use when user has VCP screener results and wants actionable trade plans with entry/stop/target levels and position sizing.Other plugins' skills for the same job