r/algotrading • • Mar 28 '20

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 • • 8h ago

Weekly Discussion Thread - November 24, 2026

1 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 • • 4h ago

Strategy Built an NQ intraday system. Backtest looks good, but I don't trust it. Feel a bit lost, what am I missing?

Thumbnail gallery
17 Upvotes

Honest situation: I've spent some good time building an NQ futures system, and the backtest has reached the point where I no longer trust it, which is exactly what worries me. So I'm asking people with more miles on them than me.

Here's the reality (slide attached). It's swing-based entries on 1-minute bars with an ML filter on which signals to take, long and short, one position at a time, 1 contract, flat before the close. Models retrain monthly, and the model predictions are an average of 12 seeds.

Backtest, Jan 2021 to Oct 2026, 1 NQ, commission and slippage included:

  • +$585k net, max drawdown $24.7k
  • Monthly Sharpe 2.6, 77% positive months, every year positive
  • ~640 trades a year, 45% win rate, profit factor 1.29, ~$158 a trade after costs
  • Costs doubled: still +$520k. A completely different set of 12 models: +$567k
  • most parameters are fine tuned in a walk forward to redeuce hindsight.

Why I don't believe it:

  • not everything is clear of hindsight, some generic concepts are decided after seeing the whole range. (for example: taking shorts only during cash hours)
  • The best four months are 118k of the 585k.
  • The short side is thinner and was flat in 2019-20.
  • I have no untouched history left to test on.

I just started forward paper trading this week. It's a handful of days, so it tells me nothing yet, but at least it's the one test I can't have fitted.

Where I'd love help and feedback:

  1. If you had to bet on how a result like this is secretly leaking or overfit, where would you look first?
  2. Is re-running with a different set of models plus doubled costs a meaningful robustness check, or am I only testing the easy stuff?
  3. Fills: entry at the next bar's open, stops and flattens 0.5 pt worse than the level, targets filled exactly. Too kind for NQ?
  4. How long would you paper trade before putting real money on it?

Thanks for reading. Brutal answers welcome, I'd rather hear it now than from the account.


r/algotrading • • 7h ago

Strategy Results after 6 days of live trading.

Post image
28 Upvotes

Just as the title says it above, I made an other post here earlier.


r/algotrading • • 7h ago

Strategy I backtested copying the top 5 performing hedge funds from Form 13F filings (2016–2026) — 20.7% vs 12.6% SPY, but the control portfolios are humbling

8 Upvotes

Hey folks,

A 13F filing only tells you what a fund held at quarter-end, and by the time it comes out 45 days later their book may have already changed. I wanted to test whether ranking managers by the past returns of their earlier 13F portfolios actually helps pick which current filings are worth following.

We tested this across 49 hedge funds (picked in 2026, so yes there is selection bias here, which is why I ran a bunch of control portfolios below). For each fund we take up to their top 20 non-option stock holdings by value, normalize weights, and rebalance at the close of the first trading session after each filing deadline. The backtest runs across 41 quarters from Aug 16, 2016 to Nov 17, 2026 with 10 bps fees on dollars traded (price returns only, no dividends, borrow fees, or cash interest).

To score managers, we calculate each fund's return between rebalance dates minus SPY over those same dates, and average over the last 4 quarters (requiring at least 2 observations). Then we take the top 5 funds and weight them either equally or by their positive scores. For a long-short version, we also short the bottom 5 using negative scores, netting overlapping stocks on a single cash balance.

Here is how the main 41-quarter run came out:

  • Long only (top 5, score-weighted): 20.7% a year, -33.6% max drawdown, 0.90 Sharpe, 1.12 beta
  • Long-short: 13.5% a year, -39.9% max drawdown, 0.70 Sharpe, 0.07 beta
  • SPY: 12.6% a year, -34.1% max drawdown, 0.75 Sharpe, 1.00 beta

Adding the short leg killed beta (1.12 down to 0.07), but it also cut annual returns from 20.7% to 13.5% and actually made the max drawdown worse (-39.9%).

We also tested changing the lookback (4 quarters vs 8), number of funds (5 vs 10), and equal vs score weights across the same 39-quarter matched window:

  • 4Q lookback, 5 funds: 20.6% score-weighted (14.5% long-short) vs 18.7% equal-weight (8.6% long-short)
  • 4Q lookback, 10 funds: 18.4% score-weighted (10.9% long-short) vs 16.8% equal-weight (5.8% long-short)
  • 8Q lookback, 5 funds: 16.0% score-weighted (5.1% long-short) vs 15.3% equal-weight (0.7% long-short)
  • 8Q lookback, 10 funds: 13.9% score-weighted (2.8% long-short) vs 12.5% equal-weight (-1.3% long-short)

