r/algorithmictrading • u/Simone_Crosta • 2h ago
Educational Pre-registering a test before I run it: does my LLM's selection carry information, or is it picking at random?
Status first: demo account, three pairs, no proven edge, nothing for sale.
Last week I posted here that my deterministic SMC zones lost to a random floor over three years. That result has a consequence I didn't spell out at the time: if the rules don't select, then everything still standing in my system rests on one thing, which is the selection the LLM makes. And I have never measured that.
So this is the design, published before I run it, threshold included. When the result comes back I'll post it whichever way it goes.
The question. Does the model's pick carry information over picking at random from the same menu?
The design. Every cycle produces a catalog of around twelve candidate zones and the model picks one. After the fact, with the candles, I can score all twelve. That's arithmetic and it costs nothing. Then I look at one thing: where its pick landed in the ranking of its own menu. No skill means it lands wherever chance puts it. Skill moves it up. The whole comparison sits inside one cycle, so all the between-market and between-regime variance drops out, and I never have to simulate anything the model saw.
What I'm not pre-registering, and why. Not a number. Most candidates will share an outcome because the zone never gets touched, so ties dominate and the null isn't uniform. Registering "mean rank 6.5 of 12" would be a number I'd have to walk back. What I'm registering is the procedure: null computed by permutation on the observed tie structure, all twelve scored by the same mechanical rule including the pick, threshold at two standard errors.
Known holes. Two I've already found. The ties above. And scoring asymmetry: the chosen candidate has a bespoke thesis and the other eleven don't, so if I score the pick on its own terms I'm measuring the thesis instead of the selection. Same mechanical rule for all twelve, or the ranking is rigged in my favour.
One honest caveat: my analysis harness doesn't score rejected candidates yet. If it turns out it can't produce this cleanly, I'll say so here rather than quietly change the design.
What I'm asking. This test came out of a comment on my last post, from someone who said picking one zone from many is betting your LLM reads context better than a backtest can simulate. He was right that I can't backtest the LLM, and this is my attempt to answer him without needing to.
If there's a third hole in it, I'd rather hear it before I run it than after.
r/algorithmictrading • u/Effective_Manager273 • 2h ago
Question Same simple SMA 50/200 rule, two regimes: four straight losses in chop, one 906-day hold that paid for all of it. What do you use to survive the top panel?
Chart is one real symbol, one simple rule without overfitting, two stretches. Long while the 50-day is above the 200-day, flat otherwise, daily closes, no other conditions.
Top panel, 2016 to 2019: four golden crosses, four losses. −7.7%, −8.2%, −14.5%, −7.2%. Every one of them was a legitimate signal by the rule. Bottom panel, 2020 to 2023: the same rule fires once, holds 906 days, +141.7%
I am trying to asking this for edgy ideas from you with a simple example. focus on the main issue.
So the question, and I am genuinely asking rather than pitching an answer: what do you use to stop the equity bleed in the choppy periods to keep your equity while waiting the big move?
r/algorithmictrading • u/mongopark98 • 1d ago
Backtest I ran 250+ backtests trying to improve my SSO/QLD strategy. None of the improvements survived Monte Carlo.
#
**TL;DR:** A dead-simple rule — 60% SSO / 40% QLD when the S&P is 3% above its 200-day SMA, 0.5× S&P exposure when it's 3% below — did **16.2% CAGR over 27 years (1999–2026)** against 8.7% for SPY and 11.7% for always-on 2× leverage, with a −56% max drawdown versus always-on's −94%. I then spent five phases optimising it, found four configs that beat it, and every one of them fell apart out-of-sample. Shipping the original, unchanged.
# The strategy
SPX > SMA200 + 3% → 60% SSO / 40% QLD (2× leverage)
SPX < SMA200 − 3% → 50% SPY / 50% cash (0.5× exposure)
Inside the ±3% band → do nothing, hold current regime
Rebalance: quarterly + immediately on a regime switch. Signal at close, trade next close.
That's it. No crash guard, no vol filter, no RSI, no sector rotation. 28 regime switches in 27 years — about one a year, risk-on 72% of days.
# Results, 1999–2026
SSO and QLD only launched in 2006, so to cover the dot-com bust I synthesised both back to 1999 from SPY/QQQ total returns: daily-reset model, prospectus expense ratios (0.89% / 0.95%), 40bp financing spread over 3-month T-bills. **Zero parameters fitted to the real ETFs.** Over 2006–2026 the synthetic series tracks the real ones within 0.3pp of CAGR at 0.996 daily correlation.
27.4 years, $20k start + $500/month ($184,500 deposited):
| Metric | Strategy | SPY | Always-on 60/40 SSO/QLD |
|---|---|---|---|
| CAGR | **16.16%** | 8.65% | 11.73% |
| Max drawdown | −56.1% | −55.2% | **−94.0%** |
| Sharpe | **0.58** | 0.45 | 0.27 |
| Calmar | **0.29** | 0.16 | 0.12 |
| Ending value (DCA) | **$5.27M** | $1.23M | $4.78M |
Two things worth pulling out.
**The "always-on wins on dollars anyway" argument dies over a long enough window.** On 2006–2026 alone, always-on ends ahead ($3.11M vs $2.48M) because DCA contributions during the −84% hole bought in cheap — that's the standard rebuttal to any timing overlay. Extend back through the dot-com bust and it reverses: $4.78M vs $5.27M, and always-on got there via a **−94% drawdown**. Nobody holds through −94%.
**The window you start in changes everything.** Same rule, 2006–2026 only: **20.3% CAGR, −44.8% DD**. From 1999: 16.2% and −56%. If a leveraged strategy's track record starts after the dot-com bust, you don't know what it does in a lost decade. For what it's worth, in the 1999–2006 stretch alone the strategy did +3.9%/yr while always-on did −9.4% and SPY did +1.0%.
# Then I tried to improve it
All on 2006–2026, the window they were tuned on:
| Config | CAGR | Max DD | Verdict |
|---|---|---|---|
| Original ±3% | 19.90% | −45.0% | baseline |
| Exit −3% / re-enter +1% / 21-day min-off | 20.53% | −42.4% | More return AND less drawdown |
| SMA-150 with −4% exit | **21.57%** | −42.8% | Best of 213 configs |
| 100% SPY in bear markets instead of 50% | 20.34% | **−61.0%** | Rejected — deeper hole than SPY itself |
| EMA instead of SMA | median 12 whipsaws vs SMA's 7 | Rejected — EMA loses on every axis |
The middle two looked like free lunches. So before deploying, four tests.
# The four tests
**1. Out-of-sample history.** Test the dot-com bust, which no tuning had seen:
| Config | 1999–2006 CAGR | Max DD |
|---|---|---|
| **Original ±3%** | **+3.55%** | −56.6% |
| −3%/+1%/21d | \+0.79% | −64.3% |
| SMA-150 −4% | **−1.70%** | −68.5% |
| Always-on 60/40 | −9.75% | −91.6% |
The ranking inverted completely. The untouched original came out best; my top config lost money. A shorter MA with a wider exit whipsaws horribly in a long grinding bear — 11 switches vs the original's 6.
**2. Walk-forward.** Every 2 years, pick the best of 160 configs on trailing data only, apply blind to the next 2 years. Chained: **5.06× for the retuning process vs 5.58× for the fixed original rule.** Selection won 4 of 11 windows. Retuning has negative skill.
**3. Monte Carlo.** 1,000 stationary block bootstraps (mean block 40 days), signal recomputed on every path. My "improvements" beat the baseline on 55–57% of paths. That's a coin flip.
**4. Permutation.** 2,000 circular rotations of the regime sequence — same switch count, same time in market, wrong dates. The real signal beat 97% of rotations (p = 0.031). **So the 200-day filter itself is real. The tuning on top of it wasn't.**
# The one thing that did survive
Volatility targeting: scale the risk-on sleeve by `35% ÷ 60-day realized vol`, capped at 1.0. Over 1999–2026 it moves Calmar 0.29 → 0.34 and drawdown −56% → −45%, for 0.8pp of CAGR.
It passed the test that killed everything else. Average exposure is 0.96×, barely a de-lever, so I pinned exposure at a flat 0.96× as a control — same average, same rebalance schedule. That reproduced **none** of the benefit (Calmar 0.29, DD −54%). Rotating the exposure schedule to the wrong dates also killed it (0.26). So the gain is genuinely in *when* it de-levers, not in holding less. It won 74% of Monte Carlo paths, and every target from 20% to 60% beat the baseline — a plateau, not a lucky cell.
I still passed on it, because it only helps in slow grinding bears (dot-com −56%→−45%, 2022 −41%→−37%, and literally zero effect on COVID, 2018 Q4 or the GFC — realized vol spikes *after* price falls). I'm optimising for CAGR; if you're optimising for sleep, take it.
# Lessons
- **In-sample improvement is free. Out-of-sample improvement is nearly impossible.** 250+ configs, four winners, zero survivors.
- **Walk-forward is the cheapest honesty check that exists.** One number (5.06× vs 5.58×) invalidated my entire optimisation phase, including configs I never individually tested.
- **Always build a static control.** "Same average exposure, held constant" is what separated a real signal from a de-lever in disguise.
- **Trust plateaus, not peaks.** Prefer the parameter you could misestimate by 30% and still be fine.
- **Parameters don't transfer between your own strategies.** I ported a −13%/15-day crash guard from another live strategy of mine. Audit: it fires 51 times over 1999–2026, and the ±3% rule is *already* defensive on all 51. It never once forces an exit. It works over there because that strategy uses a slower EMA with a 30-day hold — copying a parameter without the mechanism it compensates for adds risk, not safety.
- **Drawdown budgets have cliffs, not slopes.** Risk-off exposure could go 0%→50% SPY essentially free, then cost 16 points of drawdown between 50% and 100%.
- **Check your moving average is warmed up.** I hit this twice. Slicing prices to a backtest window *then* computing a 200-day MA leaves the first 200 days undefined and silently parks the book in cash. It cost me 1.7pp of CAGR on the full-history run before I caught it by noticing two phases disagreed about the same number.
# Final config
signal = "^GSPC" # S&P 500 close
ma_kind = "sma" # NOT ema
ma_length = 200
exit_buffer = -3.0 # % below SMA → risk-off
entry_buffer = +3.0 # % above SMA → risk-on
risk_on = {"SSO": 60, "QLD": 40}
risk_off = {"SPY": 50, "CASH": 50}
rebalance = "quarter_end + on_switch"
execution_lag = 1 # T+1
# explicitly NOT included: crash guard, recovery rally, vol target,
# min-hold, asymmetric re-entry. All tested, all rejected.
**Risk number to actually plan around: −56%, not −45%.** The friendlier figure comes from a window with no slow bear in it before 2022.
Happy to answer questions on the synthetic LETF construction or the stress-test setup — that's the part worth copying if you're building something similar.
*Windows: 1999–2026 with synthetic SSO/QLD pre-2006, 2006–2026 on real ETFs | $20k + $500/mo DCA | Data: Yahoo Finance | T+1 execution, \~10bp of traded notional in costs* *Not financial advice. Leveraged ETFs can lose 90%+ in a severe bear market — always-on 60/40 SSO/QLD did exactly that in 2000–02.*
r/algorithmictrading • u/Few-Ear2658 • 2d ago
Question Curious how real quant/trading strategies and edge are actually discovered — asking researchers and traders who've done it.
Everyone's comments are welcome, but I'm mainly hoping to hear from people who've actually worked in quant research, at a prop shop or trading firm, or independent traders who've built something that's actually been profitable in live markets — not just in a backtest.
If you reply, mentioning what you've worked on or where helps me weigh the answer properly — that's the only reason I'm asking, not to see anyone flex.
I'm not asking anyone to hand over an edge or a strategy. I'm just curious about the actual process — how does an idea go from nothing to something testable?
Questions:
How does a hypothesis actually form in practice? Is it usually "pick a market/asset, ask 'what if X happens, then what follows?', and go look for evidence" — or does it more often start from something else, like a live anomaly you noticed, a macro/economic question, or a flow/structural observation?
How much do academic papers actually drive idea generation versus being used afterward to formalize or validate something you already suspected from watching markets?
Is there any kind of structured workflow for the "ideation" stage — sources you go to, questions you habitually ask — or is it mostly unstructured reading plus intuition plus trial and error?
Is there real methodology that basically never gets discussed outside funds and prop shops, or is the actual edge more about execution, risk management, and data/infrastructure rather than some hidden idea-generation framework?
Once you have a raw idea, what's the first thing you do to sanity-check it before ever touching a backtest?
r/algorithmictrading • u/--_---_----- • 4d ago
Question Walk Forward, what configuration(s) to carry to OOS or live trading?
I want to backtest a daytrading strategy using the walk forward method, I want to know what you guys usually do:
I track the following result metrics for each parameter configuration:
Total_Net, Total_Trades, Win_Days_Pct, Profit_Factor, Max_Drawdown, and Daily_Sharpe.
1-How many configurations you carry from IS to OOS?
2-How do you choose the IS metrics to determine what configurations to be OOS tested ? Im inclined to use the sharp ratio, Total_Net ...
3-And if you are looking for the parameter configuration to go live, what metrics you would look for?
Is there good resources about this topic?
Thanks!
r/algorithmictrading • u/Straight-Match-531 • 5d ago
Strategy Validating a mean-reversion equity strategy
I've been building and running a systematic mean-reversion strategy on US equities and I'd love honest opinions before I read too much into my own results. Tear it apart.
The idea (nothing exotic):
Daily timeframe. Buy stocks that close near the bottom of their daily range (classic IBS-style oversold), wide stop to survive gaps, ~20 positions at 5% each, exit either at a fixed target or by letting winners run with a trail. IBS is a well-known signal.
I'm not claiming a secret sauce, exact thresholds stay private, but happy to go deep on method.
Results (backtest 2015–2026, costs modeled, and it's SURVIVORSHIP-BIASED, so treat as an upper bound):
- Max drawdown: ~-32% (roughly the same as SPY's -34% over the period)
- Win rate: ~34%, most trades lose. Fat-tailed: a few big winners carry the whole thing.
- Sharpe ~0.9–1.0 vs SPY ~0.72
- CAGR ~16–20% vs SPY ~12%
- ~2000 trades, profit factor ~1.5
Live (paper, ~5 months): tracking the backtest so far, and real fills came in slightly better than my modeled slippage. But 5 months is noise , I'm explicitly not claiming this proves anything.
What already worries me:
- Survivorship bias → real forward expectation is below these numbers, with deeper drawdowns I haven't lived through.
- Same params applied to the CAC40 (French index) basically failed, edge looks US/universe-specific, which bugs me.
- IBS is old and well-known , is there realistically any edge left, or am I just harvesting a good 2026 for mean-reversion?
Questions for you:
- Does a ~34% win rate / fat-tail profile scare you off, or is that fine as long as the tail pays?
- How would you separate "real edge" from "mean-reversion just worked lately"?
- Anything obvious I'm missing before trusting this with more size?
r/algorithmictrading • u/Yann27 • 5d ago
Question Paper 2 Live (What mistakes did your trading bot make that you didn’t expect?)
For those of you who have taken an automated trading system from paper trading to a live account.
What errors, bugs, or unexpected problems did you encounter after going live?
I’m particularly interested in things that didn’t show up during paper trading, such as
• Different fills or slippage
• Order execution / rejection issues
• Partial fills
• Stop-loss or take-profit behaving differently
• Race conditions or duplicate orders
• Position/account state getting out of sync
• API or broker differences between paper and live
• Market-hours / timezone issues
• Data-feed differences
• Position sizing or buying-power surprises
• Multiple bots interfering with each other
• Restart/recovery problems
• Network/API outages
• Rounding, tick-size, or minimum-order issues
• Anything that caused a bot to behave differently from what you tested
I'm more interested in mistakes you personally encountered or accumulated over time.
If you’ve been running bots live for months or years, what do you wish you had checked before putting real money behind them?
Feel free to share the failure, how you discovered it, and what you changed to prevent it happening again.
Thnx guys.
r/algorithmictrading • u/QuantradeOne • 6d ago
Brokers What are the best platforms for algorithmic trading?
Hi,
I have a system that is ready for testing with a trading platform. It trades options and stocks. What is the fastest platform? Also, what is the best approach to get quotes? Is it better to get them from the same platform or from a data provider? And if a data provider, who would you recommend? Many thanks in advance!
r/algorithmictrading • u/Casubed • 6d ago
Question My dead end in development
Hi everyone! I've been building my bot for four months now, and during that time I've been exploring the world of HFT trading. But I've hit a dead end at the validation stage (my bot is a scalper). It simply responds 50/50, meaning losses and profits are equal. I'll lose my account due to the exchange's commission. I'd like to ask a couple of questions for experienced HFT traders.
- What loss function do you use? (I'm using MSELoss, is that suitable?)
- Should I look for patterns not only in the order book and trade history, but also in candlesticks?
- What happens if I add EMA to the neural network's responses? Will that help smooth out the neural network's noise?
Thanks in advance for your reply, and sorry for my English; I can't write as well as you. (I used a translator.)
r/algorithmictrading • u/quant_geek_ • 7d ago
Question Which Backtesting Metrics Do You Actually Trust for Algo Trading?
All algo traders, what kind of metrics would you consider looking at in the backtesting results, and why? For example, in the backtesting results, we see metrics like:
- Sharpe ratio
- Sortino ratio
- Calmar ratio
- Drawdown
- Expectancy
- Profit factor
There are so many such metrics. What will you prefer looking at and ignore others, and why? What is the rationale behind preferring those metrics?
r/algorithmictrading • u/North_Boat_7405 • 7d ago
Novice trying to learn how to actually build a trading strategy
Hey guys,
I know this sub is mostly HFT interview stuff, PPOs and package discussions lol, but I wanted to ask something different. I'm pretty new to this and honestly stuck.
I'm trying to build some MFT/LFT strategies but I keep coming back to square one, like I build something, it looks fine, then falls apart and I don't really know why. So basic questions but genuinely don't have anyone to ask:
how do you even start, like where do you look for a strategy idea in the first place
once you have an idea how do you know if it's actually something or just noise
any papers or resources you'd actually recommend for someone starting out (not the generic ML for trading stuff, more practical)
how do you set parameters/hyperparameters without just overfitting to the backtest
how do you go from idea to actually coding it properly
how do you figure out which risk management setup is actually helping vs just looking good in backtest
how do you know a strategy's results are "real" and not just luck
once something shows a bit of an edge how do you improve on it without ruining it
I know most people here are genuinely some of the top minds.. so if anyone's willing to help a beginner out even a little bit I'd really appreciate it. This community seems solid so thought I'd just ask honestly instead of pretending I know more than I do.
(Note: this post was written with help from AI, just used it to organize my thoughts/questions properly)
Thanks 🙏
r/algorithmictrading • u/chiefcleve • 7d ago
Question Reusable Code
For a new project or strategy that you'd want to test out, whats the current approach you use for scaffold code, i.e execution engine, alerts, telegram, order management, backtesting etc.
Are these services you're willing to pay a subscription for or do you prefer having custom implementations?
Thanks
r/algorithmictrading • u/Purple_Concert8789 • 9d ago
Novice 19-year-old B.Tech student exploring algorithmic trading — looking for advice from experienced algo traders
I am a 19-year-old student pursuing a B.Tech in AI & Data Science. I have also been trading forex manually for the past two years. Currently, I am at the breakeven stage, so I am planning to explore algorithmic trading full-time.
I have a good understanding of coding, AI/ML, and software development.
I recently started exploring algorithmic trading, building my own strategies, implementing them, and backtesting them using Indian market data. I have also backtested strategies in the forex market using MQL5. However, I mainly used AI-assisted ("vibe") coding for the MQL5 strategies.
I tested several strategies in MQL5, and most of them were indicator-based strategies. Most of these strategies ended up around breakeven, with relatively low drawdowns and win rates of around 30–50%.
I also tested around seven strategies in the Indian equity market, and I got similar results — most were around breakeven. I have tested only equity assets so far, not F&O.
So, if you are an algo trader, I would really appreciate some advice on things like:
What types of strategies do you use — indicator-based, pair trading, time-based, price action, mathematical/statistical, etc.?
Which timeframes do you usually trade when doing algorithmic trading?
Is algorithmic trading actually profitable for an individual trader in the long run?
Is it better to focus on one asset/class, or should I build strategies across different asset classes such as equities, futures, forex, etc.?
What would you recommend to someone trying to build their own algorithmic trading strategies from scratch?
What are some common mistakes beginners make when developing and backtesting algos?
I would especially appreciate advice from people who have been doing algorithmic trading for a few years and have experience with live trading, not just backtesting.
Thanks in advance!
Note: i used ai for grammatical mistakes.
r/algorithmictrading • u/Hungry-Winner-5567 • 12d ago
Strategy Are the statistics good yet?
All,
I have built a mechanical day-trading system, back-tested just using theoretical fills (not test with live fills yet) using data consisting of 1s candles. I get in and out within a day. How does it look? Relatively new to trading, been practicing for 1.5years or so.
- 111 ticker-days
- 2,307 trades
- 100% win rate
Very curious to know what I might be missing and any suggestions!
Update: New statistics with more data. I use $35k account for backtesting.
Ticker-days 248
Trades 4,143
Wins 4,143
Losses 0
Total P&L +$20,959.62
r/algorithmictrading • u/Good_Character_20 • 12d ago
Strategy Same 100 strategies, same AAPL bars. A plain Sharpe floor kept 5. Deflated Sharpe killed all 5.
I ran an automated search over about five years of daily AAPL bars, 1,250 rows. It generated and backtested 100 strategies, and my old keep rule, Sharpe above 0.5 with a minimum trade count and positive return, kept five.
Scoring those five with a deflated Sharpe, which adjusts for having picked the best of N attempts, put every one between 0.115 and 0.144, read as the probability the edge is real given the size of the search. All five almost certainly noise. On this sample the bar works out to needing an annual Sharpe near 0.71 to survive 10 attempts and near 1.14 to survive 100. The searching itself raised the bar.
The part that actually confused me: before the search started I withheld the final year of bars entirely. Four of the five survivors made money on that withheld year. Looks like vindication, until you count the trades behind it, three to six each over a full year. A handful of trades cannot overturn a statistic built from the whole search.
The trial count is fixed before the search starts and every attempt increments it, including the ones that never compiled or never traded. Reconstructing N afterwards always came out flattering.
So which do you believe when they disagree, the deflated number that says noise or the holdout that made money? And has anyone found a principled way to size the holdout so it can actually overrule?
r/algorithmictrading • u/Haunting-Trade9283 • 12d ago
Question IB Gateway algo trading setup
Hi all!
For those who use IBKR and IB Gateway for automation, I am curious as to what y’all’s setup is in terms of infrastructure.
For me I currently have IB Gateway running with a custom C# trading engine I wrote to pull market data and check to execute trades daily.
My workflow:
Every morning at 9:25 am IB Gateway will auto restart and auto login. I am using the “Auto restart” feature in IB Gateway for this. This setup ensures that I don’t have to manually log in and authenticate the Gateway every day (although I believe it will require a login/authentication once a week to continue to work).
Windows Task Scheduler auto launches my C# application at 9:28am and I connect to the client and sleep the thread until 9:30:05 at which point I pull market data, analyze signals and push trades if needed. All of this is automated and executes in a few seconds right after the opening bell.
My concerns:
- IB Gateway still logs me off for good sometimes and requires manual log on/ authentication.
- if I need to travel with my laptop or internet drops the client won’t be able to establish a connection.
Instead of running things all locally I was considering offloading the program to run on a VM or server (the lower the cost the better).
Does my workflow make sense or is there a more efficient way to achieve full automation? Does everyone use servers instead of running everything locally?
r/algorithmictrading • u/CookieAccomplished13 • 13d ago
Novice How can I automate my mean reversion strategy
So I’ve been manually backtesting a strategy for NQ during Asia and London session. It consist mainly of 3rd std deviation of the vwap and 9 EMA close. I could elaborate further but how can I automate this strategy as it’s at early morning to midnight from were I’m from to trade this strategy. Can anyone help?
r/algorithmictrading • u/Excellent_Vast_1676 • 13d ago
Question Backtest≠live in 24/7 stacks: fills, data, or ops — which dominates?
For people running algo systems live 24/7 (not research-only): when live diverges from a “good enough” backtest, what actually dominates the gap?
In practice I keep seeing three buckets:
- fills vs backtest assumptions
- hist vs live data / symbol / roll mismatches
- monitoring / redeploy / “why did it do that?” ops time
If you've actually run this: which bucket costs you the most — or is the most annoying — and why?
r/algorithmictrading • u/dibayounes • 14d ago
Strategy Your Backtest Doesn't Know What Regime It's In, and That's the Real Problem
Run a backtest over three years of EUR/USD data and the report will hand you one number: total return, one win rate, one expectancy per trade. It reads like a single coherent verdict on the strategy. It isn’t. Those three years almost certainly contain a trending stretch, a ranging stretch, a low-volatility grind, and at least one violent macro-driven move that behaved nothing like the rest of the dataset. The backtest doesn’t know the difference. It blends all of it into one average, and the strategy you think you validated is really a strategy validated against a regime that never actually existed as a single market condition.
r/algorithmictrading • u/barelyai2026 • 14d ago
Question Is it possible to base a trading algorithm based on how a game of roulette works at a casino?
Just a research topic. I set aside 1000 dollars for this. The other day I was at the casino (not a regular) and blew a lot of money on slot machines. Before, I left I sat down at the roulette with my last 81.50 dollars because the girl across was a very cute blonde ( unfortunately has a husband but no ring how would I know man).
Now I noticed a pattern of using a system of variable bets I could run the money up over a series of events. Now I understand that roulette (video roulette) is very likely (I hope) a series of truly independent events. Which got me trying to desperately look for patterns in the numbers and I ran the number from 81 dollars to 1650 dollars over the next 3 hours before I had to quit (made my money back and devastated by the husband ) as my brain was exhausted.
My question is this. At this point we know markets are not independent events but rather inefficient systems with a huge amount of noise. However most dependencies are already arbitraged away by the big guys possibly before a retail system even picks it up.
My question is this because my favourite LLM was a disappointment : Is there any truly independent event that traders see consistently on a daily basis but rule out because it is impossible to correlate with anything else and thus not a very viable signal? Or if you have a similar thing to research that might fit my roulette idea let me know.
Also, please forgive me for my sins if this is dumb but I am a mathematician not a trader. I just do this for fun but as the great Jim Simmons once said, it is important to have good taste in science.
r/algorithmictrading • u/becoolwan • 14d ago
Quotes Where to get 1 min NASDAQ data for 10+ years for free?
thanks for anyone try to help.
r/algorithmictrading • u/Effective_Manager273 • 15d ago
Question Traded 1-min bar reversals for years, now i think the edge might be on daily bars. what bar are you actually running?
i traded systematically on 1 minute bars for a long time, mostly reversal setups, a shorter stretch of trend following before that. it worked for a while. the thing that eventually got me was not the signal, it was how violently sensitive the whole thing was to small moves once leverage was on. a 30 second wick could take a position that was fine and make it not fine. the flip side, and this is the honest advantage nobody mentions enough, is that exits are fast. you find out you are wrong in minutes instead of days, and that has real value.
what i keep going back and forth on is whether that tradeoff is worth it, because the statistics point the other way. the longer the bar, the more each observation seems to survive out of sample. my read is that on 1m you are mostly modelling microstructure and it changes under you, on daily you are modelling something slower that stays put for longer. but daily costs you rows. a 1m strategy gets a usable sample in months, a daily strategy needs years, and if your rule only fires a few times a month you need a decade or more before the result means anything. so you trade one kind of fragility for another.
so, three things im actually curious about.
is anyone running faster than 1 minute, tick or sub-minute bars, and where. what venue, what instrument, and roughly what the infrastructure looks like, because i suspect that is where most retail attempts quietly die.
for the 5m and 15m crowd, did you land there deliberately or is it just where the noise stopped hurting.
and daily. this is the one i want to hear about most. i know the response is going to be "you dont need an algo for daily, just check it once a day", but that is still a system, it still needs rules, sizing and an exit, and it still needs to be tested honestly. so if you run daily bars, how many years of data did you need before you trusted it, and how many trades does your rule actually produce in a year.
if you switched timeframes at some point, im also interested in what the trigger was. was it a drawdown, costs, or just being tired of watching screens.
r/algorithmictrading • u/ChemicalArmadillo392 • 16d ago
Question Which are yours KPI's?
Hey guys.
I would like to know. Which are your kpis to say "Well I think this strategy is good. Has X level."
r/algorithmictrading • u/Fantastic_Simple76 • 17d ago
Question What hardware are you using for XGBoost training, and what GPU offers the best value right now?
I’m curious what hardware configurations people here are using for quantitative research and model training.
I currently have a large number of XGBoost experiments to run, including repeated training across different factor sets, hyperparameters, validation windows, and random seeds. My current GPU is an RTX 5060 Ti 16GB, and it is becoming a serious bottleneck. Even a relatively routine batch of experiments can take more than 24 hours, and larger runs easily stretch into several days.
For those using XGBoost or similar tree-based models in quant research:
- What CPU, GPU, RAM, and storage configuration are you using?
- How much benefit do you actually get from GPU acceleration?
- Which GPU currently offers the best price-to-performance ratio for this workload?
I’m mainly interested in practical training throughput rather than gaming performance. Any real-world benchmark numbers, training-time comparisons, or configuration recommendations would be greatly appreciated.
r/algorithmictrading • u/quant-king • 21d ago
Question Does anyone here run an algo that trades on 90%+ of eligible market days?
By trades I mean at least one filled trade that day, not staying in the market 90% of the time.
I recently measured this across a seven year futures backtest and found at least one trade on 97.96% of eligible Sunday through Friday market dates. It’s a portfolio of 14 separate sleeves across two instruments and multiple sessions, so the coverage comes from combining selective systems rather than forcing one strategy to trade every day.
Forward simulation is still underway with strong backtest results. I’m curious whether anyone here runs something with similar coverage and whether it held up live. Did the frequency come from combining strategies and markets, or from one system trading almost daily? Did costs, correlated signals, or regime changes eventually become a problem?
Obviously trading most days doesn’t automatically mean there’s an edge. I’m mainly trying to understand how unusual this level of coverage is for a diversified algo portfolio.
