r/algotrading

Claude bot, finally lost a trade
▲ 38 r/algotrading+2 crossposts

Claude bot, finally lost a trade

Hey folks, I recently set up a claude MCP connector to the robinhood platform in order to trade. First 2 weeks were straight butter, and claude could not be stopped. Then he had a losing day for first time in his 3rd week last week.

I am giving full transparent updates and not trying to hide any of the progress or trades it makes on TQQQ and SQQQ. You can find all of the previous week posts in this sub as well if you look around.

note: I only got to perform 1 trade day last week with my bot because I was out for vacation during the 4th of july weekend. The 1 trade it made was a losing trade so week 3 goes down as a loss unfortunately.

I will be spinning him up every day again this coming week as I will have more time to keep an eye on things. I still don't fully trust him yet, but he is slowly giving me confidence.

strategy: I trade TQQQ and SQQQ only and make 1 trade per day. its simple and straight to the point. we try to ride the daily momentum one way or other after morning breakouts.

what type of bots are yall building and trying to make work?

u/TastyTrading — 8 hours ago

Polymarket bot posts?

Logged into Twitter today to see like hundreds of likely fake posts about Polymarket algos and accounts to copy trade. What’s the deal here? Surely this has to be sponsored posts paid by Polymarket?

u/ResponsibleGulp — 14 hours ago

Maker making hedging

How do market makers correctly delta hedge their inventory? Is it strictly hedging each delta every movement? Say we have 100 delta short so I hedge long. 2 mins later it drops to 85 delta. Would a market makers rebalance immediately or is there a threshold they’re looking at?

reddit.com
u/DiscountedCashHoe — 7 hours ago

״Money-Printing Machine״

Is it just me, or is it kind of funny seeing people post here that they spent 6 months building a trading bot that makes 30% a year?

The Nasdaq is up around 30% this year. 😅

Rule #1: if you've actually found a profitable strategy, managed to automate it, and it consistently outperforms the major indexes over the long run, the last thing you should be doing is posting about it all over Reddit or trying to sell the bot.

If you've really built a money-printing machine, why would you risk ruining your own edge?

At this point, I don't really see much difference between people selling trading courses and people promoting the "amazing" trading bots they built.

reddit.com
u/Jack242 — 22 hours ago

LLM Supported Back Testing Spreads

Has anyone ever had LLM's that are monitoring and devising back-testing almost goal seek spreads that erode an edge even when you have months and months of actual trades to support more reasonable, pragmatic values? Not even an alpha, just a slight edge. This is even after I point it to the historical spread data. Time to get my tinfoil hat out

reddit.com
u/mdawe1 — 11 hours ago

If you rank traders by win rate or raw P&L, you'll systematically pick the worst ones to copy

A "follow the smart money" idea I've been testing: can you rank traders by their public performance stats and just copy the top ones? I pulled a large sample of on-chain fill data to check. Short version - win rate and raw P&L are actively misleading as ranking metrics, and I'd like to sanity-check the method with this crowd.

The failure mode: a trader can post a 95-98% win rate with basically zero edge by only ever taking positions that are already near-decided. On a market sitting at 98c you put up 98 to make 2 - you win almost every time, and the equity curve looks flawless. But the edge is ~nil, and it's unfollowable: you can't get filled at 98c at any real size, and you're risking 98 to make 2. On an orderbook, by the time the "top" trader takes that level, it's already gone.

So a leaderboard sorted by win rate (or raw P&L) surfaces exactly the accounts you least want to copy.

How I filtered it into something meaningful:

- net cost basis (FIFO), not the platform's own realized-P&L field

- flag accounts whose fills cluster in the near-decided band (90-99c)

- entry realism: could you actually get filled near their price at size?

After filtering, the set of genuinely copyable accounts is much smaller and looks nothing like the raw leaderboard.

Cumulative P&L: public leaderboard ranking vs the same wallets after farmer / cost-basis filtering.

(The dataset is Polymarket - it was the cleanest fully on-chain fill data I could get - but the metric problem is general to any copy strategy ranked off a public leaderboard.)

How do you all handle this when ranking traders from public data - cost-basis and fill-realism filters, or is there a cleaner way?

