Options Strategy Advisor
Overview
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:
- - Black-Scholes Pricing: Theoretical option prices and Greeks calculation
- Strategy Simulation: P/L analysis for major options strategies
- Earnings Strategies: Pre-earnings volatility plays integrated with Earnings Calendar
- Risk Management: Position sizing, Greeks exposure, max loss/profit analysis
- Educational Focus: Detailed explanations of strategies and risk metrics
Data Sources:
- - FMP API: Stock prices, historical volatility, dividends, earnings dates
- User Input: Implied volatility (IV), risk-free rate
- Theoretical Models: Black-Scholes for pricing and Greeks
When to Use This Skill
Use this skill when:
- - User asks about options strategies ("What's a covered call?", "How does an iron condor work?")
- User wants to simulate strategy P/L ("What's my max profit on a bull call spread?")
- User needs Greeks analysis ("What's my delta exposure?")
- User asks about earnings strategies ("Should I buy a straddle before earnings?")
- User wants to compare strategies ("Covered call vs protective put?")
- User needs position sizing guidance ("How many contracts should I trade?")
- User asks about volatility ("Is IV high right now?")
Example requests:
- - "Analyze a covered call on AAPL"
- "What's the P/L on a $100/$105 bull call spread on MSFT?"
- "Should I trade a straddle before NVDA earnings?"
- "Calculate Greeks for my iron condor position"
- "Compare protective put vs covered call for downside protection"
Supported Strategies
Income Strategies
- 1. Covered Call - Own stock, sell call (generate income, cap upside)
- Cash-Secured Put - Sell put with cash backing (collect premium, willing to buy stock)
- Poor Man's Covered Call - LEAPS call + short near-term call (capital efficient)
Protection Strategies
- 4. Protective Put - Own stock, buy put (insurance, limited downside)
- Collar - Own stock, sell call + buy put (limited upside/downside)
Directional Strategies
- 6. Bull Call Spread - Buy lower strike call, sell higher strike call (limited risk/reward bullish)
- Bull Put Spread - Sell higher strike put, buy lower strike put (credit spread, bullish)
- Bear Call Spread - Sell lower strike call, buy higher strike call (credit spread, bearish)
- Bear Put Spread - Buy higher strike put, sell lower strike put (limited risk/reward bearish)
Volatility Strategies
- 10. Long Straddle - Buy ATM call + ATM put (profit from big move either direction)
- Long Strangle - Buy OTM call + OTM put (cheaper than straddle, bigger move needed)
- Short Straddle - Sell ATM call + ATM put (profit from no movement, unlimited risk)
- Short Strangle - Sell OTM call + OTM put (profit from no movement, wider range)
Range-Bound Strategies
- 14. Iron Condor - Bull put spread + bear call spread (profit from range-bound movement)
- Iron Butterfly - Sell ATM straddle, buy OTM strangle (profit from tight range)
Advanced Strategies
- 16. Calendar Spread - Sell near-term option, buy longer-term option (profit from time decay)
- Diagonal Spread - Calendar spread with different strikes (directional + time decay)
- Ratio Spread - Unbalanced spread (more contracts on one leg)
Analysis Workflow
Step 1: Gather Input Data
Required from User:
- - Ticker symbol
- Strategy type
- Strike prices
- Expiration date(s)
- Position size (number of contracts)
Optional from User:
- - Implied Volatility (IV) - if not provided, use Historical Volatility (HV)
- Risk-free rate - default to current 3-month T-bill rate (~5.3% as of 2025)
Fetched from FMP API:
- - Current stock price
- Historical prices (for HV calculation)
- Dividend yield
- Upcoming earnings date (for earnings strategies)
Example User Input:
CODEBLOCK0
Step 2: Calculate Historical Volatility (if IV not provided)
Objective: Estimate volatility from historical price movements.
Method:
CODEBLOCK1
Output:
- - Historical Volatility (annualized percentage)
- Note to user: "HV = 24.5%, consider using current market IV for more accuracy"
User Can Override:
- - Provide IV from broker platform (ThinkorSwim, TastyTrade, etc.)
- Script accepts
--iv 28.0 parameter
Step 3: Price Options Using Black-Scholes
Black-Scholes Model:
For European-style options:
CODEBLOCK2
Adjustments:
- - Subtract present value of dividends from S for calls
- American options: Use approximation or note "European pricing, may undervalue American options"
Python Implementation:
CODEBLOCK3
Output for Each Option Leg:
- - Theoretical price
- Note: "Market price may differ due to bid-ask spread and American vs European pricing"
Step 4: Calculate Greeks
The Greeks measure option price sensitivity to various factors:
Delta (Δ): Change in option price per $1 change in stock price
CODEBLOCK4
Gamma (Γ): Change in delta per $1 change in stock price
CODEBLOCK5
Theta (Θ): Change in option price per day (time decay)
CODEBLOCK6
Vega (ν): Change in option price per 1% change in volatility
CODEBLOCK7
Rho (ρ): Change in option price per 1% change in interest rate
CODEBLOCK8
Position Greeks:
For a strategy with multiple legs, sum Greeks across all legs:
CODEBLOCK9
Greeks Interpretation:
| Greek | Meaning | Example |
|---|
| Delta | Directional exposure | Δ = 0.50 → $50 profit if stock +$1 |
| Gamma |
Delta acceleration | Γ = 0.05 → Delta increases by 0.05 if stock +$1 |
|
Theta | Daily time decay | Θ = -$5 → Lose $5/day from time passing |
|
Vega | Volatility sensitivity | ν = $10 → Gain $10 if IV increases 1% |
|
Rho | Interest rate sensitivity | ρ = $2 → Gain $2 if rates increase 1% |
Step 5: Simulate Strategy P/L
Objective: Calculate profit/loss at various stock prices at expiration.
Method:
Generate stock price range (e.g., ±30% from current price):
CODEBLOCK10
For each price point, calculate P/L:
CODEBLOCK11
Key Metrics:
- - Max Profit: Highest possible P/L
- Max Loss: Worst possible P/L
- Breakeven Point(s): Stock price(s) where P/L = 0
- Profit Probability: Percentage of price range that's profitable (simplified)
Example Output:
CODEBLOCK12
Step 6: Generate P/L Diagram (ASCII Art)
Visual representation of P/L across stock prices:
CODEBLOCK13
Example Output:
CODEBLOCK14
Step 7: Strategy-Specific Analysis
Provide tailored guidance based on strategy type:
Covered Call:
CODEBLOCK15
Protective Put:
CODEBLOCK16
Iron Condor:
CODEBLOCK17
Step 8: Earnings Strategy Analysis
Integration with Earnings Calendar:
When user asks about earnings strategies, fetch earnings date:
CODEBLOCK18
Pre-Earnings Strategies:
Long Straddle/Strangle:
CODEBLOCK19
Short Iron Condor:
CODEBLOCK20
Step 9: Risk Management Guidance
Position Sizing:
CODEBLOCK21
Portfolio Greeks Management:
CODEBLOCK22
Adjustments and Exits:
CODEBLOCK23
Output Format
Strategy Analysis Report Template:
CODEBLOCK24
File Naming Convention:
CODEBLOCK25
Example: INLINECODE1
Key Principles
Theoretical Pricing Limitations
What Users Should Know:
- 1. Black-Scholes Assumptions:
- European-style options (can't exercise early)
- Constant volatility (IV changes in reality)
- No transaction costs
- Continuous trading
- 2. Real vs Theoretical:
- Bid-ask spread: Actual cost higher than theoretical
- American options: Can be exercised early (especially ITM puts)
- Liquidity: Wide markets on illiquid options
- Dividends: Ex-dividend dates affect pricing
- 3. Best Practices:
- Use as educational tool and comparative analysis
- Get real quotes from broker before trading
- Understand theoretical price ≈ mid-market price
- Account for commissions and slippage
Volatility Guidance
Historical vs Implied Volatility:
CODEBLOCK26
IV Percentile:
User provides current IV, we calculate percentile:
CODEBLOCK27
Integration with Other Skills
Earnings Calendar:
- - Fetch earnings dates automatically
- Suggest earnings-specific strategies
- Calculate days to earnings (DTE critical for IV)
- Warn about IV crush risk
Technical Analyst:
- - Use support/resistance for strike selection
- Trend analysis for directional strategies
- Breakout potential for straddle/strangle timing
US Stock Analysis:
- - Fundamental analysis for longer-term strategies (LEAPS)
- Dividend yield for covered call/put analysis
- Earnings quality for earnings plays
Bubble Detector:
- - High bubble risk → focus on protective puts
- Low risk → bullish strategies
- Critical risk → avoid long premium (theta hurts)
Portfolio Manager:
- - Track options positions alongside stock positions
- Aggregate Greeks across portfolio
- Options as hedging tool for stock positions
Important Notes
- - All analysis in English
- Educational focus: Strategies explained clearly
- Theoretical pricing: Black-Scholes approximation
- User IV input: Optional, defaults to HV
- No real-time data required: FMP Free tier sufficient
- Dependencies: Python 3.8+, numpy, scipy, pandas
Common Use Cases
Use Case 1: Learn Strategy
CODEBLOCK28
Use Case 2: Analyze Specific Trade
CODEBLOCK29
Use Case 3: Earnings Strategy
CODEBLOCK30
Use Case 4: Portfolio Greeks Check
CODEBLOCK31
Troubleshooting
Problem: IV not available
- - Solution: Use HV as proxy, note to user
- Ask user to provide IV from broker platform
Problem: Negative option price
- - Solution: Check inputs (strike vs stock price)
- Deep ITM options may have numerical issues
Problem: Greeks seem wrong
- - Solution: Verify inputs (T, sigma, r)
- Check if using annual vs daily values
Problem: Strategy too complex
- - Solution: Break into legs, analyze separately
- Refer to references for strategy details
Resources
References:
- -
references/strategies_guide.md - All 17+ strategies explained - INLINECODE3 - Greeks deep dive
- INLINECODE4 - HV vs IV, when to trade
Scripts:
- -
scripts/black_scholes.py - Pricing engine and Greeks - INLINECODE6 - Strategy simulation
- INLINECODE7 - Earnings-specific analysis
External Resources:
- - Options Playbook: https://www.optionsplaybook.com/
- CBOE Education: https://www.cboe.com/education/
- Black-Scholes Calculator: Various online tools for verification
Version: 1.0
Last Updated: 2025-11-08
Dependencies: Python 3.8+, numpy, scipy, pandas, requests
API: FMP API (Free tier sufficient)
期权策略顾问
概述
该技能利用理论定价模型提供全面的期权策略分析和教育。它帮助交易者理解、分析和模拟期权策略,无需实时市场数据订阅。
核心能力:
- - 布莱克-舒尔斯定价:理论期权价格和希腊值计算
- 策略模拟:主要期权策略的盈亏分析
- 财报策略:结合财报日历的财报前波动率策略
- 风险管理:头寸规模、希腊值敞口、最大亏损/盈利分析
- 教育导向:策略和风险指标的详细解释
数据来源:
- - FMP API:股票价格、历史波动率、股息、财报日期
- 用户输入:隐含波动率(IV)、无风险利率
- 理论模型:布莱克-舒尔斯定价和希腊值计算
何时使用该技能
在以下情况下使用此技能:
- - 用户询问期权策略(什么是备兑看涨?、铁鹰策略如何运作?)
- 用户想要模拟策略盈亏(我的牛市看涨价差最大盈利是多少?)
- 用户需要希腊值分析(我的德尔塔敞口是多少?)
- 用户询问财报策略(我应该在财报前买入跨式期权吗?)
- 用户想要比较策略(备兑看涨 vs 保护性看跌?)
- 用户需要头寸规模指导(我应该交易多少合约?)
- 用户询问波动率(现在隐含波动率高吗?)
示例请求:
- - 分析AAPL的备兑看涨策略
- MSFT $100/$105牛市看涨价差的盈亏是多少?
- 我应该在NVDA财报前交易跨式期权吗?
- 计算我铁鹰头寸的希腊值
- 比较保护性看跌和备兑看涨的下行保护效果
支持的策略
收入策略
- 1. 备兑看涨 - 持有股票,卖出看涨(产生收入,限制上行空间)
- 现金担保看跌 - 以现金担保卖出看跌(收取权利金,愿意买入股票)
- 穷人版备兑看涨 - 长期看涨期权 + 短期看涨期权(资金效率高)
保护策略
- 4. 保护性看跌 - 持有股票,买入看跌(保险,限制下行风险)
- 领口策略 - 持有股票,卖出看涨 + 买入看跌(限制上行/下行空间)
方向性策略
- 6. 牛市看涨价差 - 买入低行权价看涨,卖出高行权价看涨(有限风险/回报,看涨)
- 牛市看跌价差 - 卖出高行权价看跌,买入低行权价看跌(信用价差,看涨)
- 熊市看涨价差 - 卖出低行权价看涨,买入高行权价看涨(信用价差,看跌)
- 熊市看跌价差 - 买入高行权价看跌,卖出低行权价看跌(有限风险/回报,看跌)
波动率策略
- 10. 多头跨式期权 - 买入平值看涨 + 平值看跌(从任一方向的大幅波动中获利)
- 多头宽跨式期权 - 买入虚值看涨 + 虚值看跌(比跨式期权便宜,需要更大波动)
- 空头跨式期权 - 卖出平值看涨 + 平值看跌(从无波动中获利,无限风险)
- 空头宽跨式期权 - 卖出虚值看涨 + 虚值看跌(从无波动中获利,更宽范围)
区间震荡策略
- 14. 铁鹰策略 - 牛市看跌价差 + 熊市看涨价差(从区间震荡中获利)
- 铁蝶策略 - 卖出平值跨式期权,买入虚值宽跨式期权(从窄幅震荡中获利)
高级策略
- 16. 日历价差 - 卖出近期期权,买入远期期权(从时间衰减中获利)
- 对角价差 - 不同行权价的日历价差(方向性 + 时间衰减)
- 比例价差 - 不平衡价差(一条腿更多合约)
分析工作流程
第一步:收集输入数据
用户必须提供:
- - 股票代码
- 策略类型
- 行权价
- 到期日
- 头寸规模(合约数量)
用户可选提供:
- - 隐含波动率(IV) - 如未提供,使用历史波动率(HV)
- 无风险利率 - 默认当前3个月国债利率(截至2025年约5.3%)
从FMP API获取:
- - 当前股票价格
- 历史价格(用于HV计算)
- 股息率
- 即将到来的财报日期(用于财报策略)
示例用户输入:
股票代码: AAPL
策略: 牛市看涨价差
多头行权价: $180
空头行权价: $185
到期时间: 30天
合约数: 10
隐含波动率: 25%(如未提供则使用HV)
第二步:计算历史波动率(如未提供IV)
目标: 从历史价格波动中估算波动率。
方法:
python
获取90天价格数据
prices = get
historicalprices(AAPL, days=90)
计算日收益率
returns = np.log(prices / prices.shift(1))
年化波动率
HV = returns.std() * np.sqrt(252) # 252个交易日
输出:
- - 历史波动率(年化百分比)
- 用户提示:HV = 24.5%,考虑使用当前市场IV以获得更高准确性
用户可覆盖:
- - 从券商平台提供IV(ThinkorSwim、TastyTrade等)
- 脚本接受 --iv 28.0 参数
第三步:使用布莱克-舒尔斯模型定价期权
布莱克-舒尔斯模型:
对于欧式期权:
看涨价格 = S N(d1) - K e^(-rT) N(d2)
看跌价格 = K e^(-rT) N(-d2) - S N(-d1)
其中:
d1 = [ln(S/K) + (r + σ²/2) T] / (σ √T)
d2 = d1 - σ * √T
S = 当前股票价格
K = 行权价
r = 无风险利率
T = 到期时间(年)
σ = 波动率(IV或HV)
N() = 累积标准正态分布
调整:
- - 从S中减去股息的现值(看涨期权)
- 美式期权:使用近似值或注明欧式定价,可能低估美式期权价值
Python实现:
python
from scipy.stats import norm
import numpy as np
def blackscholescall(S, K, T, r, sigma, q=0):
S: 股票价格
K: 行权价
T: 到期时间(年)
r: 无风险利率
sigma: 波动率
q: 股息率
d1 = (np.log(S/K) + (r - q + 0.5sigma2)T) / (sigma*np.sqrt(T))
d2 = d1 - sigma*np.sqrt(T)
call_price = Snp.exp(-qT)norm.cdf(d1) - Knp.exp(-rT)norm.cdf(d2)
return call_price
def blackscholesput(S, K, T, r, sigma, q=0):
d1 = (np.log(S/K) + (r - q + 0.5sigma2)T) / (sigma*np.sqrt(T))
d2 = d1 - sigma*np.sqrt(T)
put_price = Knp.exp(-rT)norm.cdf(-d2) - Snp.exp(-qT)norm.cdf(-d1)
return put_price
每条期权腿的输出:
- - 理论价格
- 提示:市场价格可能因买卖价差和美式与欧式定价差异而不同
第四步:计算希腊值
希腊值衡量期权价格对各种因素的敏感度:
德尔塔(Δ): 股票价格每变动$1,期权价格的变化
python
def delta_call(S, K, T, r, sigma, q=0):
d1 = (np.log(S/K) + (r - q + 0.5sigma2)T) / (sigma*np.sqrt(T))
return np.exp(-qT) norm.cdf(d1)
def delta_put(S, K, T, r, sigma,