r/algorithmictrading • • Aug 21 '26

Backtest Here are 3 different backtest equity-curves for three separate strategies. Do these look healthy? 0.1% risk per trade.

Thumbnail
gallery
9 Upvotes

Sorry for the blurriness as these are screenshots from my phone. In the rolling metrics, the red dotted line is the minimum profitability line.


r/algorithmictrading • • Jul 04 '26

Strategy A strategy that makes +66% on BTC and -60% on SOL is a curve fit, not a strategy.

9 Upvotes

Building my bot and doing a lot of backtesting these days.

I had a breakout system that looked bulletproof on BTC: +66%, profit factor 3.2, 13% max drawdown, profitable in 6 of 9 walk-forward windows. So far, so great.

But, it only fired about 8 trades a year. At that frequency a single-asset walk-forward can't tell a real edge from getting lucky. The sample is just too small, no matter how you slice the windows.

So I froze the exact config, no re-tuning, and ran it on ETH and SOL.

  • BTC: +66%

  • ETH: -11%

  • SOL: -60%, with a 0% win rate.

Also tried different parameters, but no parameter set rescued the other two. It was fit to BTC.

Might still be something "real" that only happens on BTC. But more likely just overfitting.

In contrast, my market-neutral funding carry pays +6.7 / +6.6 / +5.6% on BTC, ETH, SOL. Neatly aligned, what a real structural edge should looks like, boring and the same everywhere.

If your edge is low frequency and only tested on one asset, you don't know it's real yet. You know it fit one history. Might still make you money.

Do you cross-validate across instruments, or is single-asset walk-forward enough for you?


r/algorithmictrading • • Jun 28 '26

Question Option strategy backtesting and multi-leg strategy creation

9 Upvotes

What tool do you use to backtest your option trading strategies?
Streak doesn't let you do this, I believe it did at some point in time, but not anymore.

Have you deployed a very long multi-legged strategy to be able to generate consistent returns from option trading?

I am trying to create a tool for my personal use, but would want to check if there are any good tools out there.


r/algorithmictrading • • May 30 '26

Backtest My current progress on my project (looking for advice)

9 Upvotes

Okay, so I've been making my algorithm for a bit now, and here is my progress so far. The strategy doesn't use any indicators, it only uses a concept I've been developing, in basic language it catches reversals but it is much much deeper than that.

Year 2022 and 2026 arnt full years and only are a couple months. The strategy is far from being fully developed, so I will have many more years of data in the future. I have made sure to not use any look ahead logic or bias, or overfit. I have used 1 tick slippage and 5 dollar fees. My goal was to make it as consistent as possible over different years and different regimes. I have many different versions that place more trades with a little worse performance, versions that have higher overall stats but arnt as consistent. But the one I have showcased is what i found to be a good balance of all. I have still much to do and collect data on, and this is just what i currently have.

One thing i have noticed is that yeah year has its own quite different average trade size, I'm still lookin into it but my theory is each years volume and its overall moves.

In theory, the concept im developing should be able to profit in any regime. And i think in the next few steps I will start expending my data to account for more years.

So my question is, I want to know what i might have missed or didnt think about, as well what i should look out for in the future. And I have out of sample tested it, but not stress test it with monte carlo or other things, since i have not finished the bot. But i of Corse will.


r/algorithmictrading • • Mar 28 '26

Backtest Ensembled Averages

9 Upvotes

A backtest on EU from 2000 - today on the 15 min timeframe.
Open prices only.
4 optimizable parameters.
Just an ensemble of some averages, my brain wants to smooth it it out even more..

First pic is fixed minimal lot size.
Second pic is 1% of the account balance.

IS: 2000 - 2010
OOS: 2010 - today

Hope you like it. Ill be going back to some lower frequency strategies again, calm my nerves. Haven't decided what exactly yet though, VWAPs or pivots came to mind initially. Maybe some pairs with higher variance or drift.


r/algorithmictrading • • Mar 13 '26

Backtest Would you deploy this model to trade live (paper trade) ?

Thumbnail
gallery
9 Upvotes

