r/algotrading • • 16m ago

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

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

Data Algo trading result so far!

Thumbnail
gallery
73 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 • • 7h ago

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

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

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

10 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 • • 2h ago

Other/Meta any experiences with infoway ?

1 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.


r/algotrading • • 8m 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 • • 5h 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 • • 17h ago

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

9 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 • • 14h ago

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

2 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 • • 12h 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 My conclusion after a lot of testing: free public market data has no edge left for retail. Prove me wrong.

107 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 • • 23h 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 • • 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 ?

97 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 • • 2d 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


r/algotrading • • 3d ago

Business does high volatility mean more directional movement,or just wider price swings?

15 Upvotes

I'm working on data system and have been geting into market research. I'm tring to turn a trading idea into a question that i can actually test:

WEHN BTC volatility is high, do we see more sustained directionall movement, or most like larger back-and-forth swings?

“MORE volatility means more opportunity” sounds plausible, but it seems too loose to test as stated. A larger high-low range could just mean more noise and larger drawdowns.

the narrower question I’m considering is whether fixed high volatility windows have more directional movement relative to their total price movement. I’d compare that with lower volatility windows, then look at whether the result holds across longer, separate time periods. i would keep that descriptive at first; it would not show that a trading strategy is profitable.

I’m aware of work on volatility-managed portfolios, such as Moreira and Muir’s “Volatility-Managed Portfolios”. the gap I’m trying to pin down is more basic: whether the everyday claim that “high volatility creates more swing opportunities” can be given a useful, measurable definition before testing a strategy.

does this framing make sense as a first research question? In particular:

Is “directional movement relative to total movement” a useful way to separate trends from choppiness?
what would make a comparison across volatility regimes misleading?
at what point would trade data stop being enough and order-book data become necessary?

I’m not looking for a ready-made strategy. I’m trying to make the question and test precise enough that a later result would mean something.


r/algotrading • • 3d ago

Other/Meta anyone run Nirvana, GemAlgo or Kronos Trading live for a full year?

5 Upvotes

I code my own stuff so I'm not the target customer. A coworker wants to put 60k into one of these and asked me to check them out. All three seem to trade in your own broker account, so custody isn't my worry. What I can't tell is how live results compare to their backtests. How did it go for 12+ months? Any issues? Thanks in adv!


r/algotrading • • 2d ago

Strategy I tested 100 versions of my Kalshi Bitcoin pullback strategy

0 Upvotes

Bitcoin pulls back inside a stronger trend and then starts to recover. Is that an entry signal on Kalshi's 15-minute bitcoin markets?

You folks seemed to really engage with my last strategy analysis so I'm sharing another one:

My idea was to use RSI to spot short-term momentum recovering within a stronger five-minute trend. If the strategy sees a one-minute RSI crossing back above 50 with a five-minute RSI at least at 60, it buys 5 YES contracts. It also does the same thing, inverted, on the NO side. I only entered with only 3-10 minutes left, and I only traded between 30-70c, and when the spread was at most 3c.

The initial 30-day backtest reported +$17.67, so I went through a group of other combinations: 88/100 finished positive, but the average P&L was only +$9.26. The best combination used a 40-cent floor and a 60-cent ceiling, but its four nearest neighbors averaged 25% less PnL.

I scrambled the feed timing and reran each backtest; only 6/100 matched or beat the original results. The permutation p-value was 0.0693, so it's not exactly validated but it does have some promise.

I think this strategy is limited by the entry size - maybe if I scaled up from 5 contracts I'd see better results. But at the same time I don't want to walk the book 🙃 so not sure yet. I'll start paper trading it and see if it goes anywhere.

Full Report

Historical simulation only. Backtests can be wrong or incomplete. Not investment advice.


r/algotrading • • 3d ago

Data Cheapest survivorship-free US equity data with historical market caps (1998+) for personal backtesting?

11 Upvotes

I’m backtesting a monthly-rebalanced, long-only strategy on roughly the top 2,500 US stocks by market cap. My current data (2016+) only covers stocks that are still listed, so the backtest is survivorship-biased and ranks companies by size using today’s share counts.

What I need for a one-off rebuild:

Daily adjusted prices, including delisted stocks, ideally from ~1998 Point-in-time market cap (or shares outstanding) to rank the universe at each date Delisting reasons (acquired vs bankrupt) to model exit returns Permanent IDs that survive ticker changes and reuse

What I’ve looked at:

Sharadar (bundle, $69/mo full history): has everything, but the personal licence requires deleting the data after you cancel EODHD: delisted coverage, but market-cap history seems weekly, and delisted fundamentals may need the ~$100 tier FMP: possibly cheaper, but I couldn’t confirm delisted coverage before ~2015 Tiingo: delisted price coverage reportedly starts around 2015, and fundamentals are an add-on Databento: equities history only from 2018 Norgate: well regarded, but Windows-only and no market-cap API

Questions:

Is there anything cheaper than Sharadar that’s genuinely survivorship-free back to 2000, with daily market caps? Any vendors with a perpetual licence for personal use (buy once, keep the history)? For those who’ve used FMP or EODHD for this: how complete is their 2000–2012 delisted coverage? Any free or academic routes worth knowing (beyond CRSP through a university)?

Thanks!


r/algotrading • • 3d ago

Infrastructure Trading Command Suite Entries Today

3 Upvotes

These are some of todays entries by Trading Command Suite (open-source project on GitHub) earlier today and you can see how many different bots were involved.

The app still has a long way to go for stable profit but this is a good sign that it's capable of making many good entries. It's designed to integrate with MetaTrader5 and that is the screenshot.