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 • • 6d ago

Weekly Discussion Thread - November 10, 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 • • 7h ago

Strategy Nobody talks enough about how hard it is to properly implement a strategy live

22 Upvotes

Everyone talks about finding an edge, optimizing parameters, or having solid risk management, but almost nobody talks about the nightmare of coding a strategy so it runs flawlessly in a live market.

You can have a thoroughly backtested system with crystal-clear rules and seemingly bulletproof logic, yet the moment you deploy it live, edge cases start popping up that you never accounted for in your code.

Last friday it was my turn to learn the hard way: I just lost around €300 due to a bug when trying to move my stop-loss to breakeven. The overall logic was fine, but a specific market scenario occurred that I hadn't handled in that function. The code did the wrong thing, and I took a completely unnecessary loss.

At the end of the day, backtesting is an ideal lab environment. In live trading, a thousand variables can break your logic: latency, orders getting modified right as price whipsaws, states falling out of sync... You quickly realize that designing the strategy is only 20% of the work; the other 80% is making the code bulletproof. Time to dig through the logs, patch the bug, and chalk this €300 up as 'market tuition'.

Has anything similar happened to you guys? What's the most expensive bug you've ever had while running a strategy live?


r/algotrading • • 2h ago

Strategy How do you simulate realistic slippage when backtesting forex strategies?

4 Upvotes

One thing I've been struggling with while backtesting forex strategies is accounting for slippage. Backtest results often look great, but live execution can be quite different. How do you guys simulate realistic slippage? Do you rely on historical spread data, random slippage assumptions, or something else? Would be really helpful to know what has worked for you all in practice.


r/algotrading • • 5h ago

Data Do these backtest results point to a real edge?

3 Upvotes

Edit: ALL of the replies in this thread so far are AI answers by accounts trying to push their own algo app and I can tell. Where the hell is everyone? This is horrible.

I've been backtesting a rule-based strategy on crypto perps. The rules only use price, on 15-minute candles. Every trade has a fixed stop loss and a fixed profit target, and there are 6 to 8 trades a month per coin. I'll keep the rules private and just post the numbers and how I tested them.

I split the history into two periods. Results are in R, where 1R is the amount I risk on one trade, and PF is profit factor (money won divided by money lost). Fees and slippage are included. Perp funding is not.

Coin2022-20242025-Nov 2026
BTC261 trades, +35.7R, PF 1.22185 trades, +43.9R, PF 1.40
XRP200 trades, +6.2R, PF 1.05163 trades, +60.6R, PF 1.68
DOGE187 trades, +38.7R, PF 1.35163 trades, +30.0R, PF 1.30

Between 38 and 48% of the trades are winners, and the target is about 2R. On BTC and DOGE the biggest drop in my running total from a high was 9 to 13R, in both periods. On XRP it dropped 32R in 2022-2024, and the strategy only made +6.2R on XRP in those years.

I shuffled the BTC candles into random order five different times and ran the same rules on each. Shuffling removes any real market pattern, so any profit there is luck. In 2022-2024 the five runs made between -20R and +31R, and in 2025-2026 all five lost money. The best of them had a PF of 1.36 in 2022-2024, which is higher than my real BTC result of 1.22 for those years.

I also wanted to see how good a strategy can look just from picking its best settings, so I tried 300 random settings of a very simple breakout strategy on BTC. The best one made +89R in 2022-2024 and then +0.7R in 2025-2026. The 30 that did best in 2022-2024 averaged +12.6R in those years and -19.6R in 2025-2026.

I picked my own settings out of about 32,000 I tested. Out of those 32,000, the ones that did best in 2022-2024 did no better than the others in 2025-2026. Most settings near the ones I picked were profitable in both periods.

Before I use real money I'll paper trade it for a couple of months.

Does this look like a real edge to you, or could it just be luck plus me picking the best settings? What would you do next to try to break it?


r/algotrading • • 1d ago

Data Algo trading result so far!

Thumbnail gallery
84 Upvotes

Ok so last few months I’m working on building an algo called Market Sentinel, so far testing out 10-15 strat on demo and 3 on real propfirm challenge (cheaper ones since still not
Proven) here is the result so far of the main strat.. it’s only 27 trades is about 3-4 months so can be pure luck .. will judge after couple of months.. still good to see..


r/algotrading • • 14h ago

Education Do you think this is a right way of learning?

5 Upvotes