I’m very new to algorithmic trading and I’ve been using Claude + Cursor to turn my discretionary strategy into a quantitative model. I’m not sure what’s the standard I need to see to 1) trust results are realistic 2) ready to deploy to trade live market data. Any thoughts from experienced algorithmic traders would be very helpful :)) (I’ve attempted to optimize for Apex prop firm guardrails)

Here is also Markov Results:

=========================================================

VANTYX — MARKOV TEST (Win/Loss Sequence)

Trades loaded : 1817

Wins / Losses : 1142 / 675

Win rate : 62.9%

Transition counts (prev -> next):

W -> W : 705 W -> L : 436

L -> W : 436 L -> L : 239

Estimated transition probabilities:

P(win | prev win ) = 0.618

P(loss | prev win ) = 0.382

P(win | prev loss) = 0.646

P(loss | prev loss) = 0.354

Comparison to i.i.d. (no memory):

Overall P(win) = 0.629

P(win|prev win) = 0.618 (same as overall? ≈)

P(win|prev loss) = 0.646 (same as overall? ≈)

Loss run lengths (consecutive losses):

Max consecutive losses : 6

Mean loss run length : 1.55

Geometric (i.i.d.) : 1/(1-p_win) ≈ 2.69

Chi-square test (H0: next outcome independent of previous):

Chi2 = 1.311 dof = 1 p-value = 0.2522

→ Cannot reject H0: consistent with i.i.d. (no strong Markov memory).


r/algorithmictrading • • Mar 10 '26

Backtest algo backtest

Post image
9 Upvotes

These are the results of a backtest of an algo ive been developing, yet im not sure if its good enough due to the high drawdown percentage. What do u guys think?


r/algorithmictrading • • Feb 13 '26

Novice Roadmap for Quant / Algorithmic Trading (Already Have ML Background) + Realistic Cost to Deploy?

9 Upvotes

Hi everyone,

I’m looking for advice on building a structured roadmap into quantitative / algorithmic trading.

I already have a solid foundation in machine learning (classification, regression, feature engineering, model evaluation, pipelines, XGBoost, etc.). I’ve worked with time series data before, but not deeply in financial markets yet.

What I’m trying to figure out:

  1. Roadmap: If you already understand ML, what should the next steps look like to become competent in quant/algo trading? What would you prioritize and in what order?

  2. From research to deployment:

    • What does a realistic pipeline look like from idea → backtest → forward test → live trading?

    • What are common beginner mistakes when moving from ML to live trading?

  3. Costs (realistic numbers): Roughly how much should I expect to spend monthly for: Is it possible to build and deploy something serious under, say, $200/month? Or is that unrealistic?

    • Historical data (futures or equities)

    • Real-time data (Level 1 vs Level 2)

    • Backtesting infrastructure (cloud/local)

    • Brokerage/API access

    • VPS/server for live execution

i have limited budget because im college student. Any structured advice, resource suggestions, or cost breakdowns would be highly appreciated.

Thanks in advance.


r/algorithmictrading • • Feb 02 '26

Backtest Are these results good enough to be considered safe?

Thumbnail
gallery
9 Upvotes

hello,

Can we say these results are good enough to be considered safe, Max drawdown 11%.


r/algorithmictrading • • Jan 18 '26

Educational Separating signals vs strategy in algotrading

9 Upvotes

In trading, something I see all the time (and I’ve read a lot about) is people mixing up the concepts of a “signal” and a “strategy.” On paper they may look separate, but in real research workflows they often collapse into the same thing: you define a trigger and immediately bolt on stop-loss, take-profit, exit rules, and call it a “strategy.” For me, that blending gets in the way of good research.

Over the last few years, and much more intensely in the last few months, I’ve been working on a hierarchical research process for algorithmic trading. In that hierarchy, the first step is the signal.

When I say “signal,” I mean the trigger itself: an objective event that says “go long” or “go short.” It’s the starting point. From that trigger you could test stop-loss and take-profit, but this is where I think a common mistake happens: I don’t begin by evaluating a signal already coupled with SL/TP. I treat them as two separate research processes.

