r/algorithmictrading • • 11d ago

Backtest My quant project

Hi,Im a 17 year old and have been working on building this momentum system

An automated trading system for the Nasdaq 100 index (CFD, 15-minute bars). It joins moves that are already under way, cuts losing trades quickly and lets winning trades run. Every trade risks the same small fraction of the account. It has traded in real time on a demo account since July 2026.

Where it stands

Live, on a demo account, the system is up +$6,414 since 13 July: about +$5,000 in July, when the demo account was $300,000, and +$1,419 since August on $150,000. It peaked at +$11,014. The backtest, run at today's settings on the same account size, makes about +$35,000 a year (≈23% a year without compounding), with a worst dip of −7.5%. Measured per unit of risk (R), live is roughly flat so far, while the backtest earns a small, steady edge.

Where the stratergy is stuck

The edge comes from a few trades that run far. I can't tell those trades apart from losers in advance, and five different kinds of test say the data I have can't do it. Most weeks end close to flat, and I don't yet know how to make the results steadier.

Help I need
  1. Check my testing: where might I be fooling myself?
  2. Ideas to improve the edge that don't depend on predicting trades: holding, sizing, costs, or a second strategy.
  3. Advice on what to learn next. Here are some results
0 Upvotes

10 comments sorted by

2

u/Big-Arrival-6918 9d ago

Hey your on the right track. Make sure your parameters are robust and not just luck it looks solid though. The only real way to get it more steady is to trade other strategies! Keep it up

1

u/vivaan_22 3d ago

Thank you, I have been trying different strategies to smoothen the equity curve so far I have tried mean reversion,and my same momentum system on other markets currently there is no edge or because I have tuned my system so much of Nasdaq it’s not able to perform in anything else but I’m trying 

1

u/hardcoresailor23 10d ago

Hey man! I won't be able to help you with your project but I'm new to this thing ( like new new) and I'd like to dig deeper. Let me know if you can help me. Thanks!

1

u/vivaan_22 3d ago

Hey no problem,I mean i have also started in terms of helping the only thing i can say or i have learned is that 1 whenever developing a system ask what edge you have and who is going to pay or why the edge is created 2.personly i have used a lot of help from claude in creating and testing the system if you are also going to use it then first make sure it gives robust answers and always backcheck according to claude the system was dead in july so i find claude a bit harder to believe.Anyways im also new here but i think just try statergies and make sure you stick to one stratergy properly before concluding it dead and while backtesting make sure to include the spreads the cost the noise to give a better estimiate and also match trades or start a live demo to make your backtest more acurate

1

u/Apart-Commission-141 3d ago

Ok so it is volatility player because the equity curve nearly matches ATR expansion especially the 2023 results and 2026. The sortino on this won’t be as strong as you’d like but it isn’t bad. It is however a lot of trades. Live is flattish because it is curve fit and the R:R is either bad or there is some sort of reducing curve to it like a trailing runner or simply too tight a leash. Clean MFE but …. I suggest giving it more room to breathe, and scrub the logs to make sure there are not strong causal pockets of pure loss that can be simply avoided (a trend continuation bot that takes trades leading into news because it doesn’t have a calendar setup). What’s the performance difference on gap up days vs down, small vs large gap, and then the win rates statistically spread across the overnight gap divided by the ATR at the top of the hour the trade occurs. If your bot needs a depleted ADR to really shine.. it isn’t the bots fault when it is running in that environment. Trade less when the odds are against you, size when the wind is at your back

1

u/vivaan_22 3d ago edited 3d ago

thanks for this, honestly most useful comment so far

on too many trades, yeah its about 4-5 a day. ive spent most of my time trying to take fewer or lower the frequency but when you don't know which trades are going to work or wont how do you make a parameter to decrease the frequancy? efficiency ratio, adx, vwap bands, hmm regimes, ml, order flow and gamma a bit. anything trying to tell me direction or what kind of market im in has failed, atleast the way i did it. how clean the day has been so far says almost nothing about the rest of the day. vol does persist, i just cant turn that into knowing if it will trend

on sizing with vol, i tried half size when my vol forecast was low and 1.5x when it was high, got worse in both periods (22.8%/yr down to 16-19 in 2022-26). cutting high vol was bad too. only thing that helped was half size on extreme vol, those average about -0.1R, but i picked that on the same data. my stop already scales with atr so maybe thats why vol sizing adds nothing?

i could be wrong here. mostly tested one condition at a time, and a few big trades carry everything so rare good conditions are hard to see

also ran your gap idea. up/down and small/big were noise. but trades against a big gap (over ~2.3x hourly atr) were +0.20R on 140 trades and +0.29R on 79 in 2017-19, vs about 0 and +0.12 with the gap. theres about a 1 in 5 chance something like that shows up by luck so im just watching it. curve fit i cant rule out, 2017-19 is weaker

when you say size when the wind is at your back, what would you actually look at? and is it something you know before the entry?

1

u/dugmaz 11d ago

Watching 🍿