- Home
- Skills
- Trading & Investing
- Heisenbug: Forex Arbitrage Simulator
More screenshots
Works with the AI Agents you already use
Heisenbug: Forex Arbitrage Simulator
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
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
| Metric | Threshold 0.4 | Threshold 0.8 |
|---|---|---|
| Total Trades | 842 | 156 |
| Win Rate | 68.2% | 91.5% |
| Total Return | +12.4% | +4.1% |
| Max Drawdown | -3.1% | -0.8% |
| Final Balance | 11,240.00 | 10,410.00 |
| Avg Profit/Trade | 1.47 | 2.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
- Run a fee sensitivity test by increasing
--feeto 0.0005 to find the breakeven point for the 0.4 strategy. - Test these thresholds against a tighter market by reducing
--shift-askand--shift-bidto 0.0005. - Import your own historical data using the
--csvflag 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
File Scopes
Runs one local Python script. Reads an optional user-supplied CSV. No network access, no credentials.
What's inside
Frequently Asked Questions
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.