The first process is to understand the signal more deeply as a phenomenon. Before anything else, I do a visual inspection. I want to see whether I’m comfortable with that type of signal, whether it makes sense within my logic, whether I can actually imagine trading it live, and, most importantly, whether it truly captures the behavior I designed it to capture.

To make it concrete, think of a simple signal like a MA crossover. I vary the parameters: for example, a fast MA at 20, 50, or 100 periods, and a slow MA at 200, 500, or 1,000 (or combinations within that range). What I’m trying to understand here is not “what’s the best backtest with SL/TP,” but how the signal behaves as I change its parameter universe.

To evaluate it in a straightforward way, I use a simple idea: the return after N bars. If I’m trading, say, a 2-minute timeframe around the New York open, I might work with something like 100 to 200 bars, but it depends on what I want to capture. If I’m targeting a shorter move, I reduce N. If I want something that can run longer (potentially into the end of the day), I increase it. I also like to test whether the signal “lives better” on shorter horizons or longer horizons. Just this alone already gives me a lot of information about what the signal is really doing.

From there I get to what I call an “anchor.” For me, an anchor is basically a refined slice of the signal’s parameter universe: the region where it shows directional strength that looks interesting and relatively consistent, and where the behavior in terms of “return vs. number of bars” becomes clearer. In other words, I try to identify where, inside that search space, the signal starts to look like something real and repeatable rather than noise.

This is probably the only stage where I use win rate as a more central metric. Not because it’s decisive on its own, but because alongside other indicators it helps me judge whether the directional strength makes sense. In this stage, win rate is simply: for a fixed N, how often does the signal get the direction right (e.g., positive return for longs and negative return for shorts). I don’t treat it as a final truth, but more like a temperature check.

I also track signal frequency over the sample period. Later stages only reduce the number of trades (more filters, no overlap, etc.), so I want to start from a signal that produces enough opportunities.

And only when I’ve identified that region of the parameter universe (anchor) do I move to the second stage. That’s when I start talking about what I call the strategy: within a much smaller, more refined range, I apply a grid of stop-loss and take-profit settings. In other words, I only start discussing SL/TP after I have confidence that the signal itself has a directional structure worth exploring.

So the core idea is: I try to avoid “killing” the signal too early by mixing everything together. First I understand the trigger and its directional strength across parameters and horizons. Then, and only then, I turn it into a strategy with exit rules. For me, that’s the first part of a hierarchical research process in quantitative, algorithmic trading.

If anyone here separates signal and strategy in a similar way (or does something close), I’d be curious to hear how you structure that initial signal-validation stage.

--

Disclaimer: I wrote it in Portuguese, which is my mother tongue and translated it to English with help of ChatGPT.


r/algorithmictrading • • Dec 12 '25

Backtest I need your opinion on my EA

Thumbnail
gallery
9 Upvotes