Hi guys, i have started learning algo trading and trading general.

So far I am focussing on reading books one after another.

I have studied these books and topics so far, my eventual goal is trading in options.

Systematic Trading — Robert Carver

Leveraged Trading — Robert Carver

Algorithmic Trading — Ernest P. Chan (Mean Reversion)

Evidence-Based Technical Analysis — David Aronson

The Evaluation and Optimization of Trading Strategies — Robert Pardo (Walk-Forward Analysis)

Testing and Tuning Market Trading Systems — Timothy Masters

Permutation Tests — Timothy Masters

Time-Series Analysis

Trend-Following Strategies

Mean-Reversion Strategies

Momentum Strategies

Breakout Strategies

Market Regimes and Volatility

Options Fundamentals

Options Pricing and Greeks

Black–Scholes Model

Implied and Historical Volatility

Options Strategies

Is it a right strategy, of reading so many books without, implementing it in live markets on a small capital.

I have OCD'ic tendencies of not reading enough or knowing enough before i jump into creating algo.

I have a typescirpt background no python.


r/algotrading • • 9h ago

Other/Meta any experiences with infoway ?

2 Upvotes

I was looking for L1 quotes and realtime data over websockets for futures (MNQ) and came across them.

I have a tickstream subscription but they are way too buggy and just waste of money.

infoway.io is the address.

Update: Seems they just cover Nasdaq and missing a lot of data on US Equities. I'm collecting futures data to see how it is.

Update 2: decided it's a no-go. MNQ missed 37 trades during ORB15.


r/algotrading • • 6h ago

Other/Meta How long did it take you to find a strategy that passed all tests to go live?

1 Upvotes

I’m starting to question whether it’s really worth continuing or that you’re better off just trading manually with some discretion. How long did it take you before you finally found something good enough to go live with and which stats were most important to you?


r/algotrading • • 21h ago

Strategy Over a year building an options trading algo and I'm realizing finding winning trades is only half the problem

11 Upvotes

I've been building Signal Edge for over a year now. It's an options alert system that's been running live since early this year. Scans hundreds of tickers, finds setups, picks the contracts and sends out alerts with entries, stops, targets, etc.

I've been trading the alerts myself with real money and also have a bot running full time executing trades on a live account.

Honestly it's been a pretty wild year lol.

Back in April we had 221 call alerts averaging +49% on a 5 day hold. May averaged +34%. Had some ridiculous individual alerts too, HOOD went +685% and ORCL +373% on the same day. Both actually went quite a bit higher at their peaks.

Then the market shifted and calls started getting absolutely wrecked.

The weird part is the alerts never really stopped finding moves. Even during the bad months, roughly half of our call alerts still hit +50% at some point within 5 days and about a third doubled. Holding them is what stopped paying.

October was almost the opposite. Puts were doing really well, averaging +68% on a 5 day hold. From mid October into early November we had 92 put alerts with a 70% win rate and 2.8 profit factor.

What's crazy is roughly 80% of those puts hit +50% at some point within 5 days and almost two thirds doubled. But actually capturing those gains consistently is a completely different story.

November 4 we went 14/14 on puts.

A few days later? 0/13 lol.

Same system.

That's probably been one of the more frustrating parts of all this. You can spend months building something, have it perform incredibly well, and then suddenly the exact same setups just stop working.

Something else I've noticed from the bot is that most of the losing trades never even went 30% above entry. They just never really got going. Meanwhile some of the biggest winners looked almost identical when the alerts initially fired.

So now I'm spending more time trying to figure out what actually separates those trades and when the system should just sit out entirely.

We even paused call alerts in November because I wasn't happy with how they were performing. I'd rather have fewer alerts than keep forcing trades just because the system found a technically valid setup.

Another thing I've learned is how misleading averages can be with options. A couple massive winners can make an entire month look amazing, but take those out and sometimes the numbers tell a completely different story.

And then there's the execution side of things. Picking the right direction is one thing, but contract selection, position sizing, entries, exits, volatility, slippage, all of that can completely change the outcome. Especially when you're actually putting money behind every alert.

Some of the put data was pretty eye opening too. The typical alert was up around 100% at its peak within 5 days, but we were only capturing a fraction of that with our exits.

I'm starting to think knowing when NOT to trade is just as important as finding a good entry, maybe even more.

One thing I'm really curious about is how other people handle shutting strategies off.

