Practical Guides · knowledge base from X

Hedge fund infrastructure for an AI trading system: bias-free data, compute outside the model, out-of-sample verdicts and a separate runner (the QuantGPT manual, with the 200-day rule 1999-2026 as the example)

A widely read article (1.57 million views) explaining why an AI model alone isn't enough for serious trading research - you need three layers, data (with failed companies and financials dated to when they came out, to avoid survivorship and look-ahead bias), compute (a server runs the backtest, the model only sends the rules, so it can't invent a Sharpe) and trading (a separate runner, with sealed keys and 30 days of paper). It is in effect the manual of a product, QuantGPT ($49-149 a month, connectable to Claude via MCP), but the useful part holds without it - the loop question → backtest → out-of-sample check → test on nearby parameters (plateau or lucky spike) → shock scenarios → journal → paper → execution, the example of the 200-day rule on the S&P 500 from 1999 to 2026 (same 6.8% annual growth but a worst fall of -24.4% against -56.8%) and the honest list of what the tool can't do (costs, taxes, slippage, profit guarantees).

✍️ Roan · @RohOnChain
🔗 Read the original on X · X Article · published 12 Oct 2026
📊 1,184 likes · 4,290 bookmarks · 1.57M views
Summary and adaptation in English; content and results belong to the author.

Part of the manual Trading and investing — the complete manual

Claimed result

There is no claimed profit: it's a method manual with one numeric example.

  • The 200-day rule on the S&P 500, 1999-2026 (gross of costs):
Metric Rule Buy and hold
Annual growth 6.8% 6.8%
Worst fall -24.4% -56.8%
Sharpe 0.61 0.44
$10,000 becomes $61,526 $61,009
  • Rule: in when the close is at least 1% above the 200-day average, out when it is at least 3% below; when out, short-term Treasury bills. 42 trades in 27 years.
  • The author's reading: the advantage isn't the return (identical) but the worst fall cut in half.

Proof: framework. The example can be reproduced by anyone with public data and its results are consistent with the literature on trend filters; everything else is a product description. The article is promotional: the author presents QuantGPT as the tool he built the system on, with links, prices and a free trial, and closes by inviting readers to DM him their setup. Not to be confused with third-party viral posts about alleged "$100 → $75,796" results tied to the same product, which remain unverified.

The key idea

An AI model with internet access is not a research system: it answers convincingly even when it doesn't have the right data and, if you ask it to run a backtest "in its head", it can make the numbers up. A hedge fund splits things into three layers:

  1. Data: clean, including companies that left the listings (otherwise you only test on the survivors, survivorship bias) and with financials dated to the day the market saw them (otherwise you use the future, look-ahead bias).
  2. Compute: a server runs the backtest; the model only sends the rules and receives results, so it can't hallucinate a Sharpe.
  3. Trading: a separate runner, with broker keys the model can't see, that no AI tool can use to send orders.

The model is there to ask questions, write rules and read results; the numbers come from the infrastructure.

Step-by-step playbook

1. The data layer

  • US daily prices for decades, delisted companies from 1998, fundamentals by filing date, crypto, commodities, FRED macro.
  • Nightly refresh and a public data verification page.
  • Alternatives cited: a Bloomberg terminal costs about $30,000 a year; the product $49-149 a month.
  • Existing AI connectors (the QuantConnect MCP, the TradingView MCP in beta since September 16) according to the author have no backtest tool or use delayed data.

2. The compute layer and the library

  • Cloud backtests: the model sends the rules, the server computes.
  • A library of 175 strategies, 63 runnable in one click: examples include Insider Buying, Magic Formula, Santa Claus Rally, Buffett-style moats, 52-week-high momentum, Piotroski F-Score, post-earnings drift (PEAD/SUE).
  • Three verdicts for each study: DATA VALIDATED (it holds), TRADE-OFF (it holds but at a cost, for example lower return in exchange for a smaller fall), NO EDGE (no advantage).
  • Out-of-sample split at 2015 by default: you build on the data before, you judge on the data after.
  • Futuretests: shock scenarios (tariffs, oil, the onset of a war) and engines for crypto, prediction markets and sports.
  • Monitor and a world events map.

3. The research loop

  1. Question in plain language ("does the 200-day rule reduce drawdowns?").
  2. Backtest on the server.
  3. Finding: read the verdict and the out-of-sample part.
  4. Sweep: try nearby parameters (50/100/150/200/250-day averages, 0/1/3/5% buffers). If results stay good across a plateau of parameters, the idea is robust; if it only works for one precise value, it's a lucky spike.
  5. Library: compare with known strategies.
  6. Events: test the rule in shock scenarios.
  7. Journal: log the idea; the system rechecks it over time with new data.
  8. Paper trading for 30 days.
  9. Execution (Pro plan only).

4. The trading layer

  • The runner hosts your code and sends orders to your own Alpaca account.
  • Sealed keys: the model can't see them.
  • 30 days of paper required before going live.
  • No AI tool places orders: AI does research, approved code executes.

5. Getting started (according to the article)

  1. A free account (5 backtests and 5 AI calls) or a 3-day trial with a card.
  2. Run the Magic Formula from the library by hand, to see how a result is read.
  3. Use "Ask AI" with your own model key.
  4. Connect Claude via MCP (endpoint https://terminal.quantgpt.co/mcp) with a dedicated "connector: Claude" key, revocable; the first useful commands are describe_capabilities and available_categories.
  5. Limits: 500 AI tool calls a day (base plan), 1,500 (Pro), reset at midnight UTC; 1, 3 or 5 keys depending on the plan.
  6. For ChatGPT Free/Go there's a paste-in pack, but it can't run studies.

6. The sweep prompt (in essence)

Ask the model to repeat the same backtest while varying the average (50, 100, 150, 200, 250 days) and the buffer (0, 1, 3, 5%), to put the results in a table and to say whether the advantage forms a plateau or depends on a single combination.

7. What the tool can't do (the author's list)

  • Guarantee profits.
  • Model costs, taxes and slippage: results are gross.
  • Trade for you.
  • Cover companies delisted before 1998.
  • Trade live outside Alpaca and outside US stocks and ETFs.
  • Turn a weak idea into an edge.

Tools and costs

Item Detail
Platform QuantGPT (quantgpt.co): limited free tier, $49-149 a month
Model Your own (own key) or Claude via MCP
Execution broker Alpaca (US stocks and ETFs only), Pro plan only
Paper trading 30 days before live
Alternatives cited Bloomberg (~$30,000/year), QuantConnect and TradingView MCPs (no backtest or delayed data, according to the author)
Costs not modeled Commissions, taxes, slippage (gross results)

Limitations

  • A promotional article: the method part is solid but it's written to sell a subscription; the comparisons with alternatives are the author's.
  • The example is gross of costs and taxes; with 42 trades in 27 years costs weigh little, but capital gains taxes and Treasury bill yields change the real picture.
  • No real trading results from the author or from users.
  • The automatic verdicts (DATA VALIDATED, etc.) depend on thresholds not explained in the text.
  • Execution limited to Alpaca and the US market; delisted data only from 1998.
  • Connecting a model via MCP to an external service requires handling keys carefully (dedicated, revocable).
← More guides in “Trading and investing (method and risk management)”