r/algorithmictrading • • Sep 20 '17

Your Tolerance for Investment Risk Is Probably Not What You Think

Thumbnail
wsj.com
7 Upvotes

r/algorithmictrading • • Sep 17 '17

The 7 Reasons Most Machine Learning Funds Fail (Presentation Slides) by Marcos Lopez de Prado :: SSRN

Thumbnail papers.ssrn.com
7 Upvotes

r/algorithmictrading • • Aug 16 '17

Renaissance’s Medallion Made a Stunning Shift After Trump’s Election

Thumbnail
bloomberg.com
7 Upvotes

r/algorithmictrading • • Jul 26 '17

The Career Risk Traders Are Unaware Of. – Sean McLaughlin – Medium

Thumbnail
medium.com
7 Upvotes

r/algorithmictrading • • Jun 13 '17

Stock Market Data: The Ultimate Guide (Part 1)

Thumbnail
blog.quandl.com
7 Upvotes

r/algorithmictrading • • Mar 18 '17

Educational More Data or Fewer Predictors: Which is a Better Cure for Overfitting?

Thumbnail
epchan.blogspot.com
7 Upvotes

r/algorithmictrading • • Nov 18 '16

5 Big Obstacles for Wealth Management AI

Thumbnail
medium.com
7 Upvotes

r/algorithmictrading • • Mar 04 '14

Computational Investing: A Brief Introduction

Thumbnail
linkedin.com
7 Upvotes

r/algorithmictrading • • 17d ago

Strategy Using the day's expected range as a filter on a BTC mean-reversion bot: 6 weeks of notes

6 Upvotes

been running a small mean reversion bot on btc perps, 15 min bars, nothing fancy. biggest problem was trend days, it kept fading moves that just kept going

so for the last 6 weeks i added one filter. before the session i note the expected daily range (from options implied vol, turned into a 1 day move) and the bot stops opening new positions once price is outside that range.

rough results:

  • about 35% fewer trades

  • win rate up a bit, 52% to 56%

  • the big losing days mostly went away, 2 of my 3 worst days would have been skipped

  • missed a couple of good reversals on days that broke the range and came back

small sample, i know. curious if anyone uses something like this and what you use for the expected range. implied vol is ok but feels kind of laggy for a 1 day window


r/algorithmictrading • • 25d ago

Strategy ~700k parameter combinations tested, one edge survives my validation. Where do you find a second, uncorrelated one?

6 Upvotes

I’ve built a strict backtesting and validation stack for prop-firm accounts: daily-loss and trailing-drawdown rules, intraday CFDs.

What the stack does:

  • Minute bid/ask data with real broker spreads and slippage, plus bar-timestamp checks (they caught several lookahead bugs)

  • Multiple-testing correction across each strategy family (Hansen SPA), a pre-registered sealed holdout, and a minimum net expectancy after costs

  • Prop-rule simulation (daily-loss accounting, drawdown, Monte Carlo pass probability)

What I’ve tested: about 700k parameter combinations across 200+ strategy families. That includes influencer setups (ICT / SMC, ORBs, FVGs), ideas from academic papers (intraday momentum, macro-surprise drift, month-end and vol-targeting flows, overnight drift, crypto trend) and AI-generated ideas. Almost everything dies on costs or out of sample.

The one survivor: an intraday index strategy, about +0.06R per trade net, t ≈ 2.7 over 20 years. It’s live but thin, and anything else in the same market and hours would be correlated with it.

Questions:

  1. Where do you actually find edges that survive costs at retail/prop scale? Different instruments, holding periods, or data?

  2. Is daily/multi-day the realistic place for an uncorrelated second strategy, given that intraday costs kill most ideas?

  3. Is my bar too strict? I use t ≥ 3.43 after multiple-testing correction, plus a holdout.

Happy to discuss the validation process, not the strategy itself.


r/algorithmictrading • • Oct 19 '26

Backtest [Research] Backtest Results: The Performance of Simple Moving Average Crossover (50/200) on S&P 500 (2010-2024)

Post image
6 Upvotes

Hi r/algorithmictrading,

​I decided to run a structured backtest to evaluate the efficacy of one of the most classic strategies in technical analysis: the 50-day / 200-day Simple Moving Average (SMA) Crossover on the S&P 500 (SPY).

​Often dismissed as "noise" by more complex quant setups, I wanted to see if it still holds any merit in today's high-frequency markets.

