r/algorithmictrading • u/CommunityDifferent34 • Aug 23 '25
Backtest Need feedback
Hi,
So I have been working on a trading strategy for quite some while now and I finally got it to work. Here are the results of the backtest-
Final strategy value: $22,052,772.57 Total strategy PnL: $21,052,772.57
Buy & Hold final value: $8,474,255.97 Buy & Hold PnL: $7,474,255.97
Max drawdown: 34.92% Sharpe ratio: 1.00
Started with 1 million. Backtested on gold futures.
Could you tell me if this is just too good to be true or if there is actually potential. I don’t plan to completely automate it yet as I want to test it out paper trading first. Could yall recommend any good paper trading sites that I could connect it with to use it with live market data?
I appreciate any guidance.
2
u/[deleted] Aug 23 '25
Did you separate from train and test data? You maybe dealing with overfitting. Also you should include over metrics like confidence intervals or viewing drawdowns.
2
u/[deleted] Aug 23 '25
Taxes? Spread?
2
u/ddalo Aug 23 '25
The drawdown period between 2012 and 2016 is rough to withstand live
5
u/bryan_codes Aug 23 '25 edited Aug 23 '25
Your benchmark is probably wrong here if you're just trading gold futures. since 2000, gold has gained a lot more value than the S&P. If you're trading gold futures, the benchmark is buy and hold gold. It'd be hard to not outperform the S&P if you were long gold most of the time.
It's a fully different question if gold will outperform the S&P over the next ~25 years. But if you believe it will and want to capitalize on that belief with a trading algo, then you'd want to know your algo does better than just buying a bunch of gold and sitting on it. Especially after costs of trading + taxes.
Be warned, if you're looking at a single asset like gold, it's going to be very hard to not overfit.
2
u/[deleted] Aug 23 '25
Hey, im quite curious, what’s your tracking error (algo-market). Asking, because returns shape look like it is near buy&hold with x* leverage and slightly lower loss than market.
(if TE is high == high sensibility -> market crash/recessions periods can be a real danger)
2
u/Beneficial-Corgi3593 Aug 24 '25
It looks same as s&p but leveraged, for me the meaning of a algorithm trading portfolio is to reduce volatility while maximizing returns
1
u/angusslq Aug 24 '25
Are you using hidden markov model to adjust the weight of gold?
1
u/stilloriginal Aug 24 '25
first sentence is a red flag for overfit
1
u/RiceCake1539 Sep 01 '25
More variables in ur system are proportional to more risk that ur strategy is overfitted.
I don't have context to know whether if its worth a shot. But HMMs can be successful if done right. That's because uh.. anything can be an HMM..