r/algorithmictrading • • 2d 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 dara. Numerical Parameters are compute 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 sm trying this the next.

20 Upvotes

17 comments sorted by

3

u/Formally-Fresh 1d ago

All yall paper trading millionaires are the same

0

u/random-trader 1d ago

There are always haters. I am looking for people who are genuinely interested to know and are knowledgeable.

8

u/Shoddy_Peanut7320 2d ago

The result is extraordinary, and extraordinary results are more often a bug than an edge, so I'd test the code before trusting the strategy. Shift every signal by one bar to see if the result survives, and check that no signal uses data from after the order. With 119 configurations, the best one is flattered by selection, so I'd judge it only on data that wasn't used to pick the setting. For execution, test much larger slippage than one point, especially on the overnight and open fills. A random-entry baseline with the same exits and costs is a good last check.

1

u/Ok-Warning-6054 6h ago

it look very suspect , the 119 configurations make overfitting easy

3

u/Obviously_not_maayan 2d ago

Is this OOS?

6

u/PepMar000 1d ago

I bet it is not!

3

u/Vegetable-Warthog81 1d ago

Why bother with all those tests? Just bet all your money on it. Life's a gamble.

3

u/Big-Arrival-6918 1d ago

Holy overfit

3

u/Ok-Cookie-8370 1d ago

con ese drawdown si le metes pasta en real te cagas vivo y dejas de usarlo o intervienes.

1

u/Chaluliss 1d ago

This post is shitposting right?

0

u/random-trader 1d ago

No, Genuine question

2

u/Chaluliss 1d ago

No offense but opening your post with "How many are using Claude to find the strategy and telling "make no mistake"?" Just reads like a shitpost.

saying 'make no mistakes' is a joke, maybe you're unaware, it's not a legitimate method of improving the outcome of a prompt.

2

u/stocksgoup_0DTE 1d ago

But could you really stick with your strategy through a 37% drawdown? Also, the future will likely not be as kind as the past, so the drawdown could go even deeper. Unrelated to overfitting, but I would consider scaling down the risk

2

u/Forward-Memory944 1d ago

You didn’t produce anything. Easiest thing in the world to find a strategy that works in sample.

2

u/RawatAnshuman 2d ago

Man 70% returns shows there is some virus or something fishy please check. I don't know maybe survivorship bias or some issue with how you are doing the back testing

1

u/Key_Improvement9460 5h ago

If you got this purely from Claude brute force trial and error, it is very likely its overfit. There could also many additional problems depending on the amount of trades taken.