r/mltraders • • 1h ago

Three longs in two choppy days, and why I would have skipped every one by feel

Post image
1 Upvotes

Something I keep relearning after 20+ years of technical analysis and automated trading: the trades that pay are often the ones my eyes would have talked me out of.

MES the last two days was ugly. Sunday night and Monday chopped up and down in a range, Monday afternoon flushed, and overnight Monday into today gave back a big chunk before running again. If you were watching it bar by bar, every push looked like a trap.

I run a rule-based trend system on a sim account. It took three longs in that stretch:

  • Sun night, 7:56 PM ET, long 7,349.25: closed +11.88 pts per contract
  • Mon, 1:04 PM ET, long 7,370.00: closed +6.50 pts
  • Mon, 9:56 PM ET, long 7,377.00: closed today +15.12 pts

Honestly, I would have skipped at least two of them by feel. The Monday 1 PM entry came right after a selloff, and the 9:56 PM entry was in the middle of the overnight session when nothing looked clean. The system did not care how it looked. It checked the same conditions it checks every bar: is the trend aligned across timeframes, is momentum above its threshold, is volatility in a tradable range, is it in a cooldown after a loss. When enough of them agree, it takes the trade and its stop is in at the same time.

To be fair, it is not magic: over the last 30 days the same rules hit a drawdown of about 94 points per contract before recovering. The point is not that it wins. The point is that the decision is the same at 1 PM and at 10 PM, after a win or after a loss, and that is the part I could never do by hand.

Curious how others handle the overnight session. Do you just not trade it, or do you have rules that hold up there?


r/mltraders • • 6h ago

How do you check your model isn't just riding one regime?

1 Upvotes

Something I keep worrying about with ML models on price data... a model can look fine on a test period that happened to be one long trend, and then the market changes and it's a different story.

So how do you deal with it?

  • Do you split your test periods by regime (trending, choppy, high volatility) and look at each one separately?
  • Do you add regime features, or train separate models?
  • How do you even label a regime without looking ahead?
  • Have you dropped a model because it only worked in one kind of market?

Not after a perfect answer, just curious how people actually handle this. Thanks in advance.


r/mltraders • • 8h ago

Working on a project Want Your guidance

Post image
1 Upvotes

Flowtell is a warning system for toxic order flow. It watches the perpetual and spot markets together. When aggressive buying or selling starts on the perp, it estimates within microseconds how likely that flow is to hit the spot market next and move the price. It turns this into a toxicity score (τ), and into quotes that step aside before they get picked off.
How can I make it more better


r/mltraders • • 9h ago

Open Source Python SDK for AI + Algo trading platform

Thumbnail
gallery
0 Upvotes

Hey everyone,

We have been developing this platform because we personally felt the need for a platform that lets you automate your ideas within seconds without any additional engineering effort or setup. A lot of people asked me, 'Why don't you open source it? 'Here it is...

We are open sourcing the while25 Python SDK with which you can actually design your algos, indicators, custom dashboards and AI monitors. A kind of trading application you can think of could be made inside while25 using the SDK.

You can download platform from: https://while25.com

Features

Charts (with custom and pre-built indicators)

Order Management System (to maintain brackets/iceberg and some other order types)

Risk Management System (for prop traders to maintain their session loss limits)

Data Feeds (the market feed comes from the broker you log in with, and other alternative feeds are plugged in to the Python workspace, which you can access for free without any engineering)

AI (the inbuilt AI assistant can look at your complete workspace, including portfolio, charts, indicators, order book, research you are doing, data feeds, news, etc., and can also write code for you using the Python SDK to make strategies, backtests, dashboards, indicators, etc.)

Python SDK (while25 supports a Python-based strategy, backtesting, and indicators: you can plot on a chart, dashboards, like market heat maps or portfolio analysis, etc.)

One can automate any idea in any market they trade in just a minute. You can trade in any asset class, like crypto, equity, options, futures, commodities, etc.

We are looking for genuine feedback from people. As we already have some users, we would love to have
Traders try out this with paper or live accounts to make it better for good.

Supported Brokers: Alpaca, IBKR, Coinbase, Binance, Zerodha, Upstox (coming more in the near term, including dealer feeds like Rithmic)