Beginners here, was interested in Algo trading, I figure Algo trading could rule out my emotion and human error throughout the trade (which I'm struggling with). Tradingview has limited testing range thus I came to mt5, Been messing with the EA lately, and here's the latest backtest result, XAUUSD, m1, 1jan2025 - 9dec225

It's a simple strategy, as a proof of concept,nothing fancy, yes I use ai to code for me,what surprised me is that this is by far the most stable EA that I had with the lowest losses, most stable performance, as you can see there equity and balance increase steadily, sure theres some massive dip on the chart, upon closer look I noticed it was due to some massive losses from a months long losing position which somehow was not 'intercept' by the trailing stop.

Despite the backtest result, I still doubt the EA reliability, which is why I came to ask for y'all opinion.


r/algorithmictrading • • Nov 24 '25

Novice Advice for beginners

9 Upvotes

Hi everyone,
I’m a 3rd-semester computer science student. I have only a bit of experience with trading, but basically zero background in algorithmic trading. Last weekend I joined a hackathon and ended up choosing an algorithmic trading challenge and that pretty much hooked me. Since then I’ve been watching videos, reading whatever I can find, and I’m trying to put together a clear learning path for myself.

I want to understand the field properly and hopefully start building actual trading algorithms at some point. For those of you who’ve been in this space, where should I start?
Which books, tutorials or courses would you recommend?
What programming languages or ML methods are worth learning early on?

I’m open to any advice and I have no connections in the industry so anything you share would help a lot.
Thanks in advance!


r/algorithmictrading • • Nov 15 '25

Brokers Looking for algorithmic brokers

9 Upvotes

Hi, I am currently looking for brokers that support algo trading whether its python or mql5. I am a in the U.S but if there are brokers that are not U.S based but accept U.S clients, feel free to post it in the comments. It can be for all markets - crypto, forex, options, futures, stocks etc.. I just want to know what brokers you guys are using. Thanks


r/algorithmictrading • • Nov 14 '25

Strategy Looking for feedback on a CAC40 mean-reversion idea (OAT–Bund spread + equity shock)

Thumbnail
gallery
9 Upvotes

Hello! First time posting, looking for strategy critique / advice.

Been working on an index mean reversion setup. The idea is that political driven spread shocks often overshoot, and the CAC40 tends to mean-revert once the initial volatility spike fades.

Strategy triggers when two things line up on the same day:

  1. OAT–Bund spread widens ~1.5σ

  2. CAC40 drops ~1.5–2σ relative to recent vol

When both hit at once, I buy and hold up to 30 trading days with a ~5% stop.

Here’s the out-of-sample equity curve (rebased at 2010).
CAGR ~10–12%, Sharpe around ~0.6.

My question:
Is combining a cross asset sovereign spread move with an index vol-adjusted shock a sensible way to reduce false signals? Or is this too many layers / Over fitting and I should simplify the trigger.


r/algorithmictrading • • Oct 22 '25

Backtest Orange Scalper Ea (Read Only Password)

Post image
9 Upvotes

Hola floks

Just finished my scalping gold project called Orange scalper that scalp the gold in 1M time frame ,now I'm testing it in demo account and need you feedback for developing purposes.
_________________(Update) _____________________

How is is work ?

Strategy hint :
The project depends on trailing stop ,highs and lows ,minimum distance between highs and low .

Daily target :
The expert Targeting 10% daily then stop (I know it is a huge daily % ,but calculated very well with lot size).

Lot size calculation :
The calculation of the lot size is risking 10% per trade (I know is it high but ,calculated very well with daily target).

Time frame :
Works in all time frames (from 1M to 1H)
________________________________________________

No huge losses
No indicators
No Grid
No Martingale
No recover trades

feel free to login with (Read Only) and take a look :

Metatrader 5

Server : Exness-MT5Trial15

Login : 259261366

Password : MrOwl123#

For your review and feedback :)
_________________________________________________________________________________________
* The project still in testing phase ,copping the trades in the account is your responsibility.


r/algorithmictrading • • Oct 08 '25

Just gettings started with Algo Trading

9 Upvotes

Hi everyone! i am a sophomore in college studying data science and im interested in algo trading. I am really good at math and coding but I recently discovered this field and im looking for guidance on where to begin with and if i should read more books or videos, talk to people. I have no finance backgriound and i will be taking finance classes. any guidnace is appreciated


r/algorithmictrading • • Oct 02 '25

Give me resources to learn algorithmic trading

9 Upvotes

Assume I don know anything I am trying to learn from scratch how should I start and ending up getting a job at a hft firm.


r/algorithmictrading • • Aug 31 '25

Novice Humble request for help

9 Upvotes

Hello everyone, I am looking to break into algotrading and trying to develop my first system. I have extensive knowledge in finance and acceptable trading experience but 0 coding skills, this is my first dive. I was hoping someone would be willing to give me a quick audit or review, tell me what I'm doing right, what I'm doing wrong, a bit of guidance. Thank you in advance.


r/algorithmictrading • • Jul 05 '25

Took a while but we made a consistent profitable bot

9 Upvotes

Hello before I get started I just want to clear up some generic questions "Why don't you put all your money in it if its profitable / take loans out for it / whatever else" and "why share if its so good just keep it secret" Well I am young with not too much money and no bank will allow loans etc so the method below is my best attempt to compensate for this issue.

