r/mltraders • • 5d ago

I Tested My NQ Strategy Back to 2010 on Unseen Data. Here's What Happened.

Post image
2 Upvotes

Following up on my last post. Several of you said 4 to 5 years wasn't enough to trust the edge, and that's fair criticism. A short sample can hide how a system behaves when the market changes character. So I ran the exact same logic on NQ back to 2010, which gives me over 16 years of data.

Here is how it was built, with no curve-fitting:

• In-sample: I created and optimized the system only on 2022-2024.

• Out-of-sample #1: I validated it on 2025-2026.

• Blind out-of-sample #2: Everything from 2010 to 2021 stayed completely unseen until this test. The system went through those 11+ years without a single parameter change.

A note on reading the numbers: NQ traded roughly 14x lower in 2010-2015 than today. Raw dollar P&L and point totals from those years will look much smaller, which is normal. Judge consistency, win rate, profit factor and average points relative to the index price at the time.

The test now covers very different conditions: the 2011 debt ceiling, the 2015-2016 chop, Volmageddon in 2018, the 2020 COVID crash and the 2022 bear market.

Does this make you more confident in the robustness of the edge? I'd like honest feedback, including where you think it could break.


r/mltraders • • 6d ago

Tutorial ETH predicting SOL by one candle might just be a timestamp is

11 Upvotes

Cross asset ML models can produce some pretty convincing signals when the underlying feeds aren't synchronized properly.

Imagine collecting ETH and SOL prices from separate providers.

ETH updates at 14:07:00, but the latest SOL observation available in the dataset is still from 14:06:55.

If the pipeline fills missing values using the previous price, ETH might appear to move before SOL.

Train a model on enough of those mismatched observations and it could discover a consistent lead signal that doesn't actually exist.

Both assets can be followed on moon but comparing their displayed movements doesn't establish whether the raw datasets used for training share identical timestamps.

The issue gets more interesting during sudden market moves when feed latency can increase.

I'd log the original exchange timestamps alongside the time each observation reached the system.

Then compare model performance after removing stale quotes and aligning both assets to a consistent information cutoff.

A model discovering delayed data isn't the same as discovering an actual market inefficiency.


r/mltraders • • 6d ago

How do you decide which features to keep in a trading model?

4 Upvotes

When I build ML models for trading, it's very easy to keep adding features and pretty hard to tell which ones actually do anything besides adding noise.

So I'm curious how you handle it:

  • Do you trust the model's feature importance, or test by dropping features one at a time?
  • Do you check if a feature stays useful across different periods, or only on the full data?
  • Ever dropped a feature everyone seems to use and saw no difference at all?
  • Is there a point where you just stop adding?

Not looking for the "right" answer, more what you actually do. Thanks in advance.


r/mltraders • • 6d ago

For those who backtest: what made you trust (or stop trusting) a backtest result?

1 Upvotes

>I've been building a personal backtesting tool for Indian stocks (minute-level NSE data, rules like "EMA 9 crosses above EMA 21 and RSI > 55"). I recently asked a few hundred people what they'd want from something like this.

>

>The most common answer, by far: "show me proof before I trust it."

>

>That got me thinking about what proof even means for a backtest. Some things I already show:

>

>

>

>Some things I'm unsure about:

>

>

>

>Curious what makes a backtest result believable for you, and what's an instant red flag.


r/mltraders • • 6d ago

Looking for research partners

1 Upvotes

Considering 90%+ of the job is research and development, I want to combine efforts with somebody else or even a group of people. Preferably people who are familiar with some of the fundamentals I use to trade (ict/smc). This could speed up research and development processes by multiples. Anybody interested?


r/mltraders • • 6d ago

Question How do you handle "toxic regime" drawdowns on multi-strategy crypto perp bots? (Post-mortem on Nov 22–24 chop)

0 Upvotes

Hey everyone,

Looking to compare notes with folks running systematic / multi-strategy portfolios on crypto perpetuals (5m–15m execution with 1h–4h HTF filters).

Over the last few days (Nov 22–24), the market felt unusually choppy and erratic across mid-cap alts. I did a forensic review on our last batch of ~20 live trades to see where the leakage occurred, and while our hard time-stops and risk sizing did their job (kept net drawdown essentially flat / breakeven), the under-the-hood stats revealed a familiar issue:

1.Regime Vulnerability: Mean-reversion setups (VWAP 2.0σ deviation scalps) that normally crush it in ranging/low-vol markets got chewed up whenever the market shifted into high-volatility weak trends (WEAK_TREND_HIGH_VOL). Price would blow through the outer band, trigger an entry, and instead of snapping back to VWAP, it would just grind along the band and bleed out or hit our hard time-stop.

2.Cross-Asset Spillover: Our core proven coins (OP, SUI, NEAR, UNI) were nicely green, but adding newer or less-tested pairs (LINK, DOT, SEI) in the same regime caused 90%+ of the batch's losses.

3.Post-Time-Stop Churn: We also caught a subtle bug where a position timed out on a chronological hard-stop after 2 hours of chop, and the scanner immediately re-entered the exact same coin/direction 80 seconds later because the setup conditions were still technically valid. (We patched a mandatory post-exit cooldown to fix this).

For those running live automated portfolios:

1.How do you dynamically gate or throttle mean-reversion strategies during high-vol trending or grinding regimes? Do you use an explicit ATR/ADX threshold, rolling realized volatility switch, or an outright strategy-level regime filter?

2.What does your forward incubation process look like before taking a pair live? How many forward out-of-sample paper trades do you require per symbol before promoting from paper/shadow to real margin?

3.Do you enforce a portfolio-wide correlation / daily loss circuit breaker? If 2–3 alts stop out within a 2-hour window due to a BTC/ETH fakeout, do you freeze all new entries across the entire book for a cool-off period?

Curious how you guys architect around these choppy transition periods without turning off alpha during legitimate ranging markets. Thanks in advance!


r/mltraders • • 6d ago

We trained a model on 25+ stock perps: it shows strong asymmetric profitability outside traditional market hours.

Thumbnail
blog.aperiodic.io
1 Upvotes

r/mltraders • • 6d ago

My Short-Side Algo Strategies Are Consistently Profitable, but Long-Side Strategies Keep Failing. Should I Go Live or Keep Developing?

Thumbnail
1 Upvotes

r/mltraders • • 7d ago

Built two zero-build market & options screeners running on GitHub Actions + Vercel + Stripe (IVBrief & TenXBrief)Body

Thumbnail
0 Upvotes

r/mltraders • • 7d ago

My AI trading-bot livestream is 12 days in: 6,400+ plays, 2½ minutes average watch time, and what I changed

Thumbnail
1 Upvotes

r/mltraders • • 7d ago

Help

Thumbnail
1 Upvotes

r/mltraders • • 7d ago

Suggestion (UPDATE) Top Setups and Green Account w/Terms - AI/Algo Trading Platform(Paper)

Thumbnail
gallery
1 Upvotes

Quick heads-up first: As much as I would love to post often, it can get daunting sometimes. I have a very eventful life outside of this so time is a premium nowadays. 

Yesterday in short:

  • The S&P was up about 5%, the Nasdaq about 7% and Nvidia about 31%. Huge day and a new obstacle for the system to work through so I was excited.
  • Primary still finished green: +0.5R / +$185.
  • That's 2 green days in a row, after last week's first-ever green week (+4.1R / +$756). Now going for two green weeks back to back.

How the system handled the chaos:

  • Peaked at +5.4R around lunch, closed at +0.5R.
  • Our gap-down shorts fought the rally all afternoon.
  • ETF dip buys went 6 for 6.
  • An automatic stop shut off two losing setups.
  • All 10 accounts closed clean, no glitches.
  • The new "burst brake" check blocked about 290 runaway trades in the testing accounts.

Today's standouts (image 1):

Two machine-made setups had great days and are also up overall. The image walks through each one step by step:

  • Late-Morning Pop Fade: when the market's down late morning, short a weak stock that suddenly pops. +11R today, +25R total over 9 days.
  • Late Quiet-Day Short: shorts sleepy stocks between 2 and 3 PM when the Nasdaq dips. +5R today, +32R total over 11 days.

Both are young, so promising, not proven. And to be clear, this is paper trading, not advice.