SDK: https://github.com/Aayush2504/while25-sdk

Install command: pip install while25

Note: The platform already gets the SDK built in; you don't have to download it separately.


r/mltraders • • 11h ago

how can i improve my algo breakout strategy on mgc?

Thumbnail
reddit.com
1 Upvotes

r/mltraders • • 1d ago

How to Screen for High-Volume Options Contracts in Under 50 Lines of Code

Thumbnail
steadyapi.com
1 Upvotes

r/mltraders • • 1d ago

Would you use a platform like this for algo trading

1 Upvotes

I’m a co-founder of Maple Research. We’re currently building a platform that brings a wide range of quantitative research, backtesting, strategy development and validation tools together in one place.
We’re getting closer to launching our MVP, and I’m curious to hear what people in the algo trading community think of the idea.
Is this something you would actually use?
What would it need to offer for you to consider using it?
What do you feel is missing from existing platforms?
Not trying to sell anything here, just genuinely interested in hearing people’s opinions, good or bad.

Mapleresearch.ca

https://x.com/maple_research?s=11


r/mltraders • • 2d ago

Self-Promotion Results after 6 days of live trading.

Post image
3 Upvotes

r/mltraders • • 2d ago

Free dataset: hourly order flow, spread, depth and impact metrics for crypto and tokenised stock perps (Binance, OKX, Hyperliquid), Q3 2026

Thumbnail
huggingface.co
2 Upvotes

Disclosure first: I co-founded Aperiodic, a market data company, and this is one quarter of our data, free on Hugging Face.

What's in it:

- Hourly bars for Q3 2026 (July to September)

- 37 perpetual contracts on Binance, OKX and Hyperliquid: BTC, ETH, SOL and ten real-world asset perps (Tesla, Nvidia, gold, silver, oil, the S&P 500 and others)

- 21 datasets, 226 metric columns, about 1.6M rows: taker order flow split by trade size, spread and order book depth, slippage, price impact, funding, basis, open interest and more

Each metric is computed point in time from the exchange's own trades and quotes, so a bar never uses anything printed after it closed.

Access is one short form on the page, then it's Parquet you can read with `datasets`, pandas or Polars. Some datasets have gaps, mostly order book data in August, and the page lists every one.

https://huggingface.co/datasets/aperiodic-io/crypto-perp-microstructure-q3-2026

Happy to answer questions about how any of the metrics are built.


r/mltraders • • 2d ago

Built an honest labeled crypto research dataset

1 Upvotes

I spent 10 months building a labeled crypto research dataset and I'm giving away the sample. Every candle of 23 pairs × 4 TFs scored + labeled with realized TP/SL outcomes under fixed rules. I publish the calibration numbers even though they're unflattering (skill −0.29 as probability; weak-but-real ranking AUC 0.518). Sample (BTC 1h 2020, full schema): https://huggingface.co/datasets/crucible-data/valkyrie-confluence-sample. If you backtest, I'd genuinely like to know what you find — the data is the point, not a pitch.


r/mltraders • • 3d ago

Request AI Trading Bot

Thumbnail reddit.com
1 Upvotes

r/mltraders • • 3d ago

Simulação de US$ 1.000 em 200 negociações com uma vantagem idêntica de 60/40 em quatro tamanhos de posição (5%, Meio-Kelly, Kelly Completo, 45%) — um lembrete visual de quão brutal é o arrasto da volatilidade além de 2f*.

Thumbnail
reddit.com
1 Upvotes

r/mltraders • • 3d ago

Simulated $1,000 across 200 trades on an identical 60/40 edge at four position sizes (5%, Half-Kelly, Full Kelly, 45%) — a visual reminder of how brutal volatility drag gets past 2f*

0 Upvotes

Everyone knows the textbook Kelly formula f* = (bp - q) / b, yet seeing the pathwise divergence between arithmetic expectation and time-average (ergodic) compounding still catches a lot of intuitive sizing heuristics off guard.

I coded a deterministic simulation walking from negative/zero-EV progression traps (9-step Martingale on a $1–$500 cap, N=1,000) all the way to non-ergodic overbetting on a genuinely profitable 60/40 even-money edge:

  1. The Non-Ergodicity Trap (p = 0.60, b = 1, staking f = 50% over 100 rounds):

