r/algotrading • • Mar 28 '20 Bravo

Are you new here? Want to know where to start? Looking for resources? START HERE!

1.5k Upvotes

Hello and welcome to the /r/AlgoTrading Community!

Please do not post a new thread until you have read through our WIKI/FAQ. It is highly likely that your questions are already answered there.

All members are expected to follow our sidebar rules. Some rules have a zero tolerance policy, so be sure to read through them to avoid being perma-banned without the ability to appeal. (Mobile users, click the info tab at the top of our subreddit to view the sidebar rules.)

Don't forget to join our live trading chatrooms!

Finally, the two most commonly posted questions by new members are as followed:

Be friendly and professional toward each other and enjoy your stay! :)


r/algotrading • • 23h ago

Weekly Discussion Thread - December 01, 2026

3 Upvotes

This is a dedicated space for open conversation on all things algorithmic and systematic trading. Whether you’re a seasoned quant or just getting started, feel free to join in and contribute to the discussion. Here are a few ideas for what to share or ask about:

  • Market Trends: What’s moving in the markets today?
  • Trading Ideas and Strategies: Share insights or discuss approaches you’re exploring. What have you found success with? What mistakes have you made that others may be able to avoid?
  • Questions & Advice: Looking for feedback on a concept, library, or application?
  • Tools and Platforms: Discuss tools, data sources, platforms, or other resources you find useful (or not!).
  • Resources for Beginners: New to the community? Don’t hesitate to ask questions and learn from others.

Please remember to keep the conversation respectful and supportive. Our community is here to help each other grow, and thoughtful, constructive contributions are always welcome.


r/algotrading • • 12h ago

Strategy 70% return in 3 months, from 515 trades, market neutral L/S stock portfolio. Time to move a bit more $$ from the investment portfolio to the trading portfolio...

Thumbnail gallery
174 Upvotes

9 years after discovering the stock market, and years of looking for patterns and probably thousands of hours backtesting... I believe I've finally found a good edge, which works in all market environments.

70% return in 3 months, using ~4x leverage (through CFDs). Sortino 5.81. Sharpe 3.42.

Almost always (close to) market neutral, so don't really care about market direction (though long/short ratio can vary from 0.5 to 1.5).
All positions opened at the end of the day, manually(!!).

Long part of the portfolio consisting of 1-6 positions (usually 4-5) using the final trading algorithm (momentum-based trading, zero fundamentals). Selected from US stocks wit volumexprice above 200 million, or very liquid ETFs.
Holding time is usually 1-3 days, but sometimes extended to over 1 week.

Short part of the portfolio is about 9-13 positions, chosen using fundamental analysis. Holding time varies a lot, but usually many weeks/even months (though the exact entry and exit still uses the algorithm).

This trading portfolio was a small percentage of my normal, long-only investment portfolio... Time to add a bit more $$ to it!

Note: "The Value Added Monthly Index (VAMI) is a statistical figure that tracks the daily, monthly, quarterly performance of a hypothetical $1000 investment."

Edit:
-This includes all IBKR fees and overnight funding already.
-Total return on second screenshot (VAMI) i different because today's trading P/L is still not available to view there


r/algotrading • • 10h ago

Other/Meta RIP Legend. Warren Buffet 1930-2026

Post image
95 Upvotes

r/algotrading • • 6h ago

Strategy I pre-registered 105 MNQ intraday tests for a 50K eval. The ideas that worked for years faded in 2024+, and a recent-looking breakout failed the holdout.

2 Upvotes