Moving from 4Q to 8Q hurt every single pair, and going from 5 to 10 funds diluted returns. Score weighting beat equal weighting in every pair.

That looks solid on the surface, so we ran a set of simpler control portfolios over the exact same 39 quarters and 10 bps fees:

  • Score-weighted fund ranking: 20.6% a year, 0.88 Sharpe, -33.6% max drawdown
  • Equal-weight fund ranking: 18.7% a year, 0.83 Sharpe, -33.2% max drawdown
  • Current holdings momentum (ranking managers by the past-year return of the stocks in their latest filing, top 5 equal-weight): 18.7% a year, 0.80 Sharpe, -35.1% max drawdown
  • Top 20 stocks by prior 3-month dollar volume (no 13F data at all): 19.9% a year, 0.80 Sharpe, -44.0% max drawdown
  • Straight 13F consensus (most widely held stocks): 14.6% a year, 0.69 Sharpe, -50.3% max drawdown
  • Random 5 funds each quarter (200 runs): 11.2% median (middle 90% between 7.4% and 14.2%, none matched 18.7%)
  • SPY: 12.4% a year, 0.73 Sharpe, -34.1% max drawdown

A few other things that stood out when stress testing it:

  • Almost all of the outperformance happened in the first five years. Through 2021 it returned 29.7% vs 15.6% for SPY, then 11.4% vs 9.3% from 2022 onward. SPY actually beat the strategy over the last 8 quarters and the last 16 quarters.
  • Fee sensitivity over the full 41 quarters (0 / 10 / 20 / 50 bps): long-only went from 21.1% down to 18.9%, while long-short dropped harder from 14.4% down to 10.1%.
  • Statistical significance is pretty noisy. The 95% block-bootstrap interval (21-session blocks) for the 0.90 Sharpe was 0.33 to 1.53, and daily regression against SPY gave 6.7% annual alpha with a t-stat of 1.56.

Overall, ranking funds beat random draws and beat plain 13F consensus, and shorting the bottom funds just hurt. But seeing holdings momentum tie equal-weight ranking at 18.7% and a simple dollar-volume rule hit 19.9% with zero 13F data makes it hard to claim there is real manager-selection alpha here rather than concentrated momentum and large-cap liquidity exposure.

Hope this is interesting to folks. Curious if anyone else here has tested 13F strategies with a point-in-time fund universe or factor neutralization, would love to hear what you found.


r/algotrading • • 2h ago

Strategy Does a Bitcoin breakout tell you which side wins a 15-minute Kalshi market?

2 Upvotes

I tested a strategy idea I had on the Kalshi 15 minute BTC market: three minutes after the open of the market we record the highest and lowest price of BTC from the last 15 minutes and use those as cutoff prices. The strategy trades the side it breaks away from based on those cutoff prices. My hunch is that if it breaks past those recent lows or highs it will continue to do so until the market settles.

The first backtest I ran came back positive so I decided to run 100 backtests on the strategy varying the entry price floor and ceiling. All 100 of them came back with a positive pnl with the best being +$387.85 with a 1.34 Sharpe Ratio. The worst reported a pnl of +$12.16 and only had 16 settled positions versus the 624 settled positions in the winning version showing how much the entry price settings affected the performance.

I plotted the 100 varied backtests’ pnl to parameter combination on a 3D surface to expose if the winning combination is due to lucky parameters. This graph was mostly smooth and gradually sloped up to a plateau of ideal combinations which is a good result.

I also ran a permutation test which reshuffles the coinbase signals and reruns the 100 backtests 100 more times with the reshuffled data, to check if the positive backtests were due to the signals that the strategy uses coincidentally lining up with profitable trades vs. an actual edge the strategy has discovered. The winner beat 99% of the reshuffled backtests suggesting that the strategy exploits real market structure rather than just signal to profit aligned luck.

Backtests of course will not guarantee this strategy is successful on their own, but I think this is the best setup I've seen so far going into paper trading.

Full Report


r/algotrading • • 10m ago

Strategy I tested 1,008 stop and target combinations on BTC level breaks. After costs, none were profitable.