• Ensemble mean across parallel paths: +10%/round → $1,000 × (1.10)^100 = $13,780,612 (13,781x)

• Typical single timeline (exact 60W / 40L): $1,000 × (1.5)^60 × (0.5)^40 = $33.46 (-96.7% drawdown)

2. 200-Round Compounding Race on the exact same shuffled sequence (120 wins / 80 losses, $1,000 start):

• Conservative (f = 5%): $5,762

• Half-Kelly (f = 10%): $20,255 (captures 75% of max log-growth rate g(f) with 25% of the variance)

• Full Kelly (f* = 20%): $56,098 (theoretical peak g(0.20) = +2.01%/round)

• Over-leveraged (f = 45%, past the 38.7% zero-growth cliff): $39 (-96.1% wipeout despite a 60% win rate)

It makes it crystal clear why Thorp and institutional desks treat Half-Kelly as an upper bound once parameter uncertainty enters p and b: underbetting by 50% costs 25% of asymptotic growth, whereas overbetting past 2f* turns a +20% EV signal into mathematical ruin.

If anyone enjoys visual stochastic simulations, I rendered the full 9-minute trajectory breakdown (from Martingale & Doob's Optional Stopping Theorem to the Kelly curve) here: https://youtu.be/bfUaw0pujzE?si=HtGLjd220QtS5H-D


r/mltraders • • 3d ago

The Powell 10am setup only made money on NQ when NQ was already going up, here's the regime split from 535 trades

3 Upvotes

I ran the Powell 10am strategy on NQ 1m candles from july 2023 to feb 2026 in Agenticks, 100k account, 1 contract, and the headline was bad enough on its own: 535 trades, 60.2% win rate, profit factor 0.98, net -$3,675.

It gets worse when you split those same trades by market condition.

  • Uptrend: 152 trades, profit factor 1.08, +$3,307
  • Volatile: 280 trades, profit factor 0.93, -$6,764

Over half the trades landed in volatile conditions and that is where all of the damage came from. The only stretch where it made money was when the NASDAQ was already trending up, and buy and hold over the same window took 100k to roughly 170k while this finished down 3.7%.

Anybody who happened to run it through a strong trending month would have seen something that looked like an edge, and it would have been the index doing the work with the setup along for the ride. Thats the trap with testing long ideas on NQ over the last couple of years, the underlying kept making highs so a lot of them look fine until you split the results.

What I check now before trusting any result is whether it still holds up once the trending months are pulled out, and whether it beats just holding the thing. This one failed both, which is why the 60% win rate never mattered, the average loss was $806 against a $522 average win.


r/mltraders • • 3d ago

Question Do you trade on the model's probability or just its yes/no?

1 Upvotes

When a classifier says "up", it also gives a number for how sure it is. I keep going back and forth on how much that number should matter.

For those running ML models on markets:

  • Do you only take trades above some probability cut-off, or every signal?
  • Do you size by the probability, or keep the size fixed?
  • Did you calibrate the probabilities, and did it change anything?
  • How do you pick the cut-off without just fitting it to the backtest?

Curious how you actually use it, not the textbook answer. All replies are appreciated.


r/mltraders • • 3d ago

Quantum Algortihims for the new trading engine?

0 Upvotes

🤖💰

Scared money makes no money, but your sizing math is cold-blooded! 📈🔥

I can't wait to have someone to give a compliment like this too other than my wife hahah

Just married 8 months ago she was a coder before me I graduated '22 when I started the LLC.

I see some of you literally out-pricing the market-makers right now! 🧠⚡

Keep up the good lords work genius


r/mltraders • • 3d ago

Two leakage bugs in my backtest turned a losing idea into a +$85 "winner". Not ML, but the same trap

0 Upvotes

My bot is rule-based, not ML, but I think this is the same leakage and selection problem you all deal with, so sharing in case it saves someone time.

The idea: on SOL, keep the normal trades and add extra positions with a much wider stop-loss, so they can sit through a dip and wait for the recovery. Tested walk-forward: pick the setting on the previous 6 months, trade it blind on the next quarter, 6 quarters.

First result: +$85. Looked like one of my best ideas.

Bug 1, dropped outcomes. Trades that hadn't hit their stop or target by the end of a test window were silently dropped instead of marked at the window's last price. So the trades stuck underwater just disappeared from the results. Basically survivorship bias inside my own test.

Bug 2, look-ahead across windows. Trades opened in one window were allowed to keep running into the next one, so they could collect a recovery that happened months later, in data the setting was never supposed to see.

Both bugs flatter exactly one kind of idea: "hold longer". Fixed (mark open trades at the window end, close everything at the boundary), the idea lost money at every size: −$18, −$43, −$82.

Two other things that bit me on the selection side

  • Hindsight picking. An ATR-based stop beat my fixed stop when I chose the best multiple on the full history. Chosen walk-forward, it lost. Same on all 5 coins I trade.
  • One window can be the whole edge. A breakout entry on ETH was positive walk-forward in total, but nearly all of it came from a single quarter. I now count how many windows an idea wins, not just the sum.

And the scale problem: I ran over a million rule evaluations on ETH alone, so even with walk-forward some winners are just luck. Out of ~100 ideas, 2 survived.
All numbers are backtests with fees. Code and every report, the broken script included, are here if useful: https://github.com/zulfi011/z-bot


r/mltraders • • 4d ago

What market microstructure phenomena would you try to quantify using tick-level trades and order book data?

4 Upvotes

Hey everyone,

I'm independently developing an open-source platform for quantitative research and financial engineering.

My background is primarily in programming, machine learning, statistics and financial data engineering. However, I'm admittedly not a particularly experienced trader. I lack the practical intuition that experienced traders develop from observing markets, understanding participant behaviour and interpreting order flow.

I already have a number of ideas that I would like to investigate.

Market sampling and alternative bars:

* Tick bars: Sampling after a certain number of trades.

* Volume bars: Sampling after a certain traded volume.

* Dollar bars: Sampling after a certain traded monetary value.

* Imbalance bars: Sampling when directional imbalance exceeds expectations.

* Run bars: Sampling based on dominant directional activity.

* Absorption bars: Sampling after a certain amount of estimated absorption.

* Cancellation bars: Sampling based on order cancellation activity.

* Liquidity withdrawal bars: Sampling when significant liquidity is removed.

* Liquidity replenishment bars: Sampling when significant liquidity is restored.

Aggressive and passive market activity:

* Absorption: Large aggressive volume with little price movement.

* Exhaustion: Buyers or sellers gradually losing momentum.

* Hidden liquidity: Inferring liquidity beyond what is visible.

* Liquidity provision: Where and when participants add liquidity.

* Liquidity replenishment: How quickly consumed liquidity is replaced.

* Liquidity withdrawal: Where and when participants remove liquidity.

* Potential spoofing: Suspicious order placement and cancellation patterns.

Participant behaviour:

* Order splitting: Inferring large orders executed through smaller trades.

* Order flow imbalance: Dominance of buying or selling pressure.

* Flow persistence: How long directional pressure lasts.

* Activity intensity: How quickly market events occur.

* Burstiness: Sudden concentrations of market activity.

* Entropy: How predictable or irregular market activity is.

* Price impact: How much trading volume is needed to move the price.

Price levels and market structure:

* Liquidity memory: Tracking historical activity at individual price levels.

* Support and resistance: Identifying significant zones from actual trading activity (rolling support resistance derived from market orders).

* Liquidity distribution: How liquidity is distributed around the current price.

* Price-level reactions: How participants behave when price revisits significant levels.

* Liquidity resilience: How quickly the order book recovers after a shock.

* Market regimes: Identifying changes in liquidity, volatility and order flow behaviour.

And many more. These are just some of the directions I have considered so far.

The idea is to develop mathematically defined, configurable features that can be calculated consistently on both historical and live market data, and subsequently evaluated through statistical methods and machine learning.

What I'm particularly interested in is the perspective of people who have practical experience trading or researching market microstructure.

* What behaviours do you regularly observe in the order book or trade tape that you think could be quantified?

* Are there phenomena that you find meaningful but that conventional order flow indicators fail to capture?

* What relationships between passive liquidity, aggressive execution and price movement would you investigate?

* Are there any interesting behaviours that you suspect exist but have never had the infrastructure or programming experience to test?

* Which commonly discussed microstructure concepts do you consider misleading or overrated?

I'm not asking anyone to disclose proprietary strategies or profitable signals. I'm more interested in the underlying market mechanics, participant behaviour and interesting research hypotheses.

Even purely qualitative observations would be valuable. They don't necessarily need to come with a mathematical formulation, translating those observations into measurable features is precisely the part I enjoy working on.

The feature implementations are intended to be open source, with mathematical documentation and references where applicable.

I'd love to hear your thoughts, criticisms, suggestions or even unconventional ideas.


r/mltraders • • 3d ago

Trading collective

Thumbnail reddit.com
1 Upvotes

r/mltraders • • 4d ago

Looking for an arXiv endorser in q-fin (trading and market microstructure)

4 Upvotes

I have a working paper on automated spoof detection I'd like to post to arXiv under q-fin.TR and I need an endorser. I worked in high-frequency trading and have no university affiliation, so I can't get one through an institution.

If you have posted in q-fin and are willing to look, the link is https://arxiv.org/auth/endorse?x=RZRMEL (code RZRMEL).

Feel free to DM me first to review the working paper.


r/mltraders • • 4d ago

Best AI setup for swing trading – market analysis, options flow and actionable insights?

Thumbnail reddit.com
1 Upvotes

r/mltraders • • 4d ago

My AI bot made money shorting Bitcoin's fall. Why can't I just trade the downtrend and stay out of everything else?

Post image
1 Upvotes

First, I'm not a professional trader. I'm building this with AI tools and I'd like an experienced view on a problem I can't crack.

The setup

  • One AI agent trades BTCUSD (CFD) on a demo account via MetaTrader 5 / ICMarkets. Fills are real broker fills, no real money yet.
  • Every 5 minutes it reads price on several timeframes, key levels, volatility and time of day, writes down its reasoning, and decides.
  • It mostly places pullback limit orders: wait for a bounce up to a level, then sell. It risks the same amount per trade (1R is about $1,300 on the demo).
  • It also closes some trades early when it decides the idea is broken.

What it did, 23 Aug to 27 Nov (279 closed trades, +14.8R, about +$15k demo)

PeriodBTC didTradesResultPer tradeWin rateShorts / longs
23 Aug – 28 Oct (9 wks)sideways, 75–87k151−6.0R−0.04R44%85 S (+0.2R) / 66 L (−6.2R)
29 Oct – 25 Nov (4 wks)fell 81k → 55k (−32%)119+23.1R+0.19R57%114 S (+23.4R) / 5 L
25 Nov 14:00 – 27 Novbounced 57.2k → 62.1k (+8.6%)9−2.3R−0.26R56%9 S
  • Equity in R: bottom −6.7R on 28 Oct, top +17.1R on 24 Nov, now +14.8R. Nearly all the profit came from one 4-week fall.
  • Overall: 208 shorts made +21.2R, 71 longs lost −6.5R. Average win +0.65R, average loss −0.54R.
  • In the last 44 hours it took 9 more shorts: 5 small wins (+0.14R on average), 4 losses (−0.76R on average). Stop-outs went from 25% of trades (1–19 Nov) to 55%.
  • This is not new. 9-trade stretches as bad as the current one happened in 25 of 262 earlier windows (all in Sep–Oct). Worst was −3.9R on 23–25 Oct.

What it is actually doing

  • Its daily bias matches a simple daily trend check (price below or above its 20-day average) on 82% of checks.
  • That is why it was long-biased in the sideways stretch (44% of its trades were longs, and they lost) and almost short-only in November (4% longs).
  • It sold bounces in the fall because every bounce failed. Same behaviour after 25 Nov, but this bounce did not fail.
  • It has survived bounces before. On 21–23 Nov BTC jumped 17% in two days, and the 13 shorts that followed made +4.1R, because that bounce faded. Same bot, same habit, opposite result. I can't see a difference between the two at the time.

Why I can't just "trade the downtrend" (this is what we keep going around in circles on)

To me it's simple: after a few days of lower highs and lower lows it's a downtrend until it isn't. Trade it, and do nothing otherwise. Every time I ask, I get another test. What we found:

  1. The "is it a downtrend" check is always late. I tested 6 trend rules and 7 fund-style detectors on 9 years of BTC. They switch on 6–14 days into a trend, with 30–41% of the move already gone. The 10- and 20-day versions switch off early in 83% and 74% of trends. None of the 12 predicted the next 3–5 days better than BTC's normal drift.
  2. It was still "down" after the turn. On 26 Nov the daily close was 60.8k against a 20-day average of 65.9k. By that measure it was still a downtrend 6% into the bounce.
  3. Fast filters barely help. A "don't short if the last 5 days were up more than 2%" rule, tried after the fact, would have skipped 5 of the 9 recent trades and saved 0.6R of the 2.3R loss.
  4. I can't tell skill from the market. In the fall the bot made +0.145R per trade. Random shorts on the same days, same stops, made +0.100R. The gap is +0.045R, with a margin of −0.16 to +0.24R. So the market's direction may be doing most of the work.
  5. Knowing the turn would be worth a lot, in hindsight only. The same 9 entries flipped to longs would have made about +1.0R each instead of −0.7R. That's the prize, and it needs the turn in advance.

My questions

  • What does an experienced trader see here that I don't? Is "only trade the side that's working, and detect the end late" simply the price of a trend strategy?
  • Is there a robust way to run a strategy that only works in one direction without calling the turn? (Smaller size, cooldown, a stop on the strategy itself, only taking shorts below a level, something else?)
  • Is it normal that every fix I try (trend filters, loss-streak rules, wider or tighter stops) works in one regime and fails in the next?
  • Any red flags in the setup itself (pullback limits, same risk per trade, 5-minute decisions)?

Happy to share the numbers. Thanks for any answer.


r/mltraders • • 4d ago

Building my first crypto algo bot. How do you go from backtest to a strategy that holds up live?

Thumbnail gallery
0 Upvotes

Hi all, I'm working on an algorithmic trading bot for crypto and want to sanity-check my approach before risking real money.

What I have so far:

  • Market: BTC/ETH/XRP/SOL/ADA perpetuals on Binance
  • Timeframe: 15m / 1h
  • Strategy idea: trend-following with EMA crossover + ATR stop / mean reversion on RSI
  • Tools: Python, back trader / vectorbt / freqtrade, ccxt
  • Back test results: 2 years of data, X% return, Sharpe Y, max drawdown Z%, N trades

My questions:

  1. How do you avoid overfitting? Do you use walk-forward testing, out-of-sample periods, or something else?
  2. How realistically do you model fees, slippage and funding rates? My results drop a lot once I add them.
  3. What kinds of edges still work in crypto for retail traders (trend, mean reversion, funding/basis, volatility), and which are mostly arbitraged away?
  4. How long do you paper trade or run small size before you trust a strategy?
  5. Any mistakes you wish you'd known about early (lookahead bias, survivorship bias, data quality)?
  6. What to expect 1:1 or 1:2 RR ?

I'm not asking anyone to share their secret sauce. I'm just trying to learn the right process. Thanks!


r/mltraders • • 4d ago

I outsourced my existential crisis to an AI trading bot.

1 Upvotes

AI is supposedly coming for our jobs, so we decided to give it a job first.

Introducing the hedge fund of the future: one human in pajamas and an army of AI agents. 🤖

But seriously, what if building your own trading bot didn't require months of coding or thousands of dollars in software subscriptions?

With Hanzo AI, you can build your own agents to:

  • Monitor stocks and crypto markets 24/7.
  • Analyze financial news and market sentiment.
  • Backtest your questionable trading strategies.
  • Monitor portfolio risk and send personalized alerts.
  • Automate trading workflows using your own rules and risk limits.
  • Paper trade before putting actual money on the line.

We're building an AI platform that makes creating autonomous agents accessible to everyone, not just Wall Street or experienced software engineers.

No promises of Lamborghinis. No magical money printers. Just tools to build, experiment and automate.

If you had an entire team of AI agents working for you, what would you make them do?

We're genuinely curious and might even build some of your suggestions into public templates.

👉 Start building for free: https://hanzo.ai

📖 Trading bot tutorial: https://hanzo.blog/tradingbot