reddit.com
u/Turbulent-Peace-8772 — 12 hours ago

Past 2 weeks work.

Working on to move the WR to around 70% and RR to slightly lower for healthy consistency. The stats are for last two weeks of the strategy that trades USDJPY intraday. If my WR and RR ratio is healthy all I am caring about is to keep my DD below 10% for the long run.

Inspiration : "We don't start with models. We start with data. We look for things that can be replicated thousands of times." - Jim Simons

u/Merchant1010 — 18 hours ago
▲ 62 r/algotrading+1 crossposts

Stairway to Heaven: a trend-following breakout system on gold. 31% win rate.

Lurked here for years, finally have something worth throwing to the wolves.

Pure trend-following: Donchian-style breakout entry, single fixed trailing stop on the exit. No grid, no martingale, no averaging down. One position at a time, fixed risk, and it either trails into a move or gets stopped out small. I called it Stairway to Heaven before I had a good reason to, then the equity curve grew stairs, so now it's earned.

The run below is XAUUSD, ~18 months (Jan 2025 → Jun 2026), real-tick backtest at 100% quality, $10k start:

- Net +$18.9k (+188%)

- Profit factor 1.74, Sharpe 2.89, recovery factor 3.10

- Max drawdown ~21.41%

- 1,136 trades, Win rate: 31%. Average win $126, average loss $33.

Let me get ahead of the top comment: yes, it loses ~7 trades out of 10, on purpose. It bleeds a thin stream of small stops through the chop (those flat, sagging stretches on the curve are it paying rent) and then catches the occasional real trend and lets it run.

The whole edge lives in that ~3.8:1 win/loss ratio, not in the entry. Honestly the hardest part isn't the code, it's sitting through six weeks of slow bleed without touching anything. If watching your equity leak sideways makes you itch, this style will eat you alive. That discomfort is the moat.

Things I think actually matter here:

- Peak exposure is ~1% of the account (bottom subgraph). No leverage tricks, no "hold and pray it comes back." Worst case per trade is a known, fixed stop.

- It's long-biased in the stats (longs win 35%, shorts 27%), which lines up with gold's regime over this window — so some of this is the market, not me.

- That big step in March 2026 is the gold spike. A trend system's dream. But look right after: it hands a chunk back and grinds sideways for months. There is no free lunch, only a delayed one.

Caveats, because I'm not selling anything:

- One instrument. I have no illusion this generalizes for free, trend systems are famously regime and instrument dependent.

- It's a backtest. Real ticks help, but breakout fills are exactly where live slippage bites, and I haven't stress-tested that properly yet.

What I'd genuinely like input on:

- Single trailing stop vs scaling out, every partial-TP variant I test lowers my Sharpe, which surprised me. Anyone found the opposite?

- How do you personally survive the flat stretches in a live account, sizing rules, a basket of uncorrelated systems?

u/UniversalJS — 1 day ago

anyone else run a few strategies and basically just eyeball the combined account balance to judge them

keep replying to threads here about backtests and validation and it made me realize i don't actually have a clean way to tell which of my own setups is worth keeping vs which one is just along for the ride. if the account is up overall i assume everything's fine, but that's obviously not really true if one system is bleeding and another is covering for it. anyone actually separate performance by strategy or is everyone just watching the whole account like i am

reddit.com
u/ab_do20_75 — 1 day ago

Built a walk-forward signal calibration engine from scratch. Here's what surprised me after 272 million candles

About 18 months ago I started building a rules-based signal research system for crypto. What I thought would take a few weeks turned into one of the most technically humbling projects I've ever worked on.

A few things that genuinely surprised me:

Your scoring system can be completely broken and look fine.

For weeks every signal scored exactly 55. Not 54. Not 56. Exactly 55 every time. Turns out the composite scorer had a single early return that fired whenever the local per-symbol cohort had fewer than 12 resolved trades. Instead of falling through to the family-level calibration data — which had 45,000+ resolved trades — it stamped 55 and moved on. The feed floor was 65. Nothing could ever clear it. The pipeline looked healthy. Zero users saw anything.

One function. One early return. Weeks of silent failure.