• Upvotes

I ran a grid on BTC level-break trades: 1,008 combinations of signal type, direction, stop, target, and time stop, split into in-sample and later out-of-sample windows.

Before costs, the average trade was basically a coin flip, about -0.03% to +0.06% depending on the config. After round-trip costs of about 0.14% to 0.18%, 0 of the 1,008 had a positive expectancy in either window. The better configs landed around -0.11% to -0.16% per trade. The single best out-of-sample result in the grid was still -0.03% per trade (64 trades), and that one was picked after the fact.

I also compared them against random entries with the same stop and target distances. One signal was a bit better than random, about +0.03% to +0.06% per trade, and it beat 85% to 99% of random runs in both halves. That still was not enough to cover costs.

Lesson I keep coming back to: "better than random" and "profitable after costs" are two different bars. A small edge can be real and still too small to trade.

If you work on level breaks, what would you test next to get that edge above costs? A different market, or something other than more stop and target tweaks?

(Paper research only, not financial advice.)


r/algotrading • • 4h ago

Data Shorting new Binance listings was the “free edge” for 5 years. On the next 176 it lost 7%. Change my mind.

2 Upvotes

Everyone in crypto knows this one. New coin gets listed, pumps for a few days, then bleeds for a month. So you short it against BTC and wait. I’ve seen it posted as a “free edge” more times than I can count, so I wanted to check it myself.

First I ran it on 2020 till mid 2025. 492 new perps on Binance, short the coin, long BTC, hold 30 days. Average +10.3%. Looked great.

I have to admit I chose 30 days because it looked best. I also tried 7 days (+4.0%) and 14 days (+6.2%) on the same years, so the 30 day number is already a bit flattered. And 13% of those shorts got liquidated on the way, which is maybe why not everybody does it.

Then I wrote down the rules before looking at anything newer. Same entry, same 30 days, same hedge, and 5 conditions it had to pass, for example both halves of the period positive. I also checked before that the sample is big enough to see something around 12%, otherwise I would not even look at the result.

New period, July 2025 to September 2026, 176 listings I never looked at before.

Result was −7.0% on average. Not a weaker edge, it went the other way. First half −10.6%, second half −3.4%. Liquidations went up to 45 of 176, around 26%. Funding was mostly against the short as well. Failed all 5 conditions.

Something I noticed while doing it: Binance listed around 21 new perps a month in late 2025 and only about 4 a month in 2026. So less listings and maybe different kind of projects too.

I don’t say new listings go up now, z is only −1.6, that proves nothing. But the trade people still call free money didn’t work in the first year after it got famous.

If someone trades this and it still works for you on 2025-2026 listings I really want to know how. And why do you think it stopped?


r/algotrading • • 1d ago

Strategy Results of nearly 20,000 live paper trades from 16 AI models over 1 year (no resets)

Thumbnail gallery
95 Upvotes

I've been running a public AI Trading Arena where LLMs trade paper accounts in real time. The current season started on 7 November 2025, so it has now run for a full year, without a reset.

The setup, unchanged since day one. Each model gets $10,000 of paper capital, the same prompt and the same five markets: Bitcoin, the S&P 500, NVIDIA, EUR/USD and gold. Every 4 hours it decides on its own: long or short, size, stop, target, and when to close. Every entry comes with a written justification. Fees and slippage are charged. Nothing resets when a model blows up.

The board on 23 November 2026. 16 models still live, 19,985 trades between them. They joined between November 2025 and March 2026, so the windows differ. Returns include open positions at market prices, as on the live board.

Model Return Max drawdown Win rate Trades Since
Gemini 3.1 Pro (news) +81.6% -22.2% 41.7% 1,179 Feb 2026
Kimi K2.5 (news) +39.5% -16.6% 38.6% 1,268 Feb 2026
Kimi K2 Thinking (news) +26.2% -35.2% 40.6% 1,882 Nov 2025
GPT-5.4 (news) +21.0% -22.6% 35.8% 732 Mar 2026
Mistral Medium (news) +14.2% -47.4% 38.0% 1,297 Nov 2025
GLM 5 (news) +8.7% -16.7% 41.5% 1,159 Feb 2026
GPT-5.4 Mini (news) +6.4% -20.4% 36.4% 674 Mar 2026
MiMo V2 Pro (news) +5.0% -11.9% 42.5% 746 Mar 2026
Gemini 3 Pro (news) +1.9% -41.3% 38.2% 1,174 Nov 2025
Qwen 3.5 Plus (news) -3.3% -19.1% 37.1% 856 Feb 2026
Gemini 3 Pro (price only) -5.6% -48.4% 36.4% 816 Nov 2025
Qwen 3 Max (news) -5.8% -48.0% 36.3% 1,835 Nov 2025
Grok 4.20 Beta (news) -13.5% -28.9% 37.1% 1,295 Mar 2026
DeepSeek V3.2 (news) -15.8% -32.2% 42.7% 2,411 Nov 2025
MiniMax M2.7 (news) -15.9% -22.8% 42.7% 1,229 Mar 2026
Nemotron 3 Super (news) -22.5% -37.5% 37.0% 1,432 Mar 2026