​Methodology:

​Asset: SPY

​Timeframe: 2010 - 2024

​Rules: Buy when SMA 50 crosses above SMA 200; Sell when SMA 50 crosses below SMA 200. No leverage, no transaction costs included in this first pass (just to see the logic).

​Results:

I’ve attached the key performance metrics below. While it has its moments, the drawdowns during whipsaw markets are significant.

​I have also included a visual of the equity curve for better analysis.

​Key Metrics Table:

MetricSimple Buy & Hold (SPY)SMA 50/200 Crossover

Total Return~480%~310%

Max Drawdown-33.9% (2020)-18.1% (2020)

CAGR~13.5%~10.8%

Sharpe Ratio~0.85~0.65

Conclusion & Open Questions for the Community:

The crossover strategy, while offering a psychological safety net during major crashes, severely underperforms Buy & Hold during trending markets and suffers from serious whipsaw loss accumulation.

My questions to you:

Noise Filter: What are the most robust filters you use to avoid SMA whipsaws? (e.g., waiting X days, confirming with volume)?

Modernizing: Given this data, does anyone still use pure MA crossovers, or is it fundamentally obsolete for modern algorithmic models?

Looking forward to hearing from those with experience in trend-following.


r/algorithmictrading • • Aug 28 '26

Novice Any good docs or videos to get into quant? Feeling a bit lost.

6 Upvotes

Hey guys, I’m trying to start studying quant finance but honestly feeling pretty lost on where to begin.

Are there any good youtube channels, videos, or documentaries you’d recommend for a beginner to get a general roadmap?

Any suggestions would be awesome. Thanks!


r/algorithmictrading • • Aug 03 '26

Quotes Where to get 1 min NASDAQ data for 10+ years for free?

6 Upvotes

thanks for anyone try to help.


r/algorithmictrading • • Jul 05 '26

Backtest I built a full audit-trail layer around a crypto strategy before trusting a single number from it — here's the decision funnel and how I'm sealing the forward test

Post image
6 Upvotes

I've been building a systematic strategy on BTC/ETH/SOL 15m bars and I want to share the infrastructure around it rather than pitch the returns — because I trust the infrastructure more than I trust the returns right now, and I'd rather this thread pokes holes than pats my back.

The part I'm most confident about: the audit trail.

Every decision the system makes is logged: 148,937 gate evaluations over the campaign, funnelled down to 8,473 gate passes (5.7%), down to a conviction filter, down to 2 orders actually submitted -> 2 maker fills, with 1 order risk-blocked by a size-cap veto. The system says no 99.999% of the time, and I can reconstruct why for any single bar. Post-only execution, missed fills counted as missed (not silently filled).

The forward test is sealed, and that's deliberate.

Paper account on a maker-fill simulator, running since 2026-07-02. Every J->J+1 prediction is timestamped before the predicted candle closes, and the journal is hash-chained with the daily hash pushed off-machine — so I can't quietly rewrite history, and neither can anyone doubting me. The model is frozen for the full validation window; no mid-run retunes. It's only a few days old — I'm explicitly not drawing conclusions from it yet.

The numbers, with the caveats attached (please read the caveats):

Historical OOS Sharpe on frozen v1 models (trained to 2022-12-31, realistic post-only fills, missed fills counted): BTC 4.20 / ETH 4.09 / SOL 0.97.

A retrained v2 shows a ~×2 Sharpe jump — but those absolute levels are inflated by instant-fill batch mode and I treat the gap as the signal, not the levels.

Forward paper so far: small, positive, on deliberately tiny 2% notional caps (~0.03% on total capital). Way too early to mean anything.

What I know is weak / what I'm not claiming:

A few days of positive paper proves nothing. I fully expect the live-vs-paper gap to hurt.

Single instrument class (crypto perp), single regime so far. No claim of generality.

Proprietary score params are hidden — but the method is visible and the bias controls are stated, so you can attack those.

My actual question for the sub:

For those who've taken a systematic strategy from paper to live capital — what specifically convinced you the edge was real and not overfit? Was it a minimum forward window, a live-vs-paper slippage budget, a regime-change survival test, something else? I have a sealed 6-month forward window running; I want to know what else I should be measuring during it so I don't reach the end with the wrong evidence.


r/algorithmictrading • • Jun 07 '26