Your delivery pipeline can accept signals and still deliver nothing.

After fixing scoring, signals started clearing the floor. Users still weren't seeing them. A race condition in the fan-out process was partially completing, hitting a 500, then the retry got a duplicate signal response and returned early — without checking whether delivery rows had actually been created. Signal accepted. Row in the database. Zero deliveries. The pipeline reported success at every stage.

Gates that look protective are often just expensive.

I built a volume confirmation gate that seemed reasonable — require elevated volume before emitting a signal. After 272 million candles of walk-forward research the gate suppression audit showed this single gate was suppressing 158,000R of positive expectancy across 33,000+ missed winners. Every gate has a cost. Most people never measure it.

A 99.4% rejection rate is a feature not a bug.

The system generates roughly 26 million candidate setups lifetime. It emits about 146,000. That 99.4% rejection rate is the whole point. The hard part is knowing which gates are earning their keep and which are just creating noise.

Regime matters more than the signal.

I just ran a popular YouTube EMA crossover strategy through the same walk-forward engine. 152 resolved trades. Overall win rate 25.7%, expected R -0.72. But broken down by regime: trendUp showed 53% win rate and positive expected R. trendDown showed 8.4% win rate. Same strategy. Same rules. Completely different outcomes depending on market conditions. Regime filtering is the most underrated component in any signal system.

Currently at 272 million candles processed, 50 symbols, 4 timeframes, running 24/7. Happy to answer questions about the architecture — the gate suppression audit design and walk-forward calibration engine are the parts I find most interesting.

u/Ambitious_Line_6739 — 1 day ago

What's the biggest reason you DON'T trust your backtests?

I'm curious how everyone here deals with this.

Have you ever had a strategy that looked incredible in a backtest, only to completely fall apart in paper trading or live trading?

If so, what do you think was the biggest reason?

  • Overfitting?
  • Look-ahead bias?
  • Survivorship bias?
  • Slippage/commissions?
  • Curve fitting?
  • Data quality?
  • Market regime changes?
  • Something else?

Also, if you could add one feature to your current backtesting platform (TradingView, Backtrader, NinjaTrader, QuantConnect, etc.), what would it be?

I'm interested in hearing real experiences, especially from people who've had a strategy "pass" historically but fail once real money was involved.

reddit.com
u/Key-Personality6799 — 2 days ago
▲ 63 r/algotrading+1 crossposts

Where did I go wrong? A failed strategy after 3 months of Constant Work

Hey all, in this post I will be outlining the approach I've taken to my current infrastructure, data, and strategy, along with how I tested and how I've verified there's no alpha, for two reasons:

  1. To help other algo quant devs to avoid my mistakes

  2. Look into insight from smarter people than me.

So first things first, The Data Approach:

I started off downloading 1 minute data over all 13,000 tickers in the US stock market over the last 20 years, including some other macros such as Oil, Gold, Silver, some international ETFs, US ETFs, and VIX. This is effectively (2005 - 2026). This is my data I am training everything on.

From there I built parquet files, and caches for the 1 minute and 1 day time frames. Incorporated company splits, M&A, ticker renames, point in universe (keeping track of dropped and newly added tickers) in the S&P 500 for example. Validated data is clean.

Next, The BackTesting Approach:

I used both Combinatorial Purged Cross Validation, as well as Walk Forward Optimization (all built in house), to test my strategy. I would then also track deflated sharpe ratio, sharpe ratio, Max Drawdown, Cum Return, CAGR, amongst other metrics. I then developed a triple barrier labelling (which is based on the AFML book, and takes into account 3 barriers (profit taking and stop loss barriers, which are daily computed based on ticker volatility), and a third barrier ~ time (which I arbitrarily chose as 10 days) for a daily based trading strategy.

I also ran 4 models as baselines (S&P 500 Buy and Hold, Mom_12 (monthly rotating of highest momentum ticker per sector), and two others). S&P 500 proved to be the highest sharpe ratio and cumulative return, so that effectively is my baseline I need to beat, with a sharpe ratio of about ~0.5.

Next, Feature Set:

With the backtesting framework setup complete, I developed a set of 60 features, most of them technical or statistical indicators including (price, volatility, volume, return vs. stock's own return in a given period, return vs. s&p 500, return vs. sector average, and multiple other cross-asset correlation features).

Next, Models:

I only built two models to test up until this phase of the project. I used a LightGBM model in a supervised learning capacity, attempting to classify the daily labels across every 150 selected tickers, across my 20 year dataset. Keep in mind the triple barrier labels were computed pre-hand. CPCV would take care of look ahead bias.

I also built a linear regression model to attempt to estimate the time at which one of the 3 barriers would touch.

Next, The Dissappointment:

I ran my model with default hyperarameters, just to see how well it would be able to classify my labels. In all honesty, I anticipated it would be somwhere in the 60-70% accuracy and recall range, then with Optuna hyperparam tuning I could maybe get it up to 70-85%. These numbers are very humble comared to my grad school work where training on classification problems such as image classification, etc. would easily grant me 90%+ accuracy scores.

To my surprise, my model was only able to achieve around 50.5% accuracy, essentially a coinflip ~ zero alpha. In-sample validation showed 70% accuracy, and to further investigate, I tested which epoch gave me the best generalization accuracy ~ turned out to be epoch 2. Anything after that was overfitting heavily.

The linear regression model wasn't much better, effectively too much error to reliably generalize.

Of course there was a lot more future work to do in my algorithm, outlined in the next section, but I wanted to see even SOME promise from my classifier to be able to continue. Right now I feel completely devastated by these results.

Future Phases of my Project (On Hold for now until I decide next pivot):

  1. Meta-labeling (based on AFML), a second layer on top of the models classification results

  2. Optuna based hyper tuning of parameters

  3. SHAP for interoperability of feature importance and model performance

  4. Other interesting models (Transformers, Hidden Markov Models, Random Forests, etc.)

  5. Risk Management Models

  6. Execution Models (L2 based execution and fills)

FINALLY, Where I think I went wrong, What could be done better, And Opening the floor for discussion

  1. AFML strictly talks about how time-based data such as (minute, hour, daily) etc. carries no significant alpha, and instead we should be looking at event driven information, which carries more information entropy.

  2. I've seen a few people talk about tick-level data as where they've found success, rather than minute or hourly or daily time based data

  3. Is my approach completely wrong? Is trying to predict triple barrier labels at 10 days out just a genuinely wrong approach given my feature set? What are typical classification predictions you try to make in your own algos? (Price, volatility, volume, imbalances, etc.)?

  4. Finally, maybe I don't really need high classification accuracy, as Citadel I believe only achieves 51.5% accuracy, but at millions of trades, they're profitable in the billions. Maybe the real alpha is in the execution and risk management side of the algorithm?

  5. I also tested across 20 years of 1 minute data across 150 tickers. Maybe sizing down my dataset could help?

I appreciate any, and all insight, PREFERABLY from smarter people than me who have ACTUALLY managed to produce profitable algorithms that trade in real markets.

(I'm not interested in how good your backtests are, I'm interested in insight from real-trading algorithms in the markets)

- Thank you for reading my long post. You are a real one if you've got this far

reddit.com
u/CuriousEngineerHere — 3 days ago

Mid-2026 Portfolio Update: Up 23.6% so far, but here’s how I nearly blew it. (Myfxbook Verified Results)

I've run a portfolio of CFD strategies generated with StrategyQuant X for over 2 years, and I publish my results publicly.

I’m halfway through the year and sitting at a 23.6% return on my master account. It’s been a great run since March, but the first three months were essentially a flatline, punctuated by a massive, heart-attack-inducing spike that I definitely didn’t intend.

I learned two massive lessons the hard way, and I figured I’d share them in case anyone else here is building their own algo systems.

1. Triple-check your live trade executions

I hit a weird spike in early March because of a bug in my code. I run my strategies with a strict 0.25% risk per trade, but for my Japanese stock index strategies, the code was accidentally firing at 2-3% risk. Instead of my usual $500–$600 per trade, I was suddenly risking $3,000–$4,000. It worked out to the upside initially, but it was pure luck, followed by a brutal dip. If you’re trading, audit your MT5 backtests—I would’ve caught the math error immediately if I’d actually paid closer attention to those logs.

2. Tick data testing is mandatory

My performance for the first quarter of the year was just going sideways. However, when I backtested the strategies, I should've been up. So the backtests and the live results weren't matching.

Here's the thing: for a long time, I was only running my backtests on 1-minute resolution data. My logic was that because these are intraday breakout strategies with trade durations of a few hours, the resolution wouldn't matter. I was wrong.

When I finally forced all my strategies through a tick data test, the ones that weren't matching my backtests showed massive performance degradation. I made tick data cross-checking a mandatory part of my workflow, and once I cut the strategies that failed that test, my performance smoothed out and my rolling monthly Sharpe ratio jumped above 2.0.

Overall:

June was my best month yet at 13.39%, and I'm feeling a lot more confident now that my backtests actually reflect live conditions. This portfolio has been running for over 2 years, and I'm trying to be as transparent as possible.

u/Free_Butterscotch_86 — 2 days ago

Help with Faster Entries?

https://preview.redd.it/gnnh971um4bh1.png?width=1340&format=png&auto=webp&s=f2bdacb190774439f208e06a3e27e98cdf76b0a1

Okay so im successfully gating/standing aside during the mean reversion regime, and hitting profitable trades in trending regime pretty well on this instrument, but I cant help but notice it could be getting much better entries. Its using EMAs on entry so thats the place to improve. The benefit of this setup is it gets a confirmed breakout move but because of the lagging nature of EMA gets in later.

What methods can capture the move earlier? Everything ive tried hits the same wall and underperforms the current setup

reddit.com
u/trunksta — 2 days ago

Backtested the dumbest possible trend rule on BTC vs SOL (3yr) — 30% win rate but still very profitable. The R:R is doing all the work.

Ran the simplest thing I could think of: go long when the daily close crosses above its 20-day average, exit when it closes back below, 8% stop. 3 years, $1,000, slippage included, no fancy filters.

  • BTC**:** +79.5% — CAGR 21.9%, win rate 30%, max drawdown −29%
  • SOL**:** +263.9% — CAGR 55.6%, win rate 36%, max drawdown −62%

What got me: both won under 40% of the time. All the profit came from winners being 3.8–4.7× the size of losers. Same exact rules, but SOL's volatility juiced both the return and the drawdown hard.

(Ran it through an MCP in Claude called Rix so I didn't have to write the code, but the takeaway is really about the R:R, not the tool.)

Makes me wonder how much a regime filter or a volatility-scaled position size would smooth that SOL drawdown. Anyone here run naive trend rules like this across assets

Does the "low win rate, high R:R" pattern hold up on the alts you've tested?

reddit.com
u/amu4biz — 3 days ago

Feedback on my NQ strategy.

Backtested with commissions and slippage included; sample size is small(2020 - Today). want honest feedback. (new to algo trading).

Title: ORB NQ

The basic idea:

  • Mark the opening range (first 15 min of the session)
  • Trade breakouts of that range, but only with confirmation- (Ema)
  • A higher-timeframe trend filter

Risk rules:

  • Fixed % risk per trade, sized off the stop
  • Daily trade limit and daily loss limit
  • Certain days get skipped entirely based on overnight action
  • Flat by early afternoon, nothing held overnight
u/OutsideCap6700 — 3 days ago
▲ 1 r/algotrading+1 crossposts

Built MTF “GOLDEN POCKET” System for XAU/USD

I've been working on a golden pocket retracement approach for XAUUSD and wanted to share the logic and get some outside eyes on it before I take it further.
The idea: identify swing legs on the 15m chart, calculate the 61.8%–65% Fibonacci retracement zone (the "golden pocket") for each leg, then wait for price to tag that zone and print a rejection candle on the 5m before entering — so structure comes from the higher timeframe but the entry itself is timed more precisely on the lower one. Stop-loss sits beyond the swing point (ATR-buffered or at the 78.6% level, configurable), and take-profit scales out across three levels: the prior swing point, then two Fibonacci extensions beyond it.

(Not financial advice, backtested performance ≠ future results, trade at your own risk.)

u/Quantum_Incognito — 2 days ago