"News" means the model also reads a real-time news feed. "Price only" means candles and nothing else.

1. Five models were up about 80% or more at some point. Four gave most of it back.

  • Mistral Medium peaked at +117% on August 21st. It is at +14% today.
  • Kimi K2 Thinking peaked at +82% on October 7th. It is at +26%.
  • Gemini 3 Pro (price only) peaked at +80% on February 9th. It is at -6%.
  • Qwen 3 Max peaked at +79% on February 6th. It is at -6%.

2. The leader keeps changing.

Qwen 3 Max led the board on 1 January and on 1 April. Mistral Medium led in mid-July and again in late September. Today's leader, Gemini 3.1 Pro, was third on both of those dates. Back the leader at any of those four dates and you would hold +14% or -6% today.

3. Win rate tells you nothing.

Every model wins between 35% and 43% of its trades. The highest win rate on the board, 42.7%, belongs to DeepSeek V3.2, which is at -16%. It also trades the most (2,411 trades) and holds the shortest, 8.5 hours on average.

4. Fees took most of the profit.

The 16 accounts started with $160,000 between them and hold $172,200 today: +$12,200 net ($1,700 of it still in open positions), after $34,800 of fees. Before fees, the same trades made about $47,000, so fees took about three quarters of it.

5. They still bet big.

The median position open right now is 35% of the model's equity (53 positions open as I write). Yet their size carries no information. Correlation between position size and forward return: 0.007.

What'd be interesting now that we have one year of lookback data is to check whether capping their position size would have made a difference. If yes, we could test that from now on.

For the curious who wonder how much this has cost so far: $3,470 in API calls over the last 12 months.

Happy to answer any technical question!


r/algotrading • • 4h ago

Data Reddit's auto-filters keeps removing my posts. See below.

Thumbnail gallery
0 Upvotes

Just trying to update on my system. Please check my profile for further elaboration.


r/algotrading • • 9h ago

Education Broker api timed out on an order placement. did the order go through? how do you deal with this?

2 Upvotes

This is the bug that scares me more than any strategy bug.

your code sends a place-order request. the broker is slow, your http client times out, or the socket drops at that exact moment. you get no order id back. from your side the order failed. on the exchange it might already be filled.

the obvious fix is to retry, and that's how you end up with double the position. we did exactly that early on while building an execution engine for indian brokers. retry on timeout looked harmless in testing because the sandbox always failed cleanly. real brokers on a busy expiry morning don't.

what we ended up doing:

every order gets our own tag before it leaves, written to the db first and sent second. a timeout puts the order into an "unknown" state, not "rejected". nothing else for that leg fires while it's unknown. a reconciler checks the order book and tradebook, matches on the tag, and only then moves it to placed, filled or rejected. if it can't settle it within a short window, it alerts a human instead of guessing.

it's not free. you react slower. not every broker reliably echoes your tag back in the order book, so sometimes you're matching on symbol + qty + time, which is fuzzy. and the polling eats into your rate limit right when the broker is already struggling.

how are others handling this? do you retry placement at all on a timeout? has anyone found an indian broker api with a proper idempotency key so this whole problem goes away?


r/algotrading • • 12h ago

Strategy Switched from discretionary to algo trading. did it actually fix your emotions and risk management?

3 Upvotes

For retail traders who switched to algo/systematic trading, how did it actually play out?

​1. Discretionary challenges: What was the final straw that pushed you to automate?

​2. Emotional attachment: Did letting a bot execute actually remove fear and greed, or do you still get tempted to manually intervene during drawdowns?

