What problem does it solve?
This Skill simplifies building and backtesting multi-leg options strategies by synthesizing theoretical option prices using the Black-Scholes model from underlying price series, then simulating portfolio PnL, Greeks exposure, and expiration outcomes without requiring market option quotes.
Core Features & Use Cases
- Black-Scholes pricing: Compute European call and put theoretical prices using historical volatility as an implied-volatility proxy.
- Multi-leg backtesting: Support for covered calls, protective puts, straddles, strangles, iron condors, butterflies, and calendar spreads with trade-level open/close/expire handling.
- Portfolio Greeks and reporting: Aggregate daily delta, gamma, theta, and vega and emit artifacts such as equity.csv, trades.csv, greeks.csv, metrics.csv, and raw OHLCV per code for analysis.
- Use Case: Run a calendar spread or iron condor backtest on an equity or crypto underlying to measure PnL, time decay, and volatility sensitivity across multiple expiries.
Quick Start
Use the options-strategy skill to backtest an iron condor on 000300.SH from 2020-01-01 to 2024-12-31 using historical IV and a 0.05 risk-free rate.