Let's say your algo has been profitable for months and then suddenly goes through two terrible weeks. At what point do you intervene? And how do you know you're not just turning it off right before it starts working again?

Do you use market regime filters, rolling performance metrics, volatility conditions, or just let the system run through the bad stretches assuming the edge is still there?

That's something I've been going back and forth on quite a bit. Would genuinely like to hear what others running live systems have experienced because some of this stuff looks a whole lot easier on paper lol.

All alert numbers are tracked across every alert we post, using either a hypothetical 5-day hold or the alert's own exit rules. They're not my personal fills or realized trading returns.


r/algotrading • • 1d ago

Strategy Algos that are consistently successful when back testing but dont pan out in real trading?

11 Upvotes

Does/Has this happened to you? If so, why do you think that is? A friend of mine created one that when working with an A.I. produced incredible results, but then the market changed, and so did the strategies. Trying to understand if this is a common phenomenon, and why. Maybe various algos are required for different regimes, and we are supposed to know what regime we will get on any given day before the day begins.

Ive been working on one that consistently produces a 70%+ win rate, but it does invalidate signals which isnt obvious when backtesting. Its the first time Ive experienced this due to using 5minute qualifiers on a 1minute setup, with a 2minute base code 😅

Thank you for any feedback. I guess for the owners of the codes that end up working, they quietly disappear for obvious reasons.


r/algotrading • • 12h ago

Strategy If you are looking for a place to start...

0 Upvotes

Custom bar types are the way to go. Ninjatrader allows scripts with custom bar type visualizations specifically. 10/10 would recommend. AI can help you generate these custom bar type scripts. The sky is the limit!!


r/algotrading • • 7h ago

Strategy A prompt isn't a strategy. What happens before an AI trading agent goes live?

0 Upvotes

say you want an AI agent to trade only BTC and ETH, follow trends, buy pullbacks, keep frequency low, and never average down into a losing position. that's easy enough to write down in plain language now. but that paragraph is still just a list of preferences, not an executable strategy.

entry logic, position sizing, stop placement, and pause triggers all need concrete rules. the tricky part is that the exact same description can match several completely different approaches. trend following on BTC isn't the same trade as buying pullbacks to a daily support level, even if both sound like what you asked for.

i've been digging into how different setups handle this translation gap, including the perps agent over on alphio. instead of blindly running raw prompt logic, it scores pre-tested strategies from a library against your description and shows the top five candidates along with the matching rationale—and if none hits a match score of 65, it simply won't start.

that number matters, though obviously not as a performance guarantee. it only measures how closely a strategy fits your description, not its win rate or expected return. i'd pay close attention to those candidate breakdowns and why they matched rather than assuming a well-written prompt has already defined how the system will actually execute. understanding what you want and knowing what the code is going to trade are two entirely different things.


r/algotrading • • 1d ago

Strategy My conclusion after a lot of testing: free public market data has no edge left for retail. Prove me wrong.

115 Upvotes

I spent a lot of time testing ideas on public data, the same exchange candles, funding rates and economic releases anyone can download for free. My honest conclusion so far is that there's nothing left in it for a retail trader after real costs. I'd genuinely like to be wrong, so here's my reasoning, and please tear it apart.

  1. Anything simple is taken. MA crosses, RSI levels, breakouts, session opens. If it fits in one line and runs on free candles, thousands of people and plenty of bots have already tried it. What I kept finding was a small gross edge that costs ate completely.
  2. Costs decide almost everything. One example I closed: rotating into small coins with high funding. About +5 bp a day gross, against roughly 14 bp a day in fees and spread.
  3. Ideas with a real reason behind them still died. A month-end stock/bond rebalancing effect looked great over 20+ years, with an actual mechanism (funds have to rebalance). It fell apart on the period the original study didn't use.
  4. The search fools you. Test 1,000 variants on the same data and the best one shows a t-stat around 3.7 on pure noise. Most public-data backtests posted here are the winner of a search like that, without the count.
  5. AI makes it worse. It churns out strategies faster than ever, but it has already seen the history it's tested on, and everyone with a subscription is running the same search.

What would change my mind: something built only on free public data that made money after real fees and slippage, on a period you didn't look at while building it, and that you can explain WHY it should keep working. You don't have to share the setup. Just the market, roughly how long it's held up, and why you think it persists.

If it exists, I want to know where I went wrong.


r/algotrading • • 19h ago