Our system operates with brokers that allow for profit shares ie I get a % of the profits only on users that interact with my system. It requires no upfront costs and I have all the backdata on me should anyone want it. I could just paste my discord link here but I am not sure if it's allowed so if anyone wants to find out more please reach out so together we can grow :D

This image is just a taster, we have much more back data as well as a myfx link that has a live account running this system all free to access in my discord. The data here was ran from june 2023 to june 2025 and operated on a 10k starting balance. We ran the test on a permanent starting lot of 0.01 so these results are without compounding which would help scale the profits VERY quickly.


r/algorithmictrading • • Sep 07 '23

Why is creating a trading bot so hard?

9 Upvotes

Hey fellow traders,

Over the past week, I embarked on a fascinating journey to build my very own trading bot. I want to share my experiences, challenges, and seek advice from this knowledgeable community.

First off, let me provide a bit of context. I have zero prior Python experience, and my trading skills are at an intermediate level. My goal was to create a trading bot linked to the Robinhood API. However, my initial attempts to find up-to-date tutorials on YouTube were met with frustration. It seemed like everything out there was outdated.

I then turned to Chat GPT for assistance, but I quickly realized it only had information up to September 2021. With the Robinhood API evolving since then, I had to explore alternative routes.

My solution was to dive into the Robin-Stocks API documentation. Let me tell you, it was quite a challenge. I spent a significant amount of time deciphering and learning from the documentation.

Despite my dedication, I still haven't managed to establish a functioning connection between Python and the Robinhood API. I've attached a screenshot of the current code I've developed in the hope that some of you kind souls might be willing to provide guidance and support.

So, my fellow traders, I'd love to hear your stories and insights. How did you go about learning to build a trading bot? What methods, resources, or communities did you find most helpful in your journey? Any advice, no matter how small, would be greatly appreciated as I continue to pursue my goal of creating a successful trading bot.


r/algorithmictrading • • Jun 09 '23

algo sports trading/betting

9 Upvotes

Has anyone here gotten into the world of algo sports betting and automated betting bots? Been doing some research on developments in the space and seen some intriguing youtube clips as well that make it seem like there is promising opportunity there now. Thoughts? Experiences?


r/algorithmictrading • • May 17 '23

Example of algorithmic trading infrastructure with AWS

9 Upvotes

Here is an example of trading infrastructure you can build easily with AWS.

Of course you can adapt it to whatever market you ar trading on.

https://medium.com/@AlphaGrow/designing-an-advanced-algo-trading-infrastructure-with-aws-from-data-acquisition-to-order-b6279ef18a95

I am curious. What is your stack?


r/algorithmictrading • • May 20 '22

Is BTC following an algorithm?

9 Upvotes

It helps if you see the data too, but if you download (via yahoo finance) BTC's weekly closing price between 2019 and 2021 and did the same for SPY, if you pair together (during the right times) SPY's adjusted closing price and BTC and run a correlation test, you'll see a .90 value happen!

If you take this further and run a regression, you'll see that BTC and SPY have been moving in tandem for the past two years. So much so, that 2019 through Sept/Oct 2021 are nearly stationary when you plot the residuals.

Maybe I am misunderstanding BTC, but shouldn't a crypto currency who's market is the WORLD market represent supply and demand around global markets? Not US markets? In other words, when BTC goes down, SPY goes down. Hence, before the S&P opens up and (for example) if BTC is tanking, SPY will almost always follow suit until BTC changes direction first. How the hell is this possible?

Is this the impact of HFT or some kind of algo around when to buy and sell? Because if so, a TON of people have all lost money from crypto because of this thing despite it's use to forecast how SPY will move for the day.


r/algorithmictrading • • Mar 17 '22

Backtest Only Based on Simple Moving Averages 25, 50, 100, 200 with time frame 15M, 30M, 1H, 4H and Daily on 28 Currency pairs, Majors plus minors. I am only using a Profit Management Algorithm I designed and developed into an EA for MT4. This I have been testing on a demo account from last week Friday.

Post image
9 Upvotes