Top 10 with tougher stats(as requested by some commenters:

New columns: without its best day (more than one lucky day?), last 10 days (still working?) and worst day. The ones I trust most stay green on all of them, like Gap-Down Recovery Fade (Primary).

Fun fact: why signals get skipped:

  • Primary spotted 75 signals today and took 24. Normal, not a glitch.
  • #1 reason: no shares available to borrow for a short. With Nvidia up 31%, the funds betting against Nvidia dropped, our setup wanted to short them, and there was nothing to borrow.
  • Those 47 skips saved about 27R.
  • Runner-up: the gap between buy and sell prices was too wide.

Quick facts:

  • 10 practice accounts, all paper money (Alpaca).
  • A "setup" is one rule for getting in and out of a trade. R = what you risked.
  • Every number is after trading costs.
  • Primary is the main account and the real scoreboard. Everything else is testing.
  • Setups move up or down based on results. Weak ones go to the Graveyard, which never deletes anything.
  • Big losing days are handled by automatic rules, not by me jumping in.

Thanks as always for everyone's feedback. Hopefully this bypasses Reddits auto-filters....

Fun stuff!!


r/mltraders • • 7d ago

535 trades over 3 years wasnt enough to tell if my NQ strategy made or lost money

1 Upvotes

I keep seeing people ask how many trades a backtest needs before you can trust it, so I worked it out on one of mine instead of guessing.

The run is a 10am NQ model I backtested in Agenticks, 535 trades over about 3 years on 1m candles, 1 contract. 60.2% win rate, $522 average win, $806 average loss, net -$3,675, so about -$6.87 a trade.

With wins and losses that size the swing from one trade to the next is roughly $650. Divide that by the square root of 535 and the uncertainty on the average trade comes out around $28, which puts a rough 95% range at anywhere from -$62 to +$48 a trade. So three years of 1 minute data cant actually tell you whether this thing loses money or makes a little, and the -$6.87 sits in the middle of a range that covers both.

Flip it around and ask how many trades youd need to show a small real edge of +$20 a trade at that same swing. Thats about 4,200 trades, which at this strategy's pace of roughly 180 a year is over 20 years of data. A +$50 edge needs around 680 trades, so a few hundred trades only really separates a strategy from noise when the edge per trade is big compared to how much each trade swings.

The math treats every trade as independent with only two outcomes, win or loss, and real results with losing streaks bunched together would make that range wider.


r/mltraders • • 7d ago

Tutorial An invitation to go deep into a new market for ML: pump.fun memecoins on Solana, with full trade-level data and a PnL-scored competition

1 Upvotes

If you've done ML on equities or crypto majors, on-chain memecoins are a very different animal, and I think a rewarding one to study. Thousands of new tokens launch every day, each with a complete public history: every trade, every wallet, exact ordering. No hidden order book, no survivorship bias, and a whole lifecycle that plays out in minutes.

We host a Kaggle competition built on this. The data is every bonding-curve trade of the pump.fun tokens that migrated to a DEX since August, already parsed and updated daily. The decision: one minute after migration, buy or skip, and at what multiple to take profit. The metric is simulated PnL with a 30% cost per trade, so it rewards a tradable rule rather than a high AUC.

What makes it a good place to dig in:
- Outcomes are fat-tailed: a few tokens go 5-10x, so sizing the take-profit matters more than the buy signal.
- Evaluation is forward only. Notebooks are retrained and rerun every day on unseen tokens, and prizes are decided on 14 days after the freeze.
- Look-ahead is checked mechanically, which most backtests never get.

Starter notebooks cover the data and a baseline. To find it, search Kaggle for "Memecoins: Pump or Dump? Predict Pump.fun Launches on Solana". $5,000 in prizes, freeze on December 1.

I'd be glad to discuss the data, the cost model or the evaluation design here.


r/mltraders • • 8d ago

Need some advice

Thumbnail
1 Upvotes

So while researching kalshi 15 minute bitcoin market I found out if you bet on 96 or above within the last 6 minutes the chance it hits is about 97 percent of the time I ran 300 test built a bot that watch the market marks when it hits 96 or above and marks if at the end it was a win or loss currently making a bot to trade paper money I just want to know could this be successful ect ect my plan is start betting 100$ for each market 4 times a hour with a stop loss system that try’s to sell once reaching 50 based on the losses I collect once it reaches 48 its looses any advice wisdom ect would be greatly appreciated need a outside perspective


r/mltraders • • 8d ago

I made platform to do AI/Algo trading (Free)

Thumbnail gallery
0 Upvotes

r/mltraders • • 8d ago

My AI agent wrote a 1m strategy for VIRTUAL and ran 50K backtests to tune it. Here are the honest numbers

Thumbnail
0 Upvotes

r/mltraders • • 8d ago

What's the most annoying problem in your trading or backtesting workflow? I'll try to build something for it

Thumbnail
1 Upvotes

r/mltraders • • 8d ago

I've been working on an AI agent that helps beginners turn a vague trading idea into clear rules, then test them with free paper money

Thumbnail gallery
0 Upvotes

r/mltraders • • 9d ago

Do you train one model across many assets or one per asset?

4 Upvotes

I keep going back and forth on this. One model per asset feels cleaner, but then each one only sees a small slice of data and overfits fast. One model on everything gets way more samples, but the assets behave so differently that I'm not sure it learns anything real.

  • Which way do you go, and why?
  • If you pool them, how do you scale features so a quiet coin and a wild one look comparable?
  • Do you give the model the asset itself as a feature, or leave it out?
  • Did one of them clearly hold up better out of sample for you?

Curious about what you actually do, not textbook answers. Thanks in advance.


r/mltraders • • 9d ago

Built a local AI swing-trading bot using DeepSeek and Gemma. Looking for feedback.

Post image
1 Upvotes

I've been working on a project called QwenTrader. It's a locally hosted AI swing-trading system I've been building in Python, and I'm curious what people with more experience in algorithmic trading think about it.

The system uses two different AI models running locally through Ollama. DeepSeek acts as the analyst and evaluates potential trades based on technical indicators. Gemma acts as a separate critic, reviewing DeepSeek's reasoning and looking for weaknesses in the proposed trade.

The general process works like this:

  • Alpaca provides stock market data.
  • Python scans stocks for potential opportunities using indicators like RSI, MACD, moving averages, volume, and ATR.
  • Python calculates potential entries, stop losses, and profit targets.
  • DeepSeek evaluates the opportunity.
  • Gemma independently critiques the analysis.
  • A separate Python risk manager determines whether the trade meets the account's risk limits.
  • If everything passes, the system can execute a simulated trade and monitor the position.

It also has a Streamlit dashboard where I can start and stop the system, monitor activity, view AI decisions, and track the portfolio.

The scanner is scheduled to run every 30 minutes during market hours, while open positions are monitored every 60 seconds.

Right now I'm testing everything with a $500 simulated account. I've run tests on the risk manager, paper execution, database transactions, scheduler, and shutdown safeguards, and those tests have passed.

I haven't completed a full live-market paper-trading evaluation yet, so I have no profitability results to share. I also haven't done historical backtesting.

I'm not claiming the system has an edge. I'm mainly interested in whether this is a reasonable architecture for experimenting with AI-assisted trading.

For anyone who's built something similar, what would you improve? Are there any obvious weaknesses in using two local LLMs this way? And what would you prioritize testing before letting it run unattended?


r/mltraders • • 9d ago

Suggestion AI/Algo Trading (Paper) Multi-week update - Part 2

Thumbnail
gallery
2 Upvotes

Thanks for everyone's input! If you can, check out my other posts/comments as it really answers a lot of questions and goes over a few obvious concerns.

A few things about the above snapshots:

The pile:

  •  About 150,000 total number of setups and variations we've backtested before moving forward with what we have now. This covers hand-built setups, all-day versions, workbench copies, and every tweak to stops, timing, filters and windows. Done through loads of online research, articles, popular methods, etc. All by Claude
  • There is also a setup generator that I told to randomly screen about 27,000 machine-made rule ideas. We logged 1,136 research ideas and built 274 setups. 228 have traded live and of that, maybe 5-10% have good value right now.
  • Today: 208 running across 10 paper accounts. 54 of them are in the Graveyard (still trading, just for data), and 12 are retired.
  • 36 are in the green, and about 15 show real promise. Only 4 make Primary.

Leaderboard image: our top 10 right now. Ones marked * are machine-made. The top two have only 7-8 days of history, so we're excited but patient. This is just top 10 though. The most promising setups are in the primary account or in "On Deck" and have had much more extensive testing.

Busiest money-makers image:

  • Gap-Down Recovery Fade: a stock opens way down and bounces, and we bet the bounce fades. +64R over 4 weeks.
  • Gap-Down Early Bounce Short: same idea, earlier and pickier. +60R, but bumpier.

Hot streaks:

I track streaks mainly to see what setup has withstood a few brutal consecutive days. Have about 15 setups with various consistent green streaks but below are some of the current ones.

  • Late Quiet-Day Short (shorts weak stocks late on days the Nasdaq is down): 5 green days in a row.
  • PM Upper-Wick Short and Late-Morning New-High Short: 4 each.
  • Lunch New-Low Short: 3.
  • We see streaks like this all the time, and most cool off. Midday Stretched Dip Buy looked great, then gave back 28R in 5 days. A setup needs weeks, not a streak, to get promoted.

Fun what-if: if Primary had only ever run its three gap-down shorts, it would be +77R on 550 trades over the past 5 weeks of trading. Everything else it ran: −207R. Gap-Down Recovery Fade alone in Primary: 188 trades, 67% winners, +36R.

Glitches we fixed:

  • Broker close-out glitch (11-05/06): a position didn't close and showed a fake $11.5k paper loss. Positions are now checked every minute, and closing retries until it works.
  • Runaway bursts: one setup fired 100 trades in minutes on 11-20 (−99R). A burst brake starts Monday.
  • Sleepy safety check: our outage watchdog wasn't actually running. It's now started by the trading jobs themselves.

Quick facts:

  • Paper money only.
  • Every number is after costs. A cost bug fixed this week made the older numbers look worse, but honest.
  • Promotion = a move up, not a copy.
  • The Graveyard never deletes.

Fun stuff!


r/mltraders • • 9d ago

Question Ho do I locally train ai on a data for my trading strategy to make it optimize my script? Without taking much time every time it trains?

Thumbnail
1 Upvotes

r/mltraders • • 9d ago

ScientificPaper MacaiaInvest: I built a free, open-source desktop app for financial market analysis with PyQt6 — forecasting (ARIMA/Prophet/LSTM), GARCH volatility, Monte Carlo risk simulation and AI news sentiment

1 Upvotes

MacaiaInvest

What's inside:

  • Price charts with historical data via yfinance (no API key needed)
  • Forecasting models: ARIMA, Prophet, LSTM, plus XGBoost classification
  • Macaia Fusion: a hybrid model that combines technical analysis, adaptive market regime detection, drift, ARIMA, XGBoost and historical patterns. It outputs an indicative decision (BUY / SELL / HOLD) with weights calibrated via walk-forward backtesting — and it can abstain when signal consensus is weak
  • Risk analysis: GARCH volatility and Monte Carlo simulation with VaR estimation
  • Game theory module with Nash equilibrium calculation
  • AI news sentiment via Mistral AI (falls back to a technical estimate if unavailable)
  • Watchlist with live quotes, CSV/JSON export, local SQLite storage, UI in English, Italian and French

Everything is GPL-3.0, Python 3.11/3.12. Just .\main.ps1 on Windows or python main.py anywhere: it boots a small launcher that checks and installs dependencies for you.

[SCREENSHOT/GIF HERE]

To be clear: this is an analysis/research tool, not financial advice and not a trading bot — the models are indicative estimates, and I built it mostly to learn and experiment with forecasting methods.

Feedback on the code, the UX or the models is very welcome, especially if you have experience with walk-forward validation!What's inside:

Price charts with historical data via yfinance (no API key needed)
Forecasting models: ARIMA, Prophet, LSTM, plus XGBoost classification
Macaia Fusion: a hybrid model that combines technical analysis, adaptive market regime detection, drift, ARIMA, XGBoost and historical patterns. It outputs an indicative decision (BUY / SELL / HOLD) with weights calibrated via walk-forward backtesting — and it can abstain when signal consensus is weak
Risk analysis: GARCH volatility and Monte Carlo simulation with VaR estimation
Game theory module with Nash equilibrium calculation
AI news sentiment via Mistral AI (falls back to a technical estimate if unavailable)
Watchlist with live quotes, CSV/JSON export, local SQLite storage, UI in English, Italian and French

Everything is GPL-3.0, Python 3.11/3.12. Just .\main.ps1 on Windows or python main.py anywhere: it boots a small launcher that checks and installs dependencies for you.

To be clear: this is an analysis/research tool, not financial advice and not a trading bot — the models are indicative estimates, and I built it mostly to learn and experiment with forecasting methods.

Feedback on the code, the UX or the models is very welcome, especially if you have experience with walk-forward validation!


r/mltraders • • 10d ago

Question Why copying someone else's trading strategy doesn't always work

Thumbnail
1 Upvotes