r/mltraders • • 11h ago

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

Thumbnail
reddit.com
1 Upvotes

r/mltraders • • 12h ago

Help

Thumbnail reddit.com
1 Upvotes

r/mltraders • • 16h 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 • • 17h 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 • • 19h 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 • • 1d ago

Need some advice

Thumbnail reddit.com
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 • • 1d ago

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

Thumbnail gallery
0 Upvotes

r/mltraders • • 1d ago

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

Thumbnail reddit.com
0 Upvotes

r/mltraders • • 1d ago

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

Thumbnail reddit.com
1 Upvotes

r/mltraders • • 1d 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 • • 2d 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 • • 2d 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 • • 2d ago

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

3 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 • • 2d 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 reddit.com
1 Upvotes

r/mltraders • • 2d 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 • • 3d ago

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

Thumbnail reddit.com
1 Upvotes

r/mltraders • • 3d ago

Self-Promotion What would make an explanation-led paper-account view usable in ML backtest review?

1 Upvotes

Disclosure: We're OraXLabs, building Paper Run, an AI-assisted prototype showing strategy explanations beside a virtual account. The current sample at https://paper.oraxlabs.io/ uses sample data, with no live performance record or completed strategy validation.

If you've built or reviewed ML backtests, what single artifact would you need before using such a view in research: versioned input values at the decision time, a model/version record, fill assumptions, or something else? We're asking which evidence the interface would need to expose; the sample itself does not establish those capabilities.

One concrete missing item or reason you'd skip this view would help. You can answer here without trying the sample or signing up. Please don't send private strategies, model code, training data or account details.


r/mltraders • • 3d ago

Question AI/Algo Trading (Paper) Multi-week update

Thumbnail
gallery
2 Upvotes

Posted a bunch before but, to be honest, it just got to be too tough to manage so I'll post here and there and reply where I can!

The good stuff over the last few weeks:

  • **Primary(**account that holds my main setups) had its first week green in both R and dollars: +4.1R / +$756 (image 1). Small, but it's a first.
  • The gap-down shorts carried it again. Friday they went 20 for 20.
  • Reps keep climbing: 6,719 live trades last week, up from 4,081 four weeks ago. About 29,600 since 10-06 (image 2).
  • 182 different setups traded last week.
  • A QA pass double-checked the whole week. It found and fixed a cost bug that made the early weeks look better than they were.

The not-so-good:

  • Since Day 1, Primary is still down in R (about −88R) but up about +$310. Obviously, this included a lot of testing, trials, and was without many new rules and conditions added.
  • Example of this is one ETF setup bought 12 ETFs in five minutes(yep, you read that right) yesterday and all 12 stopped out. A "burst brake" goes live Monday so that can't happen again.

Who might be next (Seen in images):

  • A handful of setups in the testing accounts stay positive even after you remove their single best day. That's our "not just one lucky day" test.
  • The standouts:

    • Two more gap-down shorts.
    • A "big gainer fade" (shorting stocks up 3%+ that start to roll over).
    • A late-day short that only works when the Nasdaq is down.
  • Most of them shine under specific conditions (gap-down days, weak afternoons), not every day.
  • Their records still lean on a couple of big days (11-12 and 11-20), so nobody gets promoted yet. Next real look is mid-December.

The rules, in plain English:

  • There are a LOT of rules now. Some keep a setup from piling into trades, some stop a setup for the day if it's down 2R, some decide who moves up or down, and some protect things we know work. Each one exists because something went wrong once.

Quick facts:

  • 10 paper accounts across entire system, no real money yet.
  • Primary account runs 4 setups starting Monday(was 5 before, was 7 a few weeks before that).
  • Every number is after trading costs, factored in conservatively so as to simulate live fills to the best we can.
  • Promotion = a move: a setup leaves its old account when it moves up.
  • Weak setups go to the Graveyard; nothing gets deleted, occasionally archived if really bad.
  • Monday adds the burst brake and 2 new beginner setups. One setup also leaves Primary for more testing.

Please look into my other posts and read through before questions if you can. It's often a little daunting getting back to everyone with the same answers, though I do love the conversation!

Not selling anything, just enjoying the ride!

Thanks as always for the support.

Fun stuff!


r/mltraders • • 3d ago

How are your models doing?

Post image
2 Upvotes

r/mltraders • • 3d ago

Two model scores clear the entry threshold. The backtest opens one trade.

2 Upvotes

Here’s a small test case for a model that outputs a score at each daily close. A score above 0.65 is a positive signal. The strategy can hold one position at a time, enters at the next open, and holds for two trading sessions.

• Monday close: 0.72. The strategy enters on Tuesday morning.

• Tuesday close: 0.69. That would send a new order for Wednesday morning, but the Tuesday trade is still open then.

With a rule that discards signals while the position is open, I’d expect two positive scores, one entry, and one signal skipped because the account was already holding. Queuing the second signal until the account is flat would be a different rule and could give a fill a day later using a stale score.

I’d check that the signal table keeps both scores and that the order log explains which one became a trade. A model evaluation can count both predictions, while a portfolio evaluation has to enforce the position rule. For anyone who uses a model to generate entries, what do you log so you can reconcile those counts?

I work on eStockes. The scores and position rules in this example are hypothetical.


r/mltraders • • 4d ago

Quantitative trading has gotta be made more accessible

1 Upvotes