Question backtesting against regime is soooo frustrating

6 Upvotes

have been working on this ORB short, got data since 2010 but since then we got only 3 bear markets, covid, ukraine war and few months of iran war, maybe even tariffs (april 2025) over 16years.

if you are not living under a rock we all know things are going tits up, so i am building a bot who can trade short but is so frustrating because legit can even get 100 trades, the bot is not over filtered, has the filtered required to not overtrade and actually being profitable but 60 trades over 1 decade and half backtesting is quite low, and nothing can be done, an symmetric long bot would take x10 the trades and x10 the profits.

so my question is how you guys manage to train and check results if regime is against you and trades number counts is <100


r/algorithmictrading • • May 31 '26

Strategy 12-year real-tick backtest on a multi-strategy EA (range breakout + index mean-reversion) — looking for holes in my methodology

6 Upvotes

I've been building a multi-strategy EA over the last several months and finally finished a full real-tick backtest (2014–2026, 99% modelling quality, real spread). Before I trust it with more size, I'd rather have this sub try to tear it apart than find out the hard way live.

The setup is two uncorrelated strategies running together:

- A session-based range breakout across a handful of FX pairs, gold, and indices (one entry window per day)

- A weekly mean-reversion play on indices

Combined results at 1% risk on a 5K account:

- Profit Factor: 1.22

- Sharpe: 2.70

- Max Drawdown: 9.43%

What I'm unsure about / would love feedback on:

  1. PF 1.22 feels modest — is that a red flag for an overfit-resistant system, or just realistic for breakout? My read is that a low-ish PF with a smooth equity curve is healthier than a high PF that's curve-fit, but I'd like to be challenged on that.

  2. I'm wary of the gap between real-tick backtest and live. What's the realistic haircut you all apply to backtested MaxDD when sizing live? I've been assuming 1.5–2x.

  3. The mean-reversion sleeve only trades a few times a month. Small sample worries me — how do you stress-test a low-frequency sleeve without fooling yourself?

I'm deliberately keeping the exact entry logic vague because I may commercialize it, so I get it if that limits the feedback — happy to go deeper on risk/portfolio construction, which is where I actually want the scrutiny.

Happy to share the equity curve in the comments. What would you want to see to believe a backtest like this?


r/algorithmictrading • • May 28 '26

Question Implementing Hierarchical Directional Change to Dynamically Bias Hidden Markov Model Regimes

Post image
6 Upvotes

I have seen a video called "Quantifying market structure at multiple scales for algorithmic trading with python" it covers a hierarchical directional change and i wondered if it could be implemented in the Hidden Semi-Markov Model because it has some explicit duration clock.
It would be dynamical so when a the highest level is spotted it has more weight to bias HMM and it starts to decay until another one its spotted.
I'm a beginner so i don't know if combining startegies might be beneficial or just breaks the algo.
If you have insights don't hesitate to tear apart the idea completely i want some experienced voice.


r/algorithmictrading • • May 25 '26

Question Wouldn't generating alternative market histories solve backtest overfitting?

6 Upvotes

Every backtest is judged against the one path that actually happened. You can walk-forward, you can bootstrap, you can purge and embargo your CV folds, at the end of the day the strategy still only had to survive 2010–2023 in the exact order it occurred.. half of what looks like alpha is probably just path luck.

If you trained a generative model on returns and ran the backtest across thousands of plausible alternative histories, the path-dependent stuff would get exposed pretty fast, no? Anyone actually tried this, or is there a reason it doesn't work that I'm missing?


r/algorithmictrading • • May 23 '26

Novice How did you start?

6 Upvotes

want to know about the resources, experience, and most importantly what made you start this?

I want to start learning more about this but dont know how to start...


r/algorithmictrading • • May 21 '26

Question How do you decide when to pull the plug on your bot?

6 Upvotes

Been running my bot live for a few months and honestly the part I underestimated is everything after deployment.

Right now my biggest headache is not knowing whether a bad week means something broke or if it's just noise. The backtest says it should recover but I genuinely don't know when to trust that and when to pull the plug.

For those of you who've been at this longer. how do you actually make that call? And what problems should I be bracing for that I don't even see coming yet?


r/algorithmictrading • • Apr 23 '26

Question Reddit sentiment as alpha — noise or signal? Sharing what we found backtesting it

6 Upvotes