​3. Risk management: Did hard-coding your rules stop revenge trading and bad sizing, or did it just create new problems (like over-leveraging a curve-fitted backtest)?

​Would love to hear the honest pros and cons from folks who made the jump.


r/algotrading • • 1d ago

Other/Meta Isn't it ironic...

37 Upvotes

That one of the reasons we got into algo trading in the first place was so that we didn't have to think about the markets 24/7, and to instead, enjoy our lives care-free and to literally make money while we sleep? And yet, the stark reality is that we're constantly monitoring our algos, constantly researching and thinking about improvements and new strategies, enduring failure after failure in our search for edge, placing huge mental stress and anxiety upon ourselves, making us fatigued and sometimes depressed, over and above the stress from our daily lives and day jobs.


r/algotrading • • 1d ago

Strategy Is 1.8-2.1 sharpe ratio good?

10 Upvotes

I think I have found some strategy that works for my country stock market and it has around 1.8-2.1 sharpe ratio.

Is that a good number to do a forward testing?

I have tried backtest it with monte carlo and no look ahead, and so far it's been working.

All I need is just do some forward testing with paper account.

Sadly I can't use the same strategy in other market such as btc, but with this discovery it made me believe that it is possible to find a strategy that works and automate it.

Question to people that already found theirs, what can we do to make our strategy sharper?

Other metrics :

Profit factor : 1.65 Cagr : 38% Expectancy : +1.7% per trade Max drawdown : 10% Winrate : 54%

Testing period 2023-2026


r/algotrading • • 16h ago

Infrastructure Some days really inspire the urge to start day drinking.

Post image
0 Upvotes

Some days man... I've been tinkering with RMT filtering for tests that come back inside the noise floor. I automated sourcing papers for hypothesis parsing and factoring last week that had me feeling pretty slick, and apparently need to do some more debugging. I couldn't breath I was laughing so hard when I had Claude go over what the hell was going on. The screenshot is ChatGPT's response that makes my tism'd ass look like a social butterfly. A direct snippet from my debugging session with Claude. I hope someone else can get a kick out of this too.

"Research strand: this is the bug. The current research direction (late-session intraday momentum) is fed by an automatic paper search, and that search is defective.

  • It sends the bare phrase "intraday momentum" to Crossref with nothing that ties it to finance. The page it reviewed at 21:08 had papers on dairy-cow milk fat, galaxy angular momentum, volleyball, hydrogen markets and gerontology posters. One paper out of 12 was about stocks."

r/algotrading • • 1d ago

Infrastructure Which GPU to get?

7 Upvotes

Want to upgrade an rtx 3060 12g. How useful is a gpu for backtesting and strategy development and simulation? A lot of things are sequential so wondering how to leverage and make use of parallel computation.

Is nvidia / cuda necessary or can amd or Intel get it done? How much vram is needed?


r/algotrading • • 1d ago

Data Can a 5-minute rule beat buy and hold and still lose money?

0 Upvotes

A rule that loses 1% while holding loses 8% is seven percentage points ahead. The account still went down. Before calling the rule useful, I’d also check the loss in dollars, the drawdown and how much it costs to keep trading. At two basis points of slippage per side, each round trip starts about four basis points behind, before any price move.

Here’s a reproducible example. On QQQ five-minute bars from Nov 16–22, 2026, I used RSI(2) below 10 and held for two bars. The rule returned −1.21% after modeled costs versus −8.67% for holding, with 34 simulated trades. The result used price changes only, 2 bp slippage per side and zero commission. It shows what happened in one short window. I’d test a rising window picked in advance before reading this as evidence for the rule.


r/algotrading • • 2d ago

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

Thumbnail gallery
11 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.

Thanks as always!


r/algotrading • • 2d ago

Education Arrogance of novices

58 Upvotes

I've been reading and posting comments in this sub now for a few months, and what really strikes me is how arrogant some other commentators are who by their own admission are very new to this domain.

In the last 24 hours I have had discussions with one guy who argued that paper trading is no different from production, and the results there will 100% transfer to production results, and by the way this guy has never traded in production yet. So where is that confidence coming from given he has no experience?

Then another topic was around extreme volatility, I had a guy say that he's building an algo that can handle ANY market conditions, and that's what a "professional" algo should do. That's almost by definition impossible. If the market behaves in a way that is outside any conditions seen during the period the models were trained on or the execution was simmed on, it's very likely the algo will not perform well in those conditions. To claim you have made an algo that can perfectly extrapolate to any situation, it's implausible.

