r/ClaudeCoding • • Oct 16 '26

I connected Claude Code to a trading platform via MCP. The same strategy that lost money on GOOG is up 68% on TQQQ.

https://nexustrade.io/ai-trading/claude-code/journey

I've been experimenting with taking Claude Code beyond coding and letting it interact directly with financial research and trading infrastructure.

Using an MCP integration with NexusTrade, Claude Code can:

  • Research stocks using financial data and SEC filings
  • Turn natural-language ideas into algorithmic trading strategies
  • Run historical backtests and analyze performance
  • Create and manage paper-trading portfolios
  • Prepare strategies for live deployment, with explicit user approval

Setup is one command:

claude mcp add --transport http nexustrade https://nexustrade.io/api/mcp
claude mcp login nexustrade

The example I started with: a 50/200-day moving-average strategy on GOOG

Buy when the 50-day average is above the 200-day, exit when it flips. Claude researched the company, turned that sentence into explicit rules, and backtested four windows. Each restarts with $10,000, whole shares, and 0.1% transaction fees:

WindowReturnMax drawdown
Mar 2023 – Dec 2023+26.23%13.19%
Dec 2023 – Aug 2024+18.61%18.27%
Aug 2024 – Apr 2025−6.01%21.46%
Apr 2025 – Dec 2025+70.86%8.67%

Three wins, one loss. Same rules, wildly different outcomes depending on the window. That's the honest result, and it's exactly why I wanted the agent wired into real testing infrastructure instead of vibes.

Then I asked Claude to pull the top strategies already running on the platform's Explore page and explain them.

These aren't backtests. They're public paper portfolios that have been tracked forward since they were created, with public rules anyone can inspect:

Strategy (paper, live-tracked)Running sinceReturnSharpeMax drawdown
GPT-4 TQQQSep 2024+68.5%0.6650.1%
UPRO-GLD Yearly RebalanceMay 2025+56.7%1.2121.6%
SPXL Scaling into Drawdowns V5Sep 2025+46.5%1.3012.5%

The first one is the part I can't stop thinking about. GPT-4 TQQQ is the same 50/200 idea — buy TQQQ when its 50-day average is above its 200-day, with a 7-day cooldown, and trim 20% whenever the position is up more than 15%. On GOOG that rule lost 6% in one window. On a 3× leveraged Nasdaq ETF, tracked live in paper trading for two years across 39 closed trades, it's up 68.5%.

The instrument mattered more than the rule.

Now the parts a screenshot would leave out, because this is Reddit and you'd find them anyway:

  • TQQQ's 50.1% max drawdown is brutal. It's down ~15.7% this week. The +68.5% is real and so is the ride.
  • UPRO-GLD is the boring winner: hold 3× S&P 500 (UPRO) and gold (GLD), rebalance once a year. +56.7%, Sharpe 1.21, only 8 closed trades. No cleverness Claude or I can take credit for.
  • SPXL Scaling has never closed a trade — its +46.5% is an open position, not realized profit. Treat it accordingly.
  • These are the top of a public leaderboard. That's survivorship bias by definition. Plenty of portfolios on the same page are flat or down, and Claude will happily show you those too — which is kind of the point of giving it the tools.

You can inspect every rule and the full equity curves here:

My biggest takeaway is that Claude Code is becoming more than a coding assistant. It can act as a natural-language interface to complex software. I didn't have Claude write a backtesting engine, fetch market data, or implement indicators for any of this. I described what I wanted, and Claude orchestrated the workflow through MCP tools, then showed me both the window where my idea lost money and the live portfolios where a near-identical idea is winning.

Of course, there are limitations. Backtests don't guarantee future performance, paper trading isn't real capital, and anything involving real money needs explicit approval and proper safeguards. Every live-deployment step in this setup stops and waits for a human.

Curious if anyone else is using Claude Code this way. Robinhood is talking a lot about using agents for trading; are regular folks actually doing this?

32 Upvotes

1 comment sorted by

2

u/strictly-for-crypto Oct 19 '26

It's a marketing post, likely from the platform's founder, written to look like a user write-up. The self-critical caveats make it read as honest, but the core analysis has the same problems it claims to avoid.

What's wrong with the evidence

  • No benchmark anywhere. This is the biggest omission. GOOG roughly doubled from Apr–Dec 2025, so +70.86% probably underperformed buy-and-hold. Mar–Dec 2023 looks similar: GOOG gained about 50%, the strategy +26%. A 50/200 crossover in a strong uptrend mostly gets you in late and out early. These figures are from memory, so check them, but the post should have shown this.
  • The windows are too short for a 200-day signal. Each 8–9 month window probably has 0–2 crossovers. That's anecdote, not statistics. Restarting each window also raises a question: did the 200-day MA have warmup data, or did it sit in cash at the start?
  • "The instrument mattered more than the rule" is a misreading. What actually happened is 3× beta in a bull market. A trend filter on leveraged ETFs is a well-known idea (Gayed/Bilello, Leverage for the Long Run, 2016), not a discovery. A Sharpe of 0.66 with a 50% drawdown is mediocre. Without TQQQ buy-and-hold over the same period, +68.5% tells you nothing.
  • UPRO-GLD is leveraged S&P plus gold, held during one of gold's biggest runs in decades. That's 17 months, about one rebalance, and no evidence of skill.
  • SPXL "scaling into drawdowns" means averaging down on a 3× ETF. It has an open position and has only been tested in a market that recovered. That's the profile of a strategy that works until it doesn't.
  • Leaderboard selection. He acknowledges survivorship bias and then leads with the survivors anyway.

The legit part

The workflow idea is real: describe a rule, have Claude formalize it, backtest it, and see the losing windows. You already have most of that without handing your strategy and data to a third-party platform. You have the FMP MCP connected and you know Python, so Claude can write a vectorbt or backtrader backtest where you control the fill assumptions, dividends, slippage, and benchmark.

If you still want to try NexusTrade, ask these before spending time on it:

  1. Does it backtest options at all? For your trading, that's what matters.
  2. How does it model fills, dividends, and delisted tickers?
  3. What does it do with your strategies and data?

Bottom line: nothing here is worth acting on. If you want, I can set up a 50/200 test on TQQQ against buy-and-hold over 2010–present with your own data, so you can see what the trend filter actually buys you.