options-strategy

Backtest option strategies with Black-Scholes pricing and portfolio Greeks.

6.1k|1.2k|Updated Jun 9, 2022
One-click install
npx skills add https://github.com/charliedream1/ai_quant_trade --skill options-strategy-charliedream1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: options-strategy
Source: https://github.com/charliedream1/ai_quant_trade/tree/main/a_%E5%85%A8%E7%BD%91%E4%BC%98%E7%A7%80%E8%B5%84%E6%BA%90/10_%E5%A4%A7%E6%A8%A1%E5%9E%8B/07_skill%E5%8C%85/vibe_trading_skills/options-strategy
Command: npx skills add https://github.com/charliedream1/ai_quant_trade --skill options-strategy-charliedream1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Backtest and analyze option strategies starting from underlying price data, computing theoretical option prices via Black-Scholes and tracking portfolio Greeks and PnL.

Core Features & Use Cases

  • Backtest option portfolios using a Black-Scholes pricing engine and Greeks risk analysis across multiple legs.
  • Support hedging and volatility trading strategies such as covered calls, protective puts, straddles, strangles, iron condors, butterflies, and calendar spreads.
  • Export artifacts including equity, trades, and greeks for review and reporting.

Quick Start

Load your market data and run the option-backtest engine for a predefined portfolio to generate PnL and Greeks.

Frequently Asked Questions about options-strategy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I backtest options strategies using Black-Scholes pricing?

You can backtest covered calls, protective puts, straddles, strangles, iron condors, butterflies, and calendar spreads by running the engine on your underlying price data to generate daily PnL and aggregate portfolio Greeks.

How does Black-Scholes options backtesting track portfolio Greeks?

Black-Scholes options backtesting tracks portfolio Greeks by deriving theoretical option prices across multiple legs, calculating aggregate risk metrics, and exporting them as artifacts for comprehensive risk analysis and reporting.

Can I simulate daily PnL for multi-leg spreads like iron condors and butterflies?

Yes, you can simulate daily PnL for multi-leg spreads like iron condors and butterflies by defining the portfolio legs and running the backtest engine to evaluate performance using the Black-Scholes pricing model.

What market data do I need to backtest volatility trading with straddles and strangles?

To backtest volatility trading with straddles and strangles, you need historical underlying price data to input into the Black-Scholes engine, which then generates theoretical prices, equity curves, and Greeks artifacts for review.

Does the options backtesting engine support hedging strategies with covered calls and protective puts?

Yes, the options backtesting engine supports hedging strategies by simulating covered calls and protective puts, computing theoretical prices via Black-Scholes, and tracking portfolio Greeks and PnL for risk management analysis.

What artifacts are exported when backtesting option portfolios?

When backtesting option portfolios, the engine exports artifacts including equity curves, trade logs, and Greeks data, enabling detailed performance review and risk reporting for your derivatives strategies.