options-strategy

Backtest multi-leg options strategies using Black-Scholes pricing and PnL simulation.

Updated May 5, 2026
One-click install
npx skills add https://github.com/wudye/traderAssistHK --skill options-strategy-wudye
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: options-strategy
Source: https://github.com/wudye/traderAssistHK/tree/main/backend/src/skills/options-strategy
Command: npx skills add https://github.com/wudye/traderAssistHK --skill options-strategy-wudye

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the guesswork of designing and evaluating multi-leg options strategies by simulating theoretical pricing, PnL paths, and daily Greeks exposure before you risk capital.

Core Features & Use Cases

  • Black-Scholes Pricing & Greeks: Computes European option values and portfolio-level Delta/Gamma/Theta/Vega using historical volatility as a proxy for implied volatility.
  • Multi-Leg Backtesting: Simulates open/close/exercise/expire outcomes for option portfolios composed of multiple legs across different strikes and expiries.
  • Strategy Coverage for Common Market Views: Supports hedging, volatility, and range-bound structures such as covered calls, protective puts, straddles/strangles, iron condors, butterflies, and calendar spreads.
  • Practical Outputs for Decision-Making: Generates equity and trade records plus metrics and Greeks time series for post-run analysis.

Quick Start

Configure your codes, date range, initial cash, and options settings in config.json, then ask the runner to execute the options backtest using engine set to "options".

Frequently Asked Questions about options-strategy

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

FAQPage Schema
How do I backtest multi-leg options strategies with Greeks analysis?

You can backtest multi-leg options strategies by configuring codes, date range, initial cash, and options settings in config.json, then executing the backtest with the engine set to "options" to generate equity records and Greeks time series.

What options strategies can I simulate using Black-Scholes pricing?

Black-Scholes pricing supports simulating hedging, volatility, and range-bound structures including covered calls, protective puts, straddles, strangles, iron condors, butterflies, and calendar spreads.

How does options backtesting handle implied volatility and Greeks calculation?

Options backtesting derives theoretical European option prices using Black-Scholes and computes portfolio-level Delta, Gamma, Theta, and Vega by using historical volatility from underlying OHLCV time series as a proxy for implied volatility.

Can I backtest European-style options for crypto and equity underlyings?

Yes, you can backtest European-style option legs for both crypto and equity underlyings by providing underlying OHLCV time series data and configuring risk_free_rate, iv_source, and contract_multiplier in the options_config.

What is the best way to evaluate options portfolio PnL and expiration outcomes?

The best way to evaluate options portfolio PnL and expiration outcomes is running a multi-leg backtest that simulates open, close, exercise, and expire events while generating trade records and Greeks exposure metrics for post-run analysis.

Does options backtesting support American-style exercise for multi-leg portfolios?

No, options backtesting currently simulates European-style option legs only, meaning it handles expiration outcomes without supporting early exercise for multi-leg portfolios across different strikes and expiries.