r/algorithmictrading • u/algodude • Aug 04 '16
r/algorithmictrading • u/algodude • Jun 21 '16
Educational Evaluating Trading Strategies (Paper)
r/algorithmictrading • u/TurboNitro • Jul 24 '12
Has anyone ever created a 'predictability' algorithm?
Complete noob to stock markets and algorithm trading here.
I've been watching videos and reading up lately about technical analysis, and about how certain trends and patterns can be analyzed to reveal underlying pressures on stock prices.
I know that these indicators (e.g. moving averages) cannot be used to simply predict the future of a stock, and that a stock can easily do the exact opposite of what any given 'indicator' suggests that it might do.
However, I've still been puzzling over this question: Is there any way to determine how 'predictable' a particular stock is, based on the indicators used in technical analysis? Is there any algorithm or program that can examine the entire history of a stock and evaluate how closely its behavior has matched up with the predictions of its indicators?
My understanding is that there's a variable known as 'beta' which refers to how closely a stock follows the behavior of the overall stock market. So basically I'm wondering if there is a variable similar to 'beta' that shows how closely a stock tends to follow what it is 'supposed' to do, based on technical analysis.
r/algorithmictrading • u/Solid-Promotion-7978 • Oct 09 '26
Backtest Rebuilt my XAUUSD EA’s volume layer on GC futures. Looking for suggestions.
Hi all,
I’ve been running an EA on XAUUSD M15 for a while. Recently I spent time on one weak spot: MT5’s XAUUSD volume is just the broker’s tick count, not real trades. So anything built on it (VWAP, volume profile, delta) is an approximation.
I moved that layer to CME gold futures (GC), where the volume is real. The EA reads the structure on GC (VWAP and bands, volume profile, IB, delta) and still trades on XAUUSD. The levels are converted with a futures-spot gap, measured as the median over the last 30 min. It skips a trade if the gap moved more than $1 in that window or if a contract roll happened in the last hour.
Testing: IS/OS over about 15 years, multiple regime checks, plus forward and live. The latest 5y 10m window (Jan 2021 – Oct 2026, every tick on real ticks)
Risk: 1% a trade.
It’s a backtest, so I know spread and slippage around the open are probably kinder here than live.
Where I’d like your input:
How do you handle the futures-spot gap? Is an empirical median fine, or is there a better fair-value or carry approach?
How do you deal with contract rolls: skip a window or back-adjust?
Is tick-level delta from GC good enough for a CFD, or is deeper order book data worth paying for?
What haircut do you apply between tester and live fills on gold around the open?
Happy to share more on any part. Thanks for reading, and any criticism is welcome.
r/algorithmictrading • u/One-Guide4766 • Sep 25 '26
Novice Question for experienced algo traders and trading system builders: what would you teach a beginner building an AI-assisted trading system?
I’m a beginner building "BLOCKBRAIN", a crypto trading research project. ChatGPT has been my mentor throughout: helping me learn the concepts, write code and question my assumptions. My long-term goal is a system that can generate signals, evaluate them and eventually execute trades autonomously.
I’d love advice from people who have actually built and operated systems like this. I’m interested in what would help now, while I’m developing and testing, and what I should design for before adding execution.
A few questions:
- Research and signals: What makes a signal generator useful in practice? How do you separate a real edge from overfitting, data leakage or a lucky backtest?
- Backtesting: Which data sources and tools do you trust? How do you account for intrabar fills, fees, spread, slippage, funding and exchange differences? How much accuracy is enough before paper trading?
- Automation: Which APIs, libraries or integrations removed the most manual work? What did you build yourself that you wish you had reused?
- Execution: How would you structure the path from a signal to an order? What safeguards would you consider essential for sizing, duplicate orders, failed orders, disconnections and emergency stops?
- Operations: What should we log and monitor from day one? How do you detect when a strategy or its data has changed enough that it should stop trading?
- AI: Where has AI genuinely helped your development process, and where would you never rely on it without independent checks?
- Priorities: If you were starting over, what would you build first, what would you postpone, and what was your biggest waste of time or money?
Specific tools, examples, failure stories and resources are especially welcome. I’m trying to build something dependable step by step, and I’d value a reality check from people further along.
r/algorithmictrading • u/Early-Fix-3476 • Sep 23 '26
Question I understand to use a personal algo trading bot one must have a static IP address. Is this something that api provider gives? I’ve been using a Schwab developer account and it points to fixed ip address. Is this considered a static IP address or meet that requirement, or is something more required?
r/algorithmictrading • u/eribertito • Sep 01 '26
Backtest Finally finished the research phase for my Mean Reversion strategies (good results)
I've been working on this for a while and I finally reached a point where I'm comfortable freezing two of the setups.
The idea wasn't just to find something that looked good in a backtest. I wanted to keep trying to break the strategies and see if the results survived different tests.
For the Mean Reversion research I tested things like
independent OOS
22 time windows
leave-one-window-out
parameter perturbations around the chosen setup
MAE/MFE and failure analysis
Monte Carlo / bootstrap
full-history results
After all of that, two setups made it through:
MRS2 - SHORT
HMM 2
Volatility percentile: 80–100
Z-score >= 2.0
TP: 5R
SL: 2R
Horizon: 5 bars
2,255 observations
47.7% WR
+0.679R expectancy
2.32 PF
MRL1 - LONG
HMM 1
Volatility percentile: 20–40
Z-score <= -2.5
TP: 5R
SL: 2R
Horizon: 20 bars
840 observations
48.3% WR
+0.693R expectancy
2.34 PF
One thing I found pretty interesting was that the win rate is below 50% for both, but the payoff structure makes the expectancy strongly positive. So I've stopped looking at WR as the main metric and started thinking much more in terms of expectancy, robustness and distribution of outcomes.
The OOS results were also pretty encouraging. MRL1 had positive results in 21/21 of the evaluated windows, and both setups stayed positive when I perturbed TP/SL/horizon around the frozen parameters.
I'm not saying this proves the strategies will work live. It obviously doesn't.
But at this point I don't want to keep optimizing them until I find numbers that look even better. That's exactly how I think you can end up fitting noise.
So these two are now frozen
The next part is actually something I'm looking forward to more: taking the research code and turning these into proper modular strategy components that can eventually plug into the rest of my trading infrastructure.
Basically going from
research to validated strategy to actual system
Still a long way to go, but this feels like a pretty big milestone for the project.
Would be interested to hear how other people here decide when a strategy has had enough robustness testing and it's time to stop researching and start engineering.
r/algorithmictrading • u/Silver_Spend_6887 • Jul 25 '26
Question Does anyone else fear that their algos will stop working?
Switching to automation has taken away a lot of the stress of manual trading. But I still wake up everyday with anxiety wondering if today is the day my algo will start to fail. Anyone else?
r/algorithmictrading • u/[deleted] • Jul 16 '26
Novice Good book recommendations for beginners?
I've made a few intraday strategies with ninjascript (ninjatrader) from my ideas and they lose money well. I don't have any other ideas and maybe books would provide strategy ideas to test, theories, or even just a direction to learn for a beginner?
r/algorithmictrading • u/flyvine • Jul 13 '26
Tools Best simple dashboard setup to run Python trading code?
Hey all,
Trying to figure out the best way to handle the UI and execution side of a trading strategy I'm working on, and could use some pointers.
I'm not really a technical person, so I lean on Claude and Gemini to write the actual Python strategy logic. Because of that, I need the backend to be as modular as possible. Ideally I want something where I can just copy whatever Python the AI spits out, drop it into one specific file, and run it without the whole dashboard/system falling apart.
On the UI side I'm not looking for anything fancy. Just a basic web dashboard with a start/stop button, live positions, a daily P&L tracker, and execution logs.
I want to forward test everything before risking real money, and keep monthly infra costs as close to zero as I can. Given all that, any boilerplate or setups you'd recommend?
Thanks in advance for the help!!!
r/algorithmictrading • u/Longjumping_Dot1117 • Jun 29 '26
Novice Just started with a algo trading idea.
I just have the strategy created. And I'm serious about building it. Im a java developer. Not very proficient, but I can get the job done.
What are the common pitfalls i will face, and what the basics I should understand, while making the system.
It's a simple swing trade management system. So I won't need a high level of optimizations. If the system is good. I might incorporate more strategy.
Right know I'm just making the llm create the documents on each segments.
Signal generation, entry placement, trade management and book keeping.
What issues could I face when I code the system?
r/algorithmictrading • u/PanicOk3484 • Jun 05 '26
Question Building a Multi-Strategy Portfolio Backtester (Looking for Feedback on Architecture Ideas)
Hi everyone, I’m currently working on a personal project to move from single-strategy backtesting to a full multi-strategy portfolio simulation system for crypto trading, and I’d like to get feedback from people who have experience with real-world algo systems. Right now I already have individual strategy backtesters (trend, mean reversion, swing-style systems), and I’m trying to build the next layer: What I’m trying to build A portfolio-level engine that can: Run multiple strategies at the same time Allocate capital dynamically between them Manage portfolio-level risk (not just per-strategy risk) Detect market regimes and adapt exposure Handle correlation between strategies Include emergency controls (drawdown stop / volatility shock shutdown) Current ideas I’m exploring I’m experimenting with: Risk parity / volatility-based allocation Correlation-aware position sizing Regime detection (possibly Markov / HMM models) Z-score based strategy health monitoring Portfolio-level drawdown limits and “kill switch” logic Main question For people who have built or studied real trading systems: What does a good portfolio manager layer actually look like in practice? More specifically: How do you handle strategy correlation decay in live markets? Do you rely more on regime detection or simpler risk rules? What tends to fail first in multi-strategy systems? Any design patterns or architecture decisions you’d recommend? I’m still in the experimentation phase, so I’m not trying to over-optimize anything yet—just trying to design something structurally sound before scaling complexity. Any insights, criticism, or references would be really appreciated.
r/algorithmictrading • u/SebCandela • Jun 02 '26
Question Signal quality does not guarantee profitability
I spent some time reviewing the May performance report of my trading system and a few observations stood out:
More than 60% of my signals travelled at least 1R in the intended direction - this the metric I currently use to measure quality of signals
The gap between realised PnL and maximum available PnL was significant - especially in crypto
The scanner identified many trend reversal opportunities that eventually turned into failed breakouts as the macro downtrend resumed
This is a good reminder that system performance is often constrained by exit logic rather than entry quality. Earlier in May, I adjusted the trade management rules to tighten stop losses after breakouts and bounces, and to take profits more aggressively. The data suggests those changes were directionally correct - despite the crypto weakness, the account still gained 11% during the month. At the same time, I recognised there's still room to improve profit taking and early exits.
One question I’m currently exploring is how adaptive a trading system should be.
Do your systems adjust trade management rules automatically based on market conditions, or do you make configuration changes manually?
r/algorithmictrading • u/Mydbs • May 26 '26
Tools Comparing notes on research workflow, what works for you?
Curious how people's setups have evolved with everything that's come out the last couple years. I'm doing systematic strategy research on my own and trying to compare notes before I commit too deeply to one stack. What does your day-to-day actually look like, Jupyter only, or is there a research platform you swear by? What's your backtesting setup (vectorbt, zipline, custom, paid)? When you're iterating on a strategy and running tons of variants, how do you keep track of what worked and compare results, just notebooks and spreadsheets, or something better? And on the visualization side, when do you find yourself wanting an actual UI vs just matplotlib in the notebook?
For context on my setup: JupyterLab with a custom backtest layer, Polars + parquet for data, W&B for some of the ML work, and a messy folder of pickled results I keep meaning to replace with something proper. Visualization is 90% matplotlib. The part I'm least happy with is comparing across runs (currently a hand-updated Google Sheet), which is obviously not great. Curious if anyone has cracked that part properly.
r/algorithmictrading • u/bluepiplabs • Apr 05 '26
Jobs Need a FIX Protocol Engineer
We have built a forex trading platform to trade CFDs hence we need a FIX developer who can connect our platform to liquidity providers, process order flow through FIX, and manage real-time market data distribution. Our backend is in Node.js, and communication between services is handled through a message queue.
Edit: To rephrase, I need someone to connect my trading application to liquidity providers, they would give me a FIX API for the same, but application/platform isn't FIX complaint. To resolve this, I understood that it needs to have a FIX engine like Onix/QuickFIX. To do that, I need someone. To have my application to connect to a FIX engine.
r/algorithmictrading • u/LushTD • Mar 11 '26
Tools What is the absolute standout best platform to accurately backtest a completely autonomous strategy at the moment?
Curious to hear everyones thoughts on the absolute best and most accurate backtesting software at the moment. I am talking to the tick with order flow and everything. Is it still just homemade takes the cake?
r/algorithmictrading • u/RPO-Shavo • Mar 05 '26
Question Starting capital requirements - thoughts?
Hi folks, newbie here just getting started in researching this field.
I'm reading through Ernest Chan's "Quantitative Trading" - great book so far. I noticed that he mentions that he doesn't recommend quantitative trading for accounts with less than $50,000 capital. I haven't seen yet if he explains why that figure is so high.
Do y'all agree with this recommendation? For those of you who trade on these strategies, did you have that much initial capital to work with? That seems like a very high amount and I'm not sure how feasible it would be for me to accumulate it
r/algorithmictrading • u/erics45690 • Feb 11 '26
Question Real-time monitoring?
Hi, I’m just starting to learn about algo trading and am curious: what are your preferred tools/software for real-time monitoring of algos (I.e. dashboard style for various metrics) that are live?
I’m familiar with Grafana, but that seems likely overkill when getting started. Thanks
r/algorithmictrading • u/username_isnt_used • Feb 08 '26
Tools API/automation friendly stock scanner?
I have a lot of my stock trading process automated, except for my weekly stock selection.
I usually go to Fidelity, and they have a great stock scanner UI—filtering by marketing cap, volume, stock price, etc.
Are there any stock scanners out there that would let me automate this? I tried doing this with a headless Chrome against Fidelity but they have pretty good bot detection that made it inconsistent.
r/algorithmictrading • u/Ok-Hovercraft-3076 • Feb 08 '26
Quotes Looking for historical EUREX full depth (Level 2+trades) Bund,Bobl,Shatz data, 2000–2010, purely for academic purposes
Hi All,
I am studying data science and for my project work I need historical EUREX FGLB,FGBM,FGBS full depth and trades. Just for research to test a hipotesis regarding order book that existed back in those days. Unfortunately our budget is low, but if you have this data avalilabe, please text me.
(I will send the data back to you within a few days, I promise. :-D )
Thanks in advance,
a data science student who dug way too deep into the order book
r/algorithmictrading • u/Pretend_Anywhere_634 • Jan 07 '26
Question Can Anyone Help me out with this. (Not a coder and Ai understands the concept but the code doesn't work).
Trading bot that holds stop market sell/buy close to the 1 minute candle but doesn't let it tick out unless there is a rapid or large change in volume to the upside or downside. This would be done by a 1-2 or 1-5 second delay in the market sell/buy stop. So a large movement of a candle can be quickly captured and then sold possibly even a second or two after entering the trade. Ill give and example. This is done sometimes when people are trading on news and know there is going to be a huge move to the upside or downside. I want a bot that can do this all the time and always follows the chart and each new candle. I want to enter the trade then instantly sell for a profit. Because the market buy stop would be activated and due to the high volume it's instant profit.
r/algorithmictrading • u/Haunting-Trade9283 • Jan 05 '26
Strategy Signal testing vs backtest/robustness check
Hi all!
I am relatively new to algorithmic investing and would like some conceptual guidance when it comes to strategy development/testing.
Let’s say I have a thesis that a continuous signal (calculated over some lookback window) that ranges from 0 to 1 correlates to asset A outperforming asset B on some timescale. I then try to test the statistical significance of this signal and if it has any predictive power. I run a few tests like Pearsons correlation test and a logistical regression test but neither test is showing the signal has strong power to predict asset A outperforming asset B.
I still decided to run a backtest where I dynamically allocate funds between A and B based on the signal and the backtest looks promising (sharpe of 1, CAGR of 35%). The actual strategy also stands up to robustness testing: I run Monte Carlo sims randomly perturbing the signal by some amount and all resulting portfolios perform well. I run tests to shift my lookback window continuously and the resulting return surface looks smooth (no isolated spikes where my parameters where set to), I also randomized the strategy start date in sims and the return surface there is smooth.
I guess my question is how much importance should I be attributing to signal testing vs backtesting/robustness checks. If my signal fails some tests does it mean that any strategy trading off of it is dead? Or is inconclusive signal testing paired with strong strategy backtests and robustness still promising? Maybe the relationship between my signal and returns more complex than my tests are checking? Sorry for the brick, just curious on how others think about these things.
Thanks!
r/algorithmictrading • u/blue_it_was • Dec 20 '25
Strategy does this chart suggest a real edge or just small-sample noise?
Hey guys:
Hope you having a great time as we approach Christmas.
I have trained a number of weak classifiers that can predict a model using triple barrier method. I have been struggling with 'merging' the output of these models. Using just average of all probabilities is not mathematically sound (like I did on attempt called proba). So I attempted to find different approaches based on backtested PnL and drawdown which help calibrate the choice of model, using logs to combine these signals (called cave approach).
I ran a backtest comparing three ensemble signal methods (proba, confidence/CSC, and CAVE) across a small set of US tickers using the same date range and cost assumptions. The chart shows Sharpe, win rate, and total return per ticker/method (top_k=10 models).
I’d love feedback on:
Which metric(s) you’d trust most here (Sharpe vs win rate vs return)?
Any obvious red flags in how this is presented or interpreted (e.g., small sample / trade count issues)?
Suggestions for a better comparison setup (walk-forward, min trades filter, volatility-scaled TP/SL, etc.)?
Any suggestions for future work? Libraries to look at?
Thanks in advance,,
happy to share more details if helpful.
r/algorithmictrading • u/Swimming-Sector4621 • Dec 16 '25
Novice Looking for some honest feedback on my algo (still learning)
Hey everyone,
I’m still pretty early in my algotrading journey and wanted to share what I’m working on to get some outside perspective.
I built a simple algo mainly to help me pass prop firm challenges faster, so I can later trade live accounts more carefully and with less pressure.
The idea is straightforward:
• I use VWAP + EMA 200 on the 5min to define the trend
• Entries on the 1min, taking pullbacks to the EMA 50
• ATR-based stop-loss
• I only trade London and NY sessionsI know the 1min can be very choppy, but I accepted that trade-off because the bot is meant to generate more opportunities under challenge constraints. Discretionary-wise, I trade SMC, but that style is just too slow when you’re racing a clock.
I’m not claiming this is optimal — just trying to improve it, reduce unnecessary noise, and avoid obvious mistakes, especially in a prop firm context.
If you’ve been down a similar path or have insights on refining something like this, I’d really appreciate hearing your thoughts.
Thanks for taking the time 🙏🏻🙏🏻