Built a pipeline that scrapes and structures Reddit sentiment per ticker daily. Ran it through QuantConnect against 2 years of price data.

Results were mixed but interesting — sentiment spikes on small/mid caps showed statistically significant 3-5 day price drift. Large caps basically nothing, too much noise, too many bots.

Job posting data was more consistent. Companies with sudden hiring surges in engineering roles outperformed sector benchmarks by ~4% over 60 days in backtest. Mass layoff signals were sharper — easier to trade the downside.

Earnings call language shifts were the weakest. Too much lag between the call and structured signal generation to be useful intraday. Maybe useful for swing.

Curious if anyone here has gone deeper on any of these. Specifically — has anyone found a sentiment source that actually holds up on large caps, or is that just a dead end structurally?


r/algorithmictrading • • Apr 20 '26

Novice How do I start building a strategy from scratch?

6 Upvotes

Hi everyone,

I’m trying to learn how to build a trading strategy but I feel a bit lost on how to actually start and structure the process.

I understand the basics of indicators and charts, but I don’t really know how people go from an idea to a complete strategy that can be tested and improved. I’m also unsure about what the correct steps are for backtesting and how to avoid common mistakes like overfitting.

If anyone could explain how they personally approach building a strategy or point me in the right direction, I would really appreciate it. I’m mainly looking for a clear process I can follow as a beginner.

Thanks in advance.


r/algorithmictrading • • Mar 28 '26

Question Mean reversion high win rate but concerned exit strategy. Community guidance needed.

6 Upvotes

I have been a long term investor for almost 10 years. Regularly buying and holding quality stocks. During this I noticed some patterns and curiosity peaked to try that out.

I couldn't sit and trade due to full time job so decided to make script for that and put it over AWS to automate. Now coming to the point : I usually buy mag 7 and friends along with sector ETF (for long term investments) so built the strategy to take short profit (1% ) and exit in algo. Entry criteria is based on volume average and POC.

Ran extensive back test : Parameters were defined and calibrated on 2023 (randomly I picked one). Then tested individual years 2024, 2025 then went back 2020, then whole of 2020 to 2025. Performance remains constant. I completely removed mag 7 and sector leaders and plugged all stocks with market cap between 200B to 600B. It survived and did pretty decent as well. Also tried to break it with totally random combination of 15 tickers, still survives.

Commission/slippage was modeled in too with flat and realistic numbers each trade.

So far so good. However I have never been comfortable with exit strategy. It's basically time decay of 2 days (to give enough breathing room) then breakeven by 6th day or else goes in long hold. Hard floor exit of 10% is coded in for catastrophic drops.

Question might be how it survives in bear market then simple SPY SMA filter is set and script stops taking trade if below 200SMA as global kill switch.

Some metrics :

Win rate : 80-85%, CAGR 40-55%, RR is skewed "negative 1:4/5." so when it looses SL hit or gap downs then it erodes almost 10 winning trades.

I didn't believe this so paper traded for 1 month and then backtested same time frame. Model had overlap of 85-90% entries and timings. (Difference was mainly because of free IEX feed on Alpaca and running locally).

Still couldn't believe it so decided let's use some token money and put around 3K and went live. from Mid Feb to mid March (4wks). Once again 37 trades all hitting target and when I stopped there were 4 bag holds and 2 free slots (I divide capital in 6 slots and has revolving door entries in all 3 backtest, paper and live). Overlay with back test was also same.

Now the issue what I see is RR skewness and psychological impact of seeing those bag holds. So I have been trying different ways to avoid those bag holds and exit early or scratch them but downside is it erodes the edge of strategy itself and winrate/CAGR drops quite below.

Question to community members : what kind of exit strategy for mean reversion do you use ?

Any pointers in this case I can explore ? or This is inherited part of mean reversion that it just needs time and patience ?
Grateful for your insight. Thanks.


r/algorithmictrading • • Mar 15 '26

Quotes Sources? Fire Hose Tick Level L2 Websocket...and.. Historical L1 Replay Websocket?

6 Upvotes

I am mid-build of my own software currently consuming L1 data. I would like to add L2 data.
I have not attempted to consume the whole L1 stream, but testing suggest my scaling methods will be sufficient. I would like to include L2 bids and asks but have not found a provider tahat offers the full stream Any suggestions? Also, but not as important... a Historical L1 replay provider? thanks in advance!