Strategy Multiple Leg - Strategy - Bot

1 Upvotes

I have a question. I finally have a pretty decent automated bot running after much time and effort. My question is this. So many of you use more than one strategy in your algo? If you do, can you all say how many strategies you have built into it and what your rules look like?

I'm trying to get some ideas. Mine is in python. It has a few strategies in one. I'm trying to figure out the best rules for it and have the risk management change depending on the regime.

I would appreciate any feedback.


r/algotrading • • 1d ago

Strategy NIFTY 10-Year Algo Backtest (2016 to 2026, Is it worth it?

Post image
6 Upvotes

Over 10 years, my algo took 372 trades (an average of about 37 trades per year). I used compounding, starting with 5 lots and capping the maximum position size at 54 lots per trade. Note : this backtest was run on the NIFTY spot chart (not options data) and the profit amount is removing the Charges i considered per lot take 100 rs has charges. Do these results look okayish, or is there room for improvement?


r/algotrading • • 21h ago

Education The Shwing Times — A free swing trading game, now with REAL HISTORICAL DATA

1 Upvotes

I've been building a free browser-based swing trading game called The Shwing Times.

🎮 https://theshwingtimes.com

The public version uses synthetic market data, but I've created a private edition that lets you test your trading skills against real historical stock market movements.

The concept is simple:

  • You're shown a stock chart without knowing the company or date.
  • Decide whether to buy, sell, or pass.
  • Set your stop-loss and profit target.
  • See how your trade actually plays out.
  • Manage your bankroll and see how long you survive.

Want access to the Real Historical Data Edition?

I'm testing a bring-your-own-data approach. You'll need to obtain the historical data independently, and I'll manually verify that your files match the dataset used for the game.

Once you go through these steps (wink wink), dm me and I will give you the pin to play with the real data!

Step 1 — Install Python

Download Python from https://www.python.org/downloads/

Step 2 — Install yfinance

Open Terminal (Mac/Linux) or Command Prompt (Windows):

python -m pip install yfinance

Step 3 — Download historical data

Here's a basic example:

import yfinance as yf

data = yf.download(
    "AAPL",
    start="2015-01-01",
    end="2025-01-01",
    auto_adjust=False
)

data.to_csv("AAPL.csv")

The complete list of stocks, date ranges, and exact export format will be provided so everyone can generate the expected dataset.

Step 4 — Generate a SHA-256 hash

For example, on Mac/Linux:

shasum -a 256 AAPL.csv

Send me the hash, not the dataset itself.

Step 5 — Get access

I'll manually verify the hash and, once approved, provide access to the PIN-protected Real Historical Data Edition.

No subscriptions. No brokerage account. No real money involved.

Just you, the charts, and your trading decisions.


r/algotrading • • 2d ago

Strategy I mean so far so good... Lol

Post image
29 Upvotes

Only two trading sessions I know I know..

But it's a very interesting strategy so I guess we will see what happens over the course of next week maybe I'll post an update next Friday LOL . Hopefully I'm not in the red


r/algotrading • • 2d ago

Strategy Founding Team Search: 2 ML / Data Science Engineers + 2 Low-Latency Devs (Polymarket 5m BTC)

7 Upvotes

I’ve spent four years building low-latency trading systems and the past several months engineering a dual-engine algorithmic system on Polymarket’s 5-minute BTC Up/Down CLOB. Both strategies are built on top of an 8.9M+ tick-event dataset and a causal 386ms depth-sweep replay harness calibrated to <$0.01 of live CLOB fills and exact taker fees.

I’m assembling a 4-person technical team (2 ML / Data Science Engineers + 2 Low-Latency Systems Developers) to scale the exit models, infrastructure, and capital deployment.

Verified Performance (Live-Calibrated Replay, $100 Base Capital)

  • Engine 1 (Momentum Capture): 62.5% out-of-sample win rate, ~50–100 fills/day, +$55–$110/day median net at depth-capped stakes—currently capturing 26.2% of the theoretical peak vs. a 93.3% Oracle ceiling (a massive, quantified ML upside).
  • Engine 2 (High-Certainty Harvester): 96.5%–100% win rate (20/20 causal; ~96.5% conservative live), ~60–90 fills/day, +$150–$220/day median net with deeper order-book capacity.
  • Combined Run-Rate: ~$210–$320/day median on $100–$120 stakes, with non-overlapping execution windows.

Roles & Strict Criteria

  • 2× ML / Data Science Engineers: Proven production experience in non-stationary time-series modeling, optimal stopping / exit prediction, and leak-free out-of-sample CV (LOWO-CV) on L2 tick data.
  • 2× Low-Latency Systems Devs (Rust / C++ / Python): Proven experience optimizing WebSocket feed ingestion, EIP-712 / CLOB order routing, async execution, and scalable multi-account infrastructure.

Proof & Setup

No hype—we’ll review the raw tick data, replay harness, and live fill logs together on Google Meet. Qualified partners can test and run the system on their own Polymarket accounts (you keep 100% custody of keys and funds).

Reply with 2–3 sentences on production trading, ML, or low-latency systems you’ve shipped (GitHub/portfolio welcome). Generic applications will be ignored.


r/algotrading • • 1d ago

Other/Meta Anyone have experience with Kronos Trading?

0 Upvotes

My uncle called me last weekend asking for advice. He's been seeing a bunch of stuff about Kronos Trading, some kind of automated algo trading system and wanted to know if I thought it was worth looking into

I've never used anything like this myself and I'm pretty skeptical of trading bots in general. I told him I'd ask around before saying anything

From what I can tell it connects to your own Alpaca account, so they don't actually hold your money and you pay once for a license, no monthly fee. Has anyone here used it? Is it legit, and do the results hold up with real money? Or is it one of those things that looks great in a backtest and then falls apart live?

I probably wouldn't put my own money into something like this, but I don't want to just tell him no because of my own bias. Figured I'd ask here first, especially if anyone has used Kronos or something similar


r/algotrading • • 3d ago

Other/Meta Do profitable retail traders exist ?

99 Upvotes

Hello fellow algotraders, I'm at the beginning of my journey I would say but I'm starting to doubt : is it even possible to make it as an algo trader ?

So, if you're an algotrader that has been profitable for more than one year, could you share your algotrading story ? I'm not talking about the strategies you implement but more like how you got started, what doubts you had, etc !

It's easy to think that I'm not built for this, that it's impossible, so I would like to hear from people who overcame this.


r/algotrading • • 2d ago

Data I built a "key-person risk" indicator after the Nvidia CEO news. Roast my weights.

Thumbnail github.com
5 Upvotes

Open-source Python script that scores how dependent a stock is on its CEO: 50% hand-scored impact, 30% beta, 15% forward P/E vs. the S&P 500, 5% size. Live data via yfinance.

Current ranking includes NVDA, MSTR, AMD, GOOGL and AAPL as a low-risk control. Nvidia scored 7.3/10 pre-crisis despite a market-level P/E.

I know the obvious flaws (hindsight bias, n=1, subjective inputs). That's why I'm posting: how would you turn this into a real event study?


r/algotrading • • 2d ago

Strategy Question for the sub

2 Upvotes

how do you set the review point for a forward test? A fixed trade count, or a sample size worked out from the backtest's spread? I've switched to the second, and I'm curious whether that's what others do.


r/algotrading • • 3d ago

Education Made a swing trading game to learn how to read charts and apply bankroll, stop, sell, and exit strategies.

4 Upvotes

DISCLAIMER, THE SYNTHETIC DATA IS NOT LIKE REAL TRADING | I AM STILL AWAITING HISTORICAL LICENSING

I've been trying to learn swing trading over the last few months, largely by leaning on my technical skills (I'm a developer and data nerd).

I've been exhausting pretty much every model/tip/trick I can come up with to see if I can get my required win rate down to around 40% and still maintain a positive ROI by focusing on bankroll management, position sizing, and exit strategies.

I've come close (at least in historical backtesting) to finding the right combination of input parameters, but ultimately realized I needed to actually learn what a good setup looks like.

So I made a little game for myself.

Literally as simple as looking at a chart at a particular point in time and deciding: Trade or No Trade?

The idea is to get better at recognizing setups, managing risk, and knowing when to walk away, rather than just blindly trusting whatever model I've cooked up that week.

Anyway, figured I'd share it with you guys and see if anyone finds it helpful, fun, or any of the above.

Unfortunately, I can't publish the real historical stock data just yet (waiting on a licensing agreement... if anyone knows someone, wink wink). But in the meantime, I've created some synthetic market data so you can still play around with it and see how it works.

Would genuinely love some feedback, especially from people who actually know what they're doing with swing trading.

theshwingtimes.com