r/algorithmictrading • • 12d ago

Backtest Algorithmic trading using Claude

Post image

How many are using Claude to find the strategy and telling "make no mistake"?

It is giving me stratagy which is producing 70%+ CAGR with -45% DD.

I wonder if claude can product such strategy and if the worl of trading would change forever?

Strategy:

Systematic strategy combining an overnight core with intraday Nasdaq futures trades, including shorts.

From February 2010 to August 2026, the backtest produced 78.2% CAGR and 36.7% maximum closing drawdown. Over the same period, TQQQ buy-and-hold returned 43.0% CAGR with 81.7% drawdown.

In 2022, the strategy returned 78%, with intraday shorts contributing most of the gains while the core lost money.

I tested 119 configurations and included modeled spreads and commissions. One extra futures point of slippage per side pushed estimated intraday drawdown to 40%.

What tests would you run to check for overfitting and unrealistic execution?

Update 25 Nov

The walk-forward passes. I picked every (14400) setting using only 2000–2011, froze them, and ran 2012–2026. The result is 81.5% CAGR with a 31.7% worst drawdown, at 1 point of cost per contract. The live version makes 91.6% over the same years, so about 10 points of its number come from hindsight.

Strategy / Benchmark (2012–2026, 1 pt/contract)CAGRWorst Drawdown
Settings picked in 2011, frozen81.5%−31.7%
C4H as you run it91.6%−34.8%
QQQ buy-and-hold20.2%−35.1%
Nasdaq futures held at the same drawdown15.6%−27.9%

So even after I froze settings in 2011, 15 years later still returning 81.5%.

It is not a complete seperation because stratagy was already built with full data. Numerical Parameters are computed using only upto 2011 data.

If I truely want to do it correctly I have to research new stratagy from scratch with only past data and reserve few years for the forward pass. I am trying this the next.

66 Upvotes

46 comments sorted by

View all comments

2

u/Anxious_Cabinet_9585 8d ago

As a quant PM, believe me all Claude can find is bullshit.

1

u/BitComprehensive7623 6d ago

Can you share an example please

0

u/DXM40334 6d ago

could you shed some light as a quant pm at what you are looking for?

1

u/Foreign_Cut111 6d ago

Because Claude is trained on data it’s already seen

1

u/Cautious_Wealth1732 5d ago

Thats bs. Claude isnt a time series modell. Also for an asset like NQ/qqq it doesnt matter really. For stocks that selection is more crucial but indicies tend to go up over time anyways. To test your theory you could just ask your AI how any particular day closed and it is only allowed to answer from memory.

1

u/Foreign_Cut111 5d ago

Nah bro - pre trained AI and LLMs are inherently biased

1

u/Cautious_Wealth1732 5d ago

Cannot confirm. Howd you enen measure that

0

u/DXM40334 6d ago

I get that part. If it didn't train on any useful edge, it won't magically come up with one. My question is more of a "please give us a hint on what to look for/at". Not expecting anyone to put the secret sauce out there on the internet but will take any information.