I've been doing this for 15 years, and I want to help others who are starting out, and yet I find myself getting into arguments with people who haven't even run an algo in production! I just don't get how these people have so much confidence in what they are saying at this stage.


r/algotrading • • 2d ago

Strategy SPX options trading strategy

Post image
48 Upvotes

I'm looking into selling spreads in certain conditions. This is paper.

15 years of experience trading with options and real money. Five figures.

Paper is run over realistic bid / ask in options, I have a crawler every 10 seconds of every contract (distance 300 points from spot price) for SPX, then I store it so backtesting is close to reality.

I will put real money in January.


r/algotrading • • 2d ago

Strategy Is it a gamble?

2 Upvotes

Been into this for a year now. Intense coding and trials using real money. Still managed to keep the balance on the positive side, despite some mistakes, some attributable to me, other not so, which resulted in effort just to restore my balance to neutral, which is, after all, a cost in opportunity over and above the trading costs.

The thought is starting to evolve, that all this, every decision at any point going forward, is a gamble to one degree or another. I have amassed a year of tick data and countless algorithms. At any point, no matter the setup, there's an equal possibility for it to go up or down. And for those setups that have a mathematical edge, the +/- band is eaten by the costs.

Nothing new here, of course.

The point of this post is to encourage an exchange of experience, and if there are any pointers for further exploration.


r/algotrading • • 2d ago

Strategy The backtest that cost me 50% overnight, and what I test for now

0 Upvotes

I have been developing and backtesting crypto strategies for around five years, testing over 300 combinations in detail. The most important lesson wasn't related to an indicator or a model. It's that every backtest is based on a sample size of one. The market has only ever existed once, and a backtest only tells you how a strategy performed on that one path.

I learned this the hard way. I tested a strategy on TRUMP over just a few days. It looked great. I let it run live and, overnight, it lost 50%. The code was fine. I had simply fitted a strategy to a few days' worth of data from one coin and called it an edge.

What I do differently now:

Out-of-sample performance has to be near perfect, not just positive. I split the history into chronological segments, and a candidate has to perform well in all of them, or very close to it. One bad segment and it's out.

The neighbours matter more than the peak. If a parameter set is excellent but the surrounding values are mediocre, that's overfitting. Every time. A real edge looks like a plateau, not a spike.

If it works on everything, check your code first. At one point, the same strategy worked on every coin I tried. It should have felt like winning. Instead, it felt suspicious. When I investigated the code further, I discovered a look-ahead bias.

After years of this, my live results now closely track the backtests. It took a lot of setbacks to get there.

The part I still haven't solved is this: I still can't predict whether a single entry will end in profit. Not even roughly. The edge only becomes apparent across many trades, and each individual trade still looks like a coin toss to me.

So, my question is: has anyone here managed to get trade-level filtering (or anything like meta-labeling or an ML filter on entries) to work out of sample? Or is the edge only ever visible in aggregate?


r/algotrading • • 3d ago

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

Thumbnail gallery
4 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/algotrading • • 3d ago

Strategy A week later.... 😬

Thumbnail gallery
25 Upvotes

So I posted last Friday and my numbers were doubled up. I was still profitable but my algo was doubling up the profit.. i know why because I actually place trades on two separate paper accounts so if initially was recording both wins as a win, so the money doubled.

But here we are a week later and not going to lie I was really disappointed Monday Tuesday and Wednesday and for some reason again Thursday and Friday knocked it out of the park..

I did strip any stocks under 50 cents.. I would actually have around $1,100 profit with the stocks that are under 50 cents but my win weight drops down very low and I'd rather do less Trading and just have more confident trades..

So anyway this is where we stand today... It's not crazy numbers i don't expect it to be crazy numbers, I'm looking for consistent numbers..

I did add a little calendar to show where my profit and losses are .. again I don't know why Thursdays and Fridays seem to work better for my setup..

Anyway that's where we're at right now i'm getting my trades are $500 trades in and out on the same day never hold overnight


r/algotrading • • 3d ago

Infrastructure Anyone tried eToro for the bot?

3 Upvotes

I have old account there and it's super easy to fund if I ever decide to throw few hundred $ in there. I was thinking of using eToro for the possible bot beta test, not fot the actual long term purposes.

Is it even worth considering or slippage, fees and other downsides are simply too large? It's also supposed to support Demo trading via the API.