Alphagbm Bps Backtest logo

Alphagbm Bps Backtest

CommunityPopular
AlphaGBM
alphagbm-bps-backtest

Full walk-forward Bull Put Spread backtest over ~8 years of daily history. Runs both the signal (FearScore ≥ 60 entry) version AND a no-signal control in the same request, so you can quantify whether the fear-entry rule actually delivers alpha for this ticker under your parameters. Returns equity curve, 4 KPIs (annualized return / win rate / max drawdown / Sharpe), trade ledger, and a plain-language takeaway. Triggers: "backtest BPS on QQQ", "bull put spread backtest", "does FearScore work on SPY", "what DTE for BPS", "optimal bull put spread delta", "BPS strategy backtest", "credit spread backtest", "backtest short put spread"

Overview

PublisherAlphaGBM
Repositoryskills
Skill namealphagbm-bps-backtest
Stars
2.7K
Forks
290
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by AlphaGBM on GitHub. Read the source before you install it.

Installation

Install the Alphagbm Bps Backtest AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AlphaGBM/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/alphagbm-bps-backtest .claude/skills/alphagbm-bps-backtest
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Alphagbm Bps Backtest in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Alphagbm Bps Backtest on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Alphagbm Bps Backtest is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AlphaGBM BPS Backtest

Backtests the Bull Put Spread (short put + long put at lower strike) as a mechanical strategy over 2018–present on any ticker, with two passes per call:

  1. With Signal — only enters when the per-ticker FearScore is ≥ your threshold
  2. No Signal (Control) — enters unconditionally every Monday

The side-by-side comparison shows whether the signal is doing work, or whether you're paying 1 credit for noise.

Parameters

All optional except ticker:

ParamDefaultRangeMeaning
tickerrequiredUS / HK / CNUnderlying
dte_target147–45Days to expiry on entry
short_delta0.250.15–0.35Absolute delta of the short put leg
spread_width5.02–10Dollar width of the spread
take_profit_pct0.500.20–0.80Close when realized % of max profit hits this
fear_threshold6040–80FearScore ≥ X is entry signal
start_date2018-01-01YYYY-MM-DDBacktest start
end_date2026-04-20YYYY-MM-DDBacktest end
include_controltrueboolRun no-signal control pass alongside

What's Returned

Per pass (with_signal and no_signal):

  • total_trades, win_rate_pct, annual_return_pct, sharpe, max_drawdown_pct, roc_pct, avg_holding_days, avg_pnl_per_trade, total_pnl, final_capital
  • exit_reasons — count by take_profit / stop_loss / expiry_otm / expiry_itm / close_early
  • trades[] — full ledger (entry/exit date, strikes, credit, pnl, reason)
  • equity_curve[] — per-day cumulative capital
  • pnl_histogram — bucket counts for the P&L distribution

Plus:

  • summary — one-paragraph zh/en takeaway comparing signal vs control, with ⚠️ flags when drawdown or win rate look problematic

Methodology Notes

  • IV is proxied by 20-day historical volatility (HV20) for BS pricing. Historical option-chain IV is unaffordable to source at scale; HV20 is a reasonable proxy but will under-estimate IV around events. Live results typically outperform backtest because of this.
  • FearScore is reconstructed from the same 6 indicators the live version uses, but computed from cheap historical price + volume data only.
  • Entries filtered by max_positions (3) and min_entry_spacing_days (3) and a risk_per_trade cap (0.5% of capital).

How to Use

Example Queries:

  • backtest BPS on QQQ — Default params, signal vs control comparison
  • does FearScore work on SPY — Same call, reads the comparison summary
  • backtest bull put spread IWM DTE 21 delta 0.30 — Custom params
  • what DTE works best for BPS on QQQ — Run a few with different DTEs, compare
  • bps fear threshold 70 vs 60 on NVDA — Run two calls with different thresholds

Mock Data

Mock data in mock-data/bps-backtest/ — examples for QQQ with signal ON and OFF.

API Endpoint

POST /api/options/bps-backtest
Content-Type: application/json

Request body:

json
{
  "ticker": "QQQ",
  "dte_target": 14,
  "short_delta": 0.25,
  "spread_width": 5.0,
  "take_profit_pct": 0.50,
  "fear_threshold": 60,
  "start_date": "2018-01-01",
  "end_date": "2026-04-20",
  "include_control": true
}

Response:

json
{
  "success": true,
  "ticker": "QQQ",
  "period": {"start": "2018-01-01", "end": "2026-04-20"},
  "with_signal": {
    "total_trades": 28, "win_rate_pct": 100, "annual_return_pct": 10.8,
    "sharpe": 16.3, "max_drawdown_pct": 0.0, "trades": [...], "equity_curve": [...],
    "pnl_histogram": {...}, "exit_reasons": {"take_profit": 20, "expiry_otm": 8}
  },
  "no_signal": {
    "total_trades": 185, "win_rate_pct": 82, "annual_return_pct": 3.5,
    "sharpe": 2.1, "max_drawdown_pct": -8.2, ...
  },
  "summary": {
    "zh": "QQQ · 2018-2026 · 使用 FearScore ≥ 60 触发 BPS 入场,共交易 28 笔,年化 +10.8%,胜率 100%,最大回撤 0.0%。 同参数无信号对照组年化 +3.5%、胜率 82%;信号版本高出无信号组 7.3 个百分点。",
    "en": "QQQ · 2018-2026 · BPS entry on FearScore ≥ 60 over 28 trades: annualized +10.8%, win rate 100%, max drawdown 0.0%. The no-signal control under the same params: annualized +3.5%, win rate 82%. Signal version outperforms by 7.3 pp."
  }
}

Pricing: 1 option-analysis credit per call; 30-min cache per parameter hash (cache hits free). Expect ~5-10s compute for a fresh hash.

Related Skills

SkillRelevance
alphagbm-fear-scoreThe live version of the entry signal being backtested
alphagbm-options-strategyBuild a custom BPS after deciding params
alphagbm-pnl-simulatorForward-simulate a specific BPS at various future prices

Powered by AlphaGBM — Real-data options & research intelligence. 10K+ users.

Frequently asked questions

What does the Alphagbm Bps Backtest AI skill do?

Full walk-forward Bull Put Spread backtest over ~8 years of daily history. Runs both the signal (FearScore ≥ 60 entry) version AND a no-signal control in the same request, so you can quantify whether the fear-entry rule actually delivers alpha for this ticker under your parameters. Returns equity curve, 4 KPIs (annualized return / win rate / max drawdown / Sharpe), trade ledger, and a plain-language takeaway. Triggers: "backtest BPS on QQQ", "bull put spread backtest", "does FearScore work on SPY", "what DTE for BPS", "optimal bull put spread delta", "BPS strategy backtest", "credit spread...

Why use Alphagbm Bps Backtest on TypingMind?

Because you install it once and use it with any model. Alphagbm Bps Backtest is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Alphagbm Bps Backtest in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AlphaGBM/skills/tree/main/skills/alphagbm-bps-backtest. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Alphagbm Bps Backtest?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Alphagbm Bps Backtest?

As many as you like. As long as a model supports skills, you can use Alphagbm Bps Backtest with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Alphagbm Bps Backtest AI skill free?

Yes. It is published on GitHub by AlphaGBM under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