I spent the last stretch looking for a simple MNQ intraday idea that could survive a 50K futures evaluation with a $2,000 trailing max-loss limit (Lucid's rules). Paper research only. Nothing was traded live.

Every test was written down before I ran it. I used a 2024-and-later primary gate, a random-entry baseline with the same exits, and a Bonferroni correction as the try count grew. By the end I had 105 counted tests.

The momentum ideas that looked solid from 2011 through 2023 decayed in 2024+. On one of the better ones, first-payout odds were about 63%, 69%, and 86% in the 2011-15, 2016-19, and 2020-23 blocks. From 2024 through May 2026 those odds were 0%. The gross edge per trade fell from about $17-$30 down to about $7, which is roughly the size of costs, and the edge over random entries was about +$0.25 per trade (p = 0.49). Every rolling evaluation in that window blew up before reaching the +$3,000 target.

I also checked whether this was just bad data. Over about two and a half months of overlap, real NinjaTrader MNQ futures matched our stand-in data closely on returns, volatility, opening ranges, and direction. So the 2024+ fade is most likely real, not a data artifact. The overlap is only late 2026, so it cannot prove the match held in 2024-2025.

One plain 15-minute opening-range breakout, used as a control, was the opposite pattern. It was weak in 2011-2019 and looked strong in 2024 through May 2026. I did not pick it just because the recent window looked good. I pre-registered a separate "recent-regime only" test on an untouched June-November 2026 holdout, with the earlier failure stated up front.

It failed. On the stand-in data it lost $5,141 and was worse than random entry. On real NT8 data, from mid-September through November, it also lost money ($1,223 after costs). The drawdown was $2,788, past the $2,000 trailing limit, and a single evaluation started on day 1 would have been breached. On 24 days both data sets took a trade, they took the same direction on 23.

The lesson for me: an edge that worked for years can just stop. A recent-looking one can stop too. Holdouts and baselines are what catch it. I parked this search.

After a 2024+ decay like this, would you keep testing the same family on a slower timeframe, switch to a different index future, or treat momentum and opening-range breakouts as retired for now? What would you test next, and what gate would you use to decide?

(Paper research only, not financial advice.)


r/algotrading • • 14h ago

Other/Meta Another month (update)

Post image
7 Upvotes

Last month, I shared the results of my first full month running my own breakout strategy with real money. November is now in the books, and it turned out to be an even better month despite taking fewer trades.

November results:
- Net P&L: +$1,698.58
- Closed trades: 10
- Win rate: 60%

Combined results after two months:
- Net P&L: +$2,629.34
- Closed trades: 27
- Win rate: 51.9%

Obviously, 27 trades is still a very small sample size, and I’m expecting tougher months along the way.
Would you guys be interested in seeing monthly updates on my live trading journey?

I’d be happy to document the entire process, including the losing months and drawdowns, rather than just sharing the good results.

Curious to hear what you guys think!


r/algotrading • • 18h ago

Strategy I tested selling Kalshi 15 minute BTC contracts when an 85c bid faded

6 Upvotes

I wanted to see what happens if I sell a Kalshi 15 minute BTC contract after the bid gives back a lead. I bought YES when Coinbase BTC was at least $25 above Kalshi’s settlement cutoff and the five-minute move was up at least +0.03%. I flipped the rules for NO. I restricted entries to only two to seven minutes left. If a contract I held had a bid of at least 85c and later dropped to 66c or less, I tried to sell. Otherwise I held to settlement.

My first backtest made +$413.46 PnL after fees on 739 closed positions, with a -$21.02 max drawdown. The early exit closed 20 of those positions. Then I ran 100 variants that changed the buy limits. All 100 reported gains, from +$81.47 to +$517.05. The top result used my original settings. Its reported PnL leaves out about $13.32 in entry fees on those open contracts.

I tested buy-limit floors from 5c to 45c and ceilings from 47c to 95c. The floor can raise the limit I send on a cheap order, and the ceiling caps what that order can pay. At the original 5c floor, a 78c ceiling still came back at +$505.54. Across all floors, the 47c ceiling averaged +$177.36 and the 95c ceiling averaged +$454.55. The Sharpe check that accounts for trying 100 settings cleared its cutoff.

I shuffled the timing of the Coinbase readings 100 times, kept Kalshi’s prices fixed, and reran the grid each time. The best shuffled result was +$189.19. Zero of the 100 matched the real-timing best of +$517.05, for a corrected p-value of 0.0099. That comparison tests the Coinbase timing on these same markets.

I think this shape might have promise. I'll start very small with hard position and spending limits, a daily loss cutoff, and a kill switch.

Full Report


r/algotrading • • 18h ago

Strategy I guess update #3

Thumbnail gallery
4 Upvotes

I've been running approximately eight different strategies all based on the underlying entry requirements.. A couple have been absolute dog crap and a couple have been pretty decent this is my underlying one that i am the most confident with so far I have one other one that is more profitable but I am more comfortable with this particular one because it is consistently upper 70s lower '80s win rate.

So this whole setup started with $500 and I'm only using $500 per trade.. Overall it's not a bad setup if I can continue this over say December I will probably try a $500 live account in the beginning of January..


r/algotrading • • 1d ago

Other/Meta My trading bot v183

Post image
40 Upvotes

1 year of trading experience and 6 months of trying to build a bot. It's still slightly disappointing. This is almost the 200th version and I felt like I'm going somewhere!

I basically use Claude to back test by strategy comes from me. Some times the Ai seems quite persistent that something is not going to work but I have to fight it a few times.

Each trade is at 0.5% risk and increasing it slightly this month. My idea is to trade small movements that's largely unaffected by news.

Should I add a new strategy or try and improve the current one? That's what I'm stuck at most


r/algotrading • • 13h ago

Strategy Crude went from a −21% month to a +5% day on one unverified geopolitical headline. Do your models trade that or filter it?

0 Upvotes

WTI fell about 21% in November, then rose 4.9% on Tuesday (settle $86.41) after Iran's IRGC said three tankers hit mines in Hormuz. The claim had not been independently verified, and Brent and WTI moved together while the US 10-year yield jumped 11 bp to 5.04% in the same session.

Curious how people handle this kind of event in systematic strategies:

  • Do you treat headline-driven spikes as signal, or mask them until realised volatility settles?
  • If you filter them, do you use a volatility threshold, a news-time blackout, or something else?

r/algotrading • • 15h ago

Infrastructure Services offering both API trading and Solo 401(k)

1 Upvotes

I'm working on automating as much of my money transfers and trading as possible. Most of my accounts are at Fidelity, which doesn't offer an API for stock/ETF trading. I want to move to something that does. The code-friendly brokers like Alpaca don't seem to support Solo (self-employed) 401(k)s, and the only two I've found that support both are Schwab and ETRADE. Their login limits will likely be a pain for automation:

Are there other options I'm missing? Has anyone opened a self-directed Solo 401(k) trust account at an API-first broker?

Thanks!


r/algotrading • • 1d ago

Strategy Month 1 of forward testing, the good, the bad, and a three-bot race with the rules fixed in advance November was the first full month of my bots running forward on demo with frozen rules. Here’s all of it, including the ugly parts.

4 Upvotes

Main FX bot
61 trades, 36% win rate, +10.7R, avg +0.18R a trade, profit factor 1.33, max drawdown 6.3R.
Before anyone gets excited: the uncertainty is about ±0.41R, bigger than the average, so statistically it's indistinguishable from zero. Most of the profit came from entries between 08:00 and 12:00 UK (+14.5R over 17 trades), while entries before 08:00 and from 12:00 onwards lost slightly. USD/CAD alone made +10.1R.
I also changed the bot five times during the month, so this is several versions stitched together, not one frozen system. That's fixed from 30 Nov (more below).

Forward paper tests (rules frozen before any forward data)

  • Opening-range breakout: +46.65R over 106 trades, +0.44R a trade. The backtest said −0.07R on the design years and about flat on validation. Without its best day it's still +35.6R. My honest read: this has come from one market regime (high volatility, falling markets), and its own backtest in that regime was about flat. It reviews at 538 trades, a number set from its backtest spread, so I'm a long way from knowing anything.
  • Intraday momentum: −6.28R over 56 trades, in line with a backtest that lost.
  • Trend following: −30.42R closed. It holds monthly, so only stopped-out trades have closed so far. Counting open positions it's −25.67R. Rough start.
  • Carry −1.90R (2 trades), positioning fade −0.97R (4 trades), pre-Fed drift 0 trades (first one is 9 Dec).

Research
77 ideas pre-registered and tested, none has passed. Try 77 came straight from this sub: a minimum stop on the breakout, after the thin-range Thanksgiving trade. Picking the floor in advance, the placebo split and comparing refused against kept trades were all suggestions from here. Result: it only touches the tiniest-range days, it does no harm, and the gain wasn't significant. So it's a safety rail, not an edge.

New: a three-bot race
From 30 Nov, three bots run on separate demo accounts: my FX bot, my index executor, and a challenger built from scratch that wasn't allowed to reuse any family of idea I'd already failed with. None of the three showed an edge in its own backtest, so I'm not expecting a winner. The point is measuring them honestly.
One rule decides if any of them ever gets real money, written and committed before the first trade counted:

  • at least 100 trades and 26 weeks
  • average at least +0.10R and 2 standard errors above zero
  • positive in at least 2 of 3 time splits
  • demo fills match the bot's own rules
  • profit factor at least 1.2
  • no day worse than −5%, no drawdown worse than −10%
  • any change to a bot restarts its clock

Results publish automatically every week, with SHA-256 hashes of the private specs, so I can prove later the rules weren't changed after the fact. The methods stay private.
Repo: http://github.com/AlgonikHQ/algonik-bot-race

Happy to take criticism on the rule, especially if you think something in it is too loose.


r/algotrading • • 1d ago

Strategy Spent a week tuning my strategy using backtest data since June'26. Finally added some more data since 2021 :'(

Thumbnail imgur.com
5 Upvotes

r/algotrading • • 1d ago

Strategy How do I backtest the Strategy below?

1 Upvotes

I have a strategy which is as follows:

Equity Characteristics: PE below 35, Free float Above 50%

Equity Universe: Top 100 companies globally by Free Float Market Capitalisation (FMC).

Portfolio Mechanics:

Choose Top 20 companies by FMC in descending order;

Assign Equal Weight;

25% GICS sector cap;

Annual Rebalancing.

Hence 5 stocks per GICS sector, 5% weight per stock, Chosen in descending order as per FMC, from above equity Universe.

I want to backtest this since year 2000, check Price Return, Total Return and average dividend yield.

How do I backtest this, and where do I get the results?


r/algotrading • • 2d ago

Strategy Does anyone use autoresearch loops in their daily workflows?

17 Upvotes

In february there was a boom in autoresearch like karpathy's auto loops and other open source loops coming on github. But lately seems like the hype has ended. Does anybody still use those agentic loops in their daily workflows. If no, then why not? What challenges did you encounter when using it?


r/algotrading • • 1d ago

Strategy Nodes or script for building strategies? Need all the help you can provide

3 Upvotes

So my project started as a visual node board for strategies. You connect blocks and that's your strategy. Works ok for simple stuff, but when I build anything bigger with it myself, the board just gets messy.

Now I wanna add a Pine-like script, mostly because of things that feel awkward as nodes. Like inline optimization:

rsi = ta.rsi(close, optimize(14, 5, 30, 1))

In script that's one line. On a board, where does it even live? Same with looking at the strategy's own past trades from the current candle, like skipping a signal if the last two trades were losses. In code it's an if. As nodes it's a weird loop going back into itself. And I want people to train a small XGB or HMM right inside the script too, and I honestly can't picture that as nodes without it turning into spaghetti.

I'm leaning to nodes that compile to script, so you can switch views. But then debugging is pain, because the user sees code they didn't write. And dropping nodes completely kinda scares me, since I built everything around them 🙃

Also I know inline optimize looks like an overfitting machine. My plan is to only trust it with walk-forward, so it never picks params on the same data it's tested on, but idk if that's enough.

Did anyone here go through this, nodes vs code, and which one did you actually end up using?


r/algotrading • • 2d ago

Data How many of you have consistently beat the market?

35 Upvotes

For years I’ve heard the saying “almost nobody can beat the market long term.” While I think this is largely true, I don’t see it as absolutely true. Firstly it’s obviously very hard to monitor this on a large scale, and it often refers to people stock picking over time vs an index. However I’ve seen some people who post very impressive equity charts over 5-10 years and I believe not all of them are BSing.

How many of you have actually beat the market long term (at least 4-5 years)? I’m not necessarily talking about insane 100+% returns per year, I’m talking about stable 20-35% growth that most normal people would dream about. Any experiences are appreciated!


r/algotrading • • 1d ago

Data Affordable full-depth equity data via API?

1 Upvotes

The market goes 23/5 very soon and now more than ever it seems like looking at how thin an orderbook really is, may be helpful.

Has anyone found a way to get full market depth (Nasdaq TotalView) into Python without paying an arm and a leg? I found it through databento (only the plus sub has it and thats 1500$ lol)

Don't need MBO, just uncapped MBP. Unfortunately, dxFeed doesn't offer API access to retail users.

Curious if anyone here has found a decent alternative.


r/algotrading • • 3d ago

Strategy I started live

Post image
127 Upvotes

Started my first live trading recently. I've been studying quant trading for a year and learned a lot of lessons along the way, so just wanted to share some.

First, ML algos with limitless freedom to fit are extremely dangerous. If you really want to use them, use them in a constrained frame. I ended up not using ML at all for my current strategy.

Second, doing more trials to discover strategies doesn't give you better results in OOS. This was the most frustrating one for me. Now I strictly limit how many trials and variations I try during development.

Third, I initially thought crypto doesn't have many opportunities cuz the whole market is highly correlated with BTC. But it actually has a lot of edges. When I was researching US stocks, the edges I found were usually small, and when I improved them it was mostly by reducing noise, not by increasing returns. Without leverage it's hard to make meaningful money from edges like that. In crypto leverage is super easy, so those small edges become a real opportunity.

Fourth, edges are highly related to how much money you put in. They saturate easily, but at 50-200k size there are still a lot of opportunities, especially in small and mid cap coins. Big players usually have way more money and aren't interested in edges at this scale.

I only have 20 days of live experience so this could be useless trash lol.
Good luck for everyone.


r/algotrading • • 2d ago

Strategy Anyone empirically tested Dealer-Gamma (GEX) + IV Skew as a regime filter for intraday SPY/SPX spreads? Looking to compare notes

9 Upvotes

Hey r/algotrading,

I’m testing an automated regime gatekeeper for 0DTE/intraday SPY & SPX spreads (playbook infographic attached) and want to connect with anyone who has already researched or live-tested dealer-positioning models to compare notes on what actually held up out-of-sample.

The Core Setup (No Sub-ms Front-Running)

Instead of racing market makers on tick-level hedges, I’m using 60s options chain snapshots + filtered OPRA sweeps (Vol > OI, single-leg only) as a regime filter for 5m price-action triggers:

Positive GEX (Spot > Flip): Fade 5m rejections at Call/Put Walls with credit spreads when ATM IV compresses.

Negative GEX (Spot < Flip): Trade 5m failed retests of broken walls with debit spreads when Vol > OI sweeps and ATM IV expand.

1:30 PM Vanna/Charm Drift: Take ATM bull call spreads when spot holds above VWAP and morning put IV steadily decays.

(Guardrails: ±0.15% no-trade buffer around Zero-Gamma Flip, skip first/last 15m, and strict bid-ask width caps).

Questions for anyone who has tested GEX / Vanna / Charm systematically:

Did adding GEX/Flow gates produce statistically significant lift (higher Sharpe/profit factor or lower drawdown) over pure price-action triggers on the same timeframe?

How did you handle the "naive GEX sign" assumption and intraday OI lag? Did flow-signing prints (aggressor side + condition codes) meaningfully improve wall accuracy over overnight OCC open interest?

What was your biggest live failure mode? (e.g., watered-down walls from retail crowding, or stop-loss slippage on vertical spreads during negative-GEX cascades).

Happy to share my benchmark results (comparing $0/mo Schwab chain math vs. Databento OPRA.PILLAR tick replay and Unusual Whales flow) once my shadow runs finish!


r/algotrading • • 2d ago

Other/Meta Best Equity Trading account for algo trading with LLM (Claude, Gemini or ChatGPT)

0 Upvotes

I want to experiment with AI-driven trading using a small amount of capital to start with.

I'm not looking to build a traditional algo-trading system on IBKR, where I have to code the strategies and manage the entire execution infrastructure myself.

I'm more interested in an AI-driven approach where ChatGPT, Claude, or Gemini can analyze the market, identify opportunities, make trading decisions, and potentially execute trades through a brokerage account.

I've heard Robinhood is exploring this space. Are there other platforms worth considering? Would you recommend Robinhood, Fidelity, E*TRADE, or something else for this kind of experiment?

Ideally, I'd like to start small, connect AI agents with minimal setup, and gradually explore more autonomous trading with proper risk controls.


r/algotrading • • 2d ago

News Does anyone know which trading platforms have already chimed in on when their APIs will support the 23/5 trading that is rolling out on Dec 6?

5 Upvotes

New came out this last week that NYSE and NASDAQ are going to do 23/5 trading on their own exchanges (no longer need Blue Ocean ATS for overnight trading). But I haven't seen any of Schwab, Alpaca, IBKR, Robinhood, or others talk about using the standard exchanges for overnight instead of Blue Ocean ATS (most already support the pre-market and after market use of the primary exchanges)

https://www.tradingview.com/news/u_today:39c053449094b:0-wall-street-to-go-23-hour-from-december-6-what-this-could-mean-for-crypto/

Has anyone seen official announcements from the major brokers?


r/algotrading • • 2d ago

Strategy Something a little more fun than the usual “are you profitable” posts

1 Upvotes

Post about a time that your algo went rogue and did something stupid, and how much it cost you.


r/algotrading • • 2d ago

Strategy 3 bots running so far,Had to delete the old ones...lets see how they do!!!

Thumbnail gallery
0 Upvotes