options-spread-conviction-engine

Verified·Scanned 2/17/2026

This skill analyses stock tickers and scores four vertical-spread strategies using Ichimoku, RSI, MACD, and Bollinger Bands. It runs shell install commands like cd {baseDir} && python3 scripts/setup-venv.sh and fetches market data via yf.download(...) from Yahoo Finance.

from clawhub.ai·v1.2.1·145.8 KB·0 installs
Scanned from 1.2.1 at 18a8171 · Transparency log ↗
$ vett add clawhub.ai/adamnaghs/options-spread-conviction-engine

Options Spread Conviction Engine

Multi-regime vertical spread analysis engine with Volume Multiplier and Dynamic Strike Suggestions.

A comprehensive scoring system for options traders that analyzes market conditions and provides actionable conviction scores (0-100) for four vertical spread strategies.

🎯 What It Does

Analyzes any stock ticker and scores four vertical spread strategies. v1.1.0 adds:

  • Volume Multiplier: Rewards breakouts with high volume and penalizes low-volume fakeouts.
  • Dynamic Strike Suggestions: Automatically calculates recommended short/long strikes based on 1-sigma Bollinger Band levels.
StrategyTypePhilosophyIdeal Setup
bull_putCreditMean ReversionBullish trend + oversold dip
bear_callCreditMean ReversionBearish trend + overbought rip
bull_callDebitBreakoutStrong bullish momentum
bear_putDebitBreakoutStrong bearish momentum

📊 Scoring Methodology

Credit Spreads (bull_put, bear_call)

IndicatorWeightPurpose
Ichimoku Cloud30 ptsTrend structure & equilibrium
RSI25 ptsEntry timing (mean-reversion)
MACD20 ptsMomentum confirmation
Bollinger Bands25 ptsVolatility regime

Debit Spreads (bull_call, bear_put)

IndicatorWeightPurpose
Ichimoku Cloud25 ptsTrend confirmation
RSI15 ptsDirectional momentum
MACD35 ptsBreakout acceleration
Bollinger Bands25 ptsBandwidth expansion

Total: 100 points

🎚️ Conviction Tiers

ScoreTierAction
80-100EXECUTEHigh conviction — Enter the spread
60-79PREPAREFavorable — Size the trade
40-59WATCHInteresting — Add to watchlist
0-39WAITPoor conditions — Avoid / No setup

🚀 Installation

Via ClawHub (Recommended)

clawhub install options-spread-conviction-engine
conviction-engine AAPL --strategy bull_call

Manual Installation

git clone https://github.com/YOUR_USERNAME/options-spread-conviction-engine.git
cd options-spread-conviction-engine
bash scripts/setup-venv.sh
./scripts/conviction-engine AAPL

📖 Usage

Basic Analysis

# Analyze AAPL with default strategy (bull_put)
conviction-engine AAPL

# Specific strategy
conviction-engine SPY --strategy bear_call
conviction-engine QQQ --strategy bull_call --period 2y

Multiple Tickers

conviction-engine AAPL MSFT GOOGL --strategy bull_put

JSON Output (for automation)

conviction-engine TSLA --strategy bear_call --json

Full Options

conviction-engine <ticker> [ticker...]
  --strategy {bull_put,bear_call,bull_call,bear_put}
  --period {1y,2y,3y,5y}
  --json
  --verbose

📈 Example Output

======================================================================
  CONVICTION REPORT: AAPL
  Strategy: Bull Call Spread (Debit)
======================================================================
  Price:       $272.19
  Trend:       BULL
  Conviction:  74.0 / 100
  Action Tier: 🟠 PREPARE
----------------------------------------------------------------------
  Strategy: Bull Call Spread (Debit)  (Breakout / Momentum)
  Ideal Setup: Strong bullish momentum + expanding volatility → breakout
  
  Market Trend: BULL | Score: 74.0/100 → PREPARE
  ✅ Trend aligns with bullish strategy
  
  [Ichimoku +18.8/25]
    Price is ABOVE the cloud
    TK Cross: BEARISH (Tenkan 262.17 vs Kijun 266.02)
    Cloud: GREEN, thickness 20.59
  [RSI +15.0/15]
    RSI(14) = 59.1 → STRONG_BULLISH_MOMENTUM (55–70)
  [MACD +17.3/35]
    MACD above Signal (2.4685 vs -0.3866)
    Histogram: 2.8551 (FALLING)
  [Bollinger +22.9/25]
    %B = 0.7886 | Bandwidth = 15.1431
    Bands: [241.05 — 260.79 — 280.54]
======================================================================

🎓 Academic Foundation

  • Ichimoku Cloud — Trend structure & equilibrium (Hosoda, 1968)
  • RSI — Momentum & mean-reversion potential (Wilder, 1978)
  • MACD — Trend momentum & acceleration (Appel, 1979)
  • Bollinger Bands — Volatility regime & price envelopes (Bollinger, 2001)

Combining orthogonal signals reduces false-positive rate compared to any single-indicator strategy (Pring, 2002; Murphy, 1999).

⚙️ Requirements

  • Python 3.10+ (Python 3.14+ supported via pure-Python mode)
  • Isolated virtual environment (auto-created on first run)
  • Internet connection (fetches data from Yahoo Finance)

Dependencies

  • pandas >= 2.0
  • pandas_ta >= 0.4.0 (pure Python mode on 3.14+)
  • yfinance >= 1.0
  • scipy
  • tqdm

Note: On Python 3.14+, the engine runs without numba (numba doesn't support 3.14 yet). Performance is slightly reduced but all functionality works correctly.

🏗️ Architecture

skills/options-spread-conviction-engine/
├── SKILL.md                    # Skill documentation
├── README.md                   # This file
├── _meta.json                  # Skill metadata
├── scripts/
│   ├── conviction-engine       # Main wrapper script
│   ├── setup-venv.sh          # Environment setup
│   ├── spread_conviction_engine.py  # Core engine (~1400 lines)
│   └── numba.py               # Python 3.14+ compatibility shim
└── assets/                     # Additional resources

🔧 How It Works

  1. Data Fetching — Downloads OHLCV data from Yahoo Finance
  2. Indicator Computation — Calculates Ichimoku, RSI, MACD, Bollinger Bands
  3. Strategy-Aware Scoring — Each indicator scored based on strategy type
  4. Aggregation — Sums component scores into 0-100 conviction
  5. Tier Classification — Maps score to actionable tier (WAIT/WATCH/PREPARE/EXECUTE)
  6. Rationale Generation — Human-readable explanation of the score

📝 License

MIT — Part of the Financial Toolkit for OpenClaw

🤝 Contributing

Contributions welcome! Areas for improvement:

  • Additional strategies (iron condors, calendars)
  • More indicators (ATR, VWAP, Volume Profile)
  • Backtesting module
  • Webhook alerts for high-conviction setups

⚠️ Disclaimer

This tool is for educational and research purposes only. Not financial advice. Always do your own due diligence before making investment decisions. Past performance does not guarantee future results.


Built with OpenClaw | Authors: Adam Naghavi & Leonardo Da Pinchy