Alphagbm Pnl Simulator logo

Alphagbm Pnl Simulator

CommunityPopular
AlphaGBM
alphagbm-pnl-simulator

P&L simulation engine for any single-leg or multi-leg option position. Generates profit/loss diagrams at expiry, P&L over time, what-if scenarios (price, IV, time), breakeven analysis, and probability distributions. Use when: testing a trade idea, visualizing risk/reward, running what-if scenarios, checking breakeven points, stress-testing a position. Triggers on: "simulate PnL for AAPL bull call spread", "what if NVDA drops 10%", "P&L diagram", "test my iron condor", "breakeven analysis", "stress test my position", "what happens at expiry".

Overview

PublisherAlphaGBM
Repositoryskills
Skill namealphagbm-pnl-simulator
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 Pnl Simulator 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-pnl-simulator .claude/skills/alphagbm-pnl-simulator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Alphagbm Pnl Simulator 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 Pnl Simulator 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 Pnl Simulator 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 P&L Simulator

Prerequisites

  • API Key: Set env ALPHAGBM_API_KEY (format agbm_xxxx...).
  • Base URL: Default https://alphagbm.zeabur.app. Override with env ALPHAGBM_BASE_URL.

What This Skill Does

Simulates profit and loss for any option position across multiple dimensions -- underlying price, implied volatility, and time to expiration. Produces P&L diagrams, breakeven analysis, and probability-weighted outcome distributions.

Four Core Strategies for Context

StrategyIdeal TrendMax ProfitMax Loss
Sell PutNeutral / BullishPremium receivedStrike - Premium
Sell CallNeutral / BearishPremium receivedUnlimited (uncovered)
Buy CallBullishUnlimitedPremium paid
Buy PutBearishStrike - PremiumPremium paid

Simulation Capabilities

CapabilityDescription
P&L at ExpiryClassic payoff diagram -- profit/loss vs. underlying price at expiration
P&L Over TimeHow the position's value evolves from now to expiry (time-series curves)
What-If: PriceVary underlying price by fixed amount or percentage -- see impact on P&L
What-If: IVVary implied volatility -- see how IV crush or spike affects the position
What-If: TimeFast-forward to a specific date -- see theta decay impact
Probability DistributionMonte Carlo simulation of outcomes with probability of profit
Breakeven AnalysisExact breakeven points with time-varying breakevens before expiry

Supported Position Types

  • Single leg (long call, long put, short call, short put)
  • Two-leg spreads (vertical, calendar, diagonal)
  • Three-leg combinations (butterflies, ratio spreads)
  • Four-leg combinations (iron condors, iron butterflies, double diagonals)
  • Arbitrary multi-leg custom positions

API Endpoint

P&L Simulator

POST /api/options/tools/simulate
Content-Type: application/json

{
  "symbol": "AAPL",
  "spot": 150.0,
  "legs": [
    {"action": "buy", "option_type": "call", "strike": 145, "expiry_days": 30, "iv": 0.26},
    {"action": "sell", "option_type": "call", "strike": 150, "expiry_days": 30, "iv": 0.25}
  ]
}

Parameters:

  • symbol (required): Ticker symbol
  • spot (required): Current underlying price
  • legs (required): Array of option legs, each with:
    • action: "buy" or "sell"
    • option_type: "call" or "put"
    • strike: Strike price
    • expiry_days: Days to expiration
    • iv: Implied volatility as decimal (e.g., 0.26 for 26%)

How to Use

Input

  • Required: Position definition (legs with strike, expiry, type, quantity, entry price)
  • Optional: Scenario parameters (price range, IV shift, target date), number of Monte Carlo paths

Output Structure

json
{
  "ticker": "AAPL",
  "price": 218.45,
  "position": {
    "strategy": "Bull Call Spread",
    "legs": [
      {"action": "buy", "type": "call", "strike": 215, "expiry": "2026-04-18", "price": 7.20, "qty": 1},
      {"action": "sell", "type": "call", "strike": 225, "expiry": "2026-04-18", "price": 3.40, "qty": 1}
    ],
    "net_debit": 380
  },
  "pnl_at_expiry": {
    "price_axis": [195, 200, 205, 210, 215, 218.8, 220, 225, 230, 235],
    "pnl_axis":   [-380, -380, -380, -380, -380, 0, 120, 620, 620, 620]
  },
  "pnl_over_time": {
    "dates": ["2026-03-29", "2026-04-04", "2026-04-11", "2026-04-18"],
    "curves": {
      "at_210": [-180, -220, -290, -380],
      "at_218": [50, 30, 10, -20],
      "at_225": [320, 400, 510, 620]
    }
  },
  "breakevens": [218.80],
  "max_profit": 620,
  "max_loss": 380,
  "risk_reward_ratio": 1.63,
  "probability_of_profit": 0.56,
  "expected_value": 42.50,
  "scenarios": {
    "price_down_10pct": {"pnl": -380, "pnl_pct": -100},
    "price_up_10pct": {"pnl": 620, "pnl_pct": 163},
    "iv_crush_50pct": {"pnl": -85, "note": "IV drop hurts long spread slightly"},
    "iv_spike_50pct": {"pnl": 120, "note": "IV rise helps long spread slightly"}
  }
}

Example Queries

User SaysWhat Happens
"Simulate PnL for AAPL bull call spread"Full P&L diagram at expiry + over time
"What if NVDA drops 10%?"Price scenario analysis for current position
"P&L diagram"Expiry payoff chart for any defined position
"Test my iron condor"Full simulation with breakevens, max P&L, probability of profit
"Breakeven analysis for my spread"Exact breakeven points + time-varying breakevens
"Stress test: what if IV doubles?"IV shock scenario with P&L impact
"Monte Carlo for my straddle"10,000-path simulation with outcome distribution

Mock Data

Demo tickers available without API key: AAPL, NVDA, SPY, TSLA, META. Simulations use realistic pricing models calibrated to mock-data/ snapshots.

Related Skills

  • alphagbm-options-strategy -- Get strategy recommendations, then simulate them here
  • alphagbm-greeks -- Understand the Greeks driving the P&L changes
  • alphagbm-iv-rank -- Context for whether IV scenarios are realistic
  • alphagbm-vol-surface -- Full IV landscape for calibrating simulations

Powered by AlphaGBM -- Real-data options & research intelligence for traders and AI agents. 10K+ users.

Frequently asked questions

What does the Alphagbm Pnl Simulator AI skill do?

P&L simulation engine for any single-leg or multi-leg option position. Generates profit/loss diagrams at expiry, P&L over time, what-if scenarios (price, IV, time), breakeven analysis, and probability distributions. Use when: testing a trade idea, visualizing risk/reward, running what-if scenarios, checking breakeven points, stress-testing a position. Triggers on: "simulate PnL for AAPL bull call spread", "what if NVDA drops 10%", "P&L diagram", "test my iron condor", "breakeven analysis", "stress test my position", "what happens at expiry".

Why use Alphagbm Pnl Simulator on TypingMind?

Because you install it once and use it with any model. Alphagbm Pnl Simulator 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 Pnl Simulator in TypingMind?

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

Which AI models can use Alphagbm Pnl Simulator?

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 Pnl Simulator?

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

Is the Alphagbm Pnl Simulator 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 👇