Ive been going deeper into algo trading these last few months, and the thing that keeps bugging me is how one sided it is. All the real quant tools are locked up at hedge funds and prop firms. They have teams of PhDs, expensive data, and risk systems that cost more than most people make in a year. Meanwhile regular retail traders are going in blind, looking at a chart and a couple of indicators and hoping for the best. Then the market drops 10% in a week and they get wiped out because nobody ever showed them how bad things could actually get. That’s not a skill gap, that’s an access gap. And now that AI makes it way easier for big players to build models, that gap is only gonna get wider unless someone builds tools for normal people.

So I started building one. Full disclosure, it’s my project, it’s called Blue Lotus. It does stress testing and tail risk analysis for stocks and strategies (dw if you don’t know what that means, that’s kind of the point). Basically you put in your strategy or a ticker, and instead of just looking at how it did in the past, it runs thousands of simulated versions of what the market could do next. That includes the rare bad ones, like sudden crashes and big volatility spikes, which most beginner tools completely ignore. From that it shows you things like how much you could realistically lose on a bad day, what your worst drawdown might look like, and how your risk changes when the market goes from calm to stressed. It also gives you a fragility score, which basically tells you how much you should trust the results. A strategy that only looks good because of a lucky stretch of data will score as more fragile. I put a lot of work into making the outputs readable for people who aren’t technical at all. There’s a toggle on every run where you can pick between a plain language view that explains everything in normal words and a full quant view with all the numbers, so beginners and experienced traders can both use it.

Would genuinely love feedback, especially from people who think this stuff is too complicated for them. Link if yall wanna check it out: bluelotuslabs.net


r/mltraders • • 5d ago

Self-Promotion I wanted to stop blowing funded accounts

2 Upvotes

So over the past few years I've blown a few funded accounts. Every time I kept changing strategies, re-optimizing, etc. Same results every time.

I never really looked at how an individual strategy fits in a portfolio. I started wondering if maybe I should treat my forex portfolio the same as any other trading portfolio, where I put more/less risk in a strategy depending on it's individual performance.

So I built an optimizer that splits the risk between strategies based on how they've actually performed together, instead of me guessing. Here's the same 5 strategies on a $100k account with a $10k drawdown limit, Jan 2020 to Apr 2026:

​

Equal 0.5% risk on each: net profit $335k, max drawdown $20.3k, return factor 16.51. That's double the limit, so the account would have been gone.

Optimized allocation: net profit $237k, max drawdown $9,995, return factor 23.75.

So yeah, the equal risk version makes way more money on paper. It's also the one that blows the account. That's basically what kept happening to me. I was looking at the profit number and ignoring the drawdown.

Obviously this is a backtest, and the allocation was fitted on the same data, so don't read it as a promise of anything. The optimizer does run a monte carlo with possible combinations and does an IS/OOS split.

The other thing that used to drive me nuts is not knowing whether a drawdown is normal. Every losing streak I'd wonder if the strategy was broken or just having a bad month, and I'd either turn off something that was fine or keep running something that had stopped working. So I made a second tool that compares each live strategy to its own backtest and shows whether it's inside the range you'd expect. In the second screenshot, XAUUSD is tracking fine and GBPUSD is flagged as running below its usual range. That's the call I used to make on gut feel.

​

Happy to answer questions about how it works. The dashboard is on cephic.io and it has demo data so no sign-up is needed if you simply wanna give it a look.


r/mltraders • • 5d ago

Algo based Stock Alerts- subscribe Via email

0 Upvotes

Get started here: https://www.ksemaglobal.com/sitesetting?sitename=RoboUSA

Stop staring at charts all day—or buying too late after the rally peaks. 📈

Subscribe to Robo Stock Alerts and get automated U.S. & global market signals sent straight to your inbox:

🔹 Dip-Recovery Alerts: Catch stocks rebounding off support with momentum.

🚀 Bullish Breakouts: Spot strong uptrends early as price and volume surge.

⚡ Instant Setup: Just add your email and start receiving timely buy alerts.


r/mltraders • • 5d ago

Did a deep dive into the Sharpe ratio, a few things I found interesting

0 Upvotes

I recently went down a rabbit hole on the Sharpe ratio. I always just looked at it as a number at the end of my backtests, but there's a lot more going on. A few things that stood out to me:

  1. It doesn't change with leverage. If you run a strategy at 2x, the excess return doubles and so does the volatility, so the ratio stays the same. That's why comparing raw returns is misleading. A strategy making 6% at 5% vol is actually better than one making 12% at 20% vol, because you can lever the first one 4x and get 24% at the same risk.
  2. Volatility drag. +20% then -20% leaves you down 4%, not flat. The drag is roughly vol²/2 per year, so when you add leverage it grows faster than your returns do. Growth works out to roughly S*v - v²/2, which peaks when your vol equals your Sharpe and goes to zero at twice that. So at some point more leverage stops helping, even if your edge is real.
  3. Combining strategies. The variance of two strategies together is var A + var B + 2*covariance, so lower correlation means a higher combined Sharpe. With 0.1 correlation, 6 strategies with Sharpe 1 get you to about 2, but going all the way to 300 only gets you to around 3.1. Correlation matters a lot more than how many strategies you run.

It's not perfect though. It counts big up months as risk, and strategies that make small steady gains with the occasional huge loss look great on Sharpe right up until the loss shows up.

Wrote it all up here if anyone's interested: https://shivanshuag.com/blog/sharpe-ratio-from-first-principles/

Curious to hear from people who use something else like Sortino or Calmar, and why.


r/mltraders • • 5d ago

Experimental Vault

Thumbnail reddit.com
1 Upvotes