More screenshots

    Works with the AI Agents you already use

    Heisenbug: Forex Arbitrage Simulator

    by Tomás Teixeira

    1

    Simulate a two-venue forex arbitrage bot locally in Python. Tune confidence threshold, trade size and fees, and compare settings on the same market. Simulation only, no real orders.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Heisenbug: Forex Arbitrage Simulator

    Heisenbug: Forex Arbitrage Simulator

    Example session with this skill installed

    Simulate an arbitrage bot on EUR/USD for 1000 steps with a 0.0002 fee and compare confidence thresholds of 0.4 and 0.8.

    • Read your context and instructions
    • Compiled the heisenbug

    I have executed the simulation for 1000 market ticks using a starting balance of 10,000. The test compared two confidence thresholds against the same synthetic market price action to ensure a fair comparison.

    Simulation Results: EUR/USD Arbitrage

    MetricThreshold 0.4Threshold 0.8
    Total Trades842156
    Win Rate68.2%91.5%
    Total Return+12.4%+4.1%
    Max Drawdown-3.1%-0.8%
    Final Balance11,240.0010,410.00
    Avg Profit/Trade1.472.63

    Analysis
    The 0.4 threshold captured significantly more volume, leading to higher total returns despite a lower win rate. However, the 0.8 threshold showed much higher stability with a drawdown of less than 1%, making it more suitable for risk-averse configurations. At a fee of 0.0002 per leg, both strategies remained profitable, but the 0.4 threshold is more sensitive to fee increases due to the higher trade frequency.

    Next steps

    1. Run a fee sensitivity test by increasing --fee to 0.0005 to find the breakeven point for the 0.4 strategy.
    2. Test these thresholds against a tighter market by reducing --shift-ask and --shift-bid to 0.0005.
    3. Import your own historical data using the --csv flag for a non-synthetic validation.

    Disclaimer: This is a simulation only. Results do not account for slippage or execution latency and are not financial advice.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Heisenbug: Forex Arbitrage Simulation & Strategy Testing. Simulate a two-venue currency arbitrage bot from your AI coding agent. Tune the confidence threshold, trade size and fees, compare settings side by side on the same market, and find the fee level where the strategy stops working. Use the built-in synthetic market or your own bid/ask CSV. Includes three worked examples with real output and reference guides on strategy and metrics. Runs locally in plain Python with no dependencies, accounts or API keys. Simulation only: no real orders, not financial advice.

    Assumes instant fills and unlimited liquidity. No slippage modeling. Requires Python 3.8+. Simulation only; no live exchange connectivity.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 15 days ago

    Software
    Python 3.8+

    Permissions

    Terminal / Shell
    Read Files

    File Scopes

    *.csv

    Runs one local Python script. Reads an optional user-supplied CSV. No network access, no credentials.

    Listed15 days ago

    What's inside

    Frequently Asked Questions

    The skill includes the core Python simulation engine, a set of template configuration files, and sample CSV data for immediate testing of the arbitrage logic.

    This skill is designed as a standalone Python engine; you can invoke it from any AI agent capable of executing local Python scripts or providing input parameters to a CLI-based tool.

    Heisenbug is built to be extremely lightweight, utilizing only the Python 3.8+ standard library, meaning you do not need to install heavy dependencies like Pandas or NumPy.

    Yes, the engine allows you to ingest custom CSV files containing bid/ask quotes, enabling you to test your bot against specific historical market events or proprietary datasets.

    Heisenbug calculates profitability by factoring in fixed or percentage-based transaction fees across both venues, helping you identify the exact 'alpha' required to overcome exchange costs.

    While the current version focuses on single-pair dual-venue arbitrage, buyers receive lifetime access to future updates, including any expansions to multi-leg or triangular arbitrage logic.

    New in Trading & Investing

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.