Skip to content
All research
InvestingStack / ResearchOpen Source

Replay one backtest in Vibe-Trading and QuantDinger

Both engines bought 50 units at 100 and sold them at 110 in our six-bar replay. The useful comparison starts with the fills and the assumptions that produced them.

In this article 5 sections

The short read

  1. Both engines used the next bar's open for the two fills. The close that triggered each signal was different from the fill price.
  2. The same 10,000 starting balance reached 10,500 in both runs under the fixture's zero-cost assumptions.
  3. Vibe-Trading exposes fill and position files. QuantDinger keeps signal and fill timestamps in its order ledger.

Two backtests can use the same trading rule and produce different results because they choose a different fill price, position size or end-of-window treatment. Before comparing return charts, account for every fill on a trade you can calculate by hand.

We ran an upstream engine from Vibe-Trading and one from QuantDinger against the same six synthetic daily bars. The fixture uses AAPL as a routing identifier. All prices, volume and simulated trades are invented. The evidence packet carries both adapters, the exact data and the original execution records.

Freeze the decision and execution rules

Start with 10,000 USD and no position. After the first bar, enter once when a daily close reaches 102 or higher and exit when a subsequent close falls below 98. Fill at the next available open. Re-entry is disabled. The fixture uses no leverage, commission or slippage. Its supplied daily index labels are bar dates.

Vibe-Trading expresses the entry as a 50% target in its signal series and uses hold-mode sizing. The 100 entry price yields exactly 50 units. QuantDinger's handle_data submits a 50-unit order, then requests a zero position on exit. The two implementations establish the same first position for this CSV. The sizing conventions can diverge when prices or starting cash change.

Run the Vibe-Trading component with the frozen data

Vibe-Trading's documented workflow organizes a run around config.json and code/signal_engine.py. It supports a local data loader and stores results in the run directory. Its wider CLI can start with natural-language research and a configured model. We supplied authored signal code and an in-memory loader backed by the published CSV directly to the pinned US equity engine. Research guide · Runner · Global equity engine

After a replay, open artifacts/fills.jsonl, positions.csv and equity.csv. The fills give quantity, execution price and fee. Actual and target positions are stored in separate files. Start with actual positions if checking the account balance. Use target positions to inspect the strategy request.

Run the QuantDinger component in Linux

QuantDinger documents a self-hosted Compose application with a strategy editor, a backtest service and an order ledger. For the fixed-data replay we call its Strategy API V2 runner with the CSV as a frame for USStock:AAPL. The code goes through the regular strategy compilation and simulation path. The harness writes the returned run object as JSON, including orderLedger and equityCurve. The component harness takes the place of the full application's market-data and persistence setup. Setup guide · Strategy development guide

The direct macOS check stopped when the strategy worker could not apply its memory limit. The provided Linux container completed the same run with networking disabled and the strategy sandbox active. Its input and source mounts are read-only. Pinned worker limits

Reconcile the fills before using the metrics

Event

Enter

Signal
Jan 6 close at 103
Fill in both engines
Jan 7 open at 100, buy 50

Event

Exit

Signal
Jan 8 close at 96
Fill in both engines
Jan 9 open at 110, sell 50

Event

Finish

Signal
Jan 12 bar
Fill in both engines
Flat, ending equity 10,500 USD

The account pays 5,000 USD at entry and receives 5,500 USD at exit. A spreadsheet that filled at the same close that triggered each signal would compute a 350 USD loss on the same fifty units. Here, the next open has a large invented price gap. That timing choice alone flips the sign of the result. The six bars establish how the two components handled this case.

For a new research run, write down the intended fill timing and compare it with the saved fills. Then add costs, check order restrictions and decide what happens to an open position at the end. Benchmark conventions and annualized metrics can differ even when fill records agree.

Reproduce the exact runs

Download the evidence packet and checksum. The reproduction instructions pin both checkouts, Python dependencies and the Linux image. The fill comparison records the normalized events and expected cash arithmetic. The packet includes the Vibe-Trading fill and equity artifacts and the QuantDinger result JSON.

The replay tests a narrow software contract with invented data. It supplies no estimate of strategy profitability, order quality or real-world market impact. For a portfolio-level worked example using explicit funding and costs, see rebalance with new cash or sell.

Cite this research

InvestingStack (2026). Replay one backtest in Vibe-Trading and QuantDinger. InvestingStack. https://investingstack.ai/research/vibe-trading-quantdinger-backtest

Published: Nov 18, 2026

Evidence and downloads

Public sources last checked Nov 18, 2026. Capabilities can change after that date.

InvestingStack publishes research for information only. Nothing on this page is investment advice. Disclosures · Methodology

agents / open source / backtesting / setup / reproducibility

Continue reading

Consulting

Agentic systems, designed around your strategy.

Most agent frameworks are built for a demo. A session works through your strategy and current setup and maps it to an architecture: agent roles, data, models, guardrails and an implementation plan you can execute.

Not investment advice. Consulting clients get no placement or ranking influence on this site. Disclosures