r/algorithmictrading • • Jan 03 '26

Novice Girlfriend got me this book. Looks like a long journey, how does one even get started?

Post image
212 Upvotes

Hi all,

Happy New Year! I got Advances in Financial Machine Learning as a Christmas gift. It made me look into Quantitative Finance, and boy, it's certainly a rabbit hole.

I have a background in Computer Science and Mathematics; however, I am completely foreign to Finance. Do you have any tips for me? How long does it take one to create a profitable system? What can I build after reading this book? What other resources should I look at?

It would mean a lot to me if you could answer my questions, and I am looking to connect with people on a similar path to mine.

Best of luck to all of us in 2026,

EDIT: Thank you all for the positive feedback! I have many many trading ideas and stay tuned for the outcome. You guys made me realize I wasn't appreciating GF much, so she is definitely getting something with the first profits from trading...


r/algorithmictrading • • Oct 01 '26

Backtest Zero quant background, built an NQ futures bot with Claude. It passes 4 of my robustness tests and is shaky on 2. Roast my method.

Thumbnail
gallery
170 Upvotes

No quant background. I built an automated NQ futures bot over the last few months with Claude (Anthropic's AI) doing the coding and testing, and I'd like people who've done this to pick the method apart before I put money on it.

**Quick version (details in the images):**
- 9-year walk-forward, 2,437 trades, every trade out-of-sample, fixed 1 micro, costs charged
- Profit factor 1.24 (1.19 with costs doubled), +$25k at 1 micro, worst drawdown $3.5k
- Passes: doubled costs, 10,000-run block bootstrap, a 1,000-shuffle luck test on its long/short calls
- Shaky: deflated Sharpe once all 557 variants I tried are counted, and most of the profit is 2021+
- 13+ other ideas tested and failed, all shown

**Goal:** pass a Topstep 50K ($2k trailing drawdown). The edge isn't the problem; the drawdown is.

**What I'd love opinions on:**

  1. Most profit is 2021 onward. Regime dependence or a model that improved with more data? How would you tell?

  2. With a $2k trailing limit, how would you size this, or is a prop firm the wrong home for it?

  3. What's the first thing you'd check for look-ahead bias?

Also looking for a few people or a community to talk this through with. Feels like I am working on something that nobody understands. Strategy details stay private, but I'll answer anything about the testing. Not selling anything. Backtest, not financial advice.


r/algorithmictrading • • Sep 12 '25

Backtest My bot's last three completed years (options)

Post image
138 Upvotes

This bot has achieved a 7.7 MAR ratio which from what I understand is really the main basis on which a bot is graded. Is 7.7 a good MAR or should I continue to fine tune it? The bot has clearly done well for me and if a 7.7 is already good I'll leave it alone and work on another bot but if there's still much room for improvement I'll continue working on this one. Also the reason this bot had such high returns the first year and then slowed down is because I was allocating 10% of the portfolio per trade and losing $10,000 in one trade got to be too much for me psychologically.


r/algorithmictrading • • Dec 04 '25

Educational Taleb: Trading with a Stop

Post image
120 Upvotes

r/algorithmictrading • • Jun 24 '26

Strategy Claude crushing my AI trading model leaderboard today

Post image
117 Upvotes

I've added an API to accounts, so you can make your own.

1. The live real-money book — momentum + value, frozen and pre-registered. Nothing clever: top-quintile momentum (0.65) / value (0.35), ≤10% per name, −25% drawdown halt, validated against Ken French. It's live on IBKR. The +5.9% is time-weighted — deposits are stripped out so funding can't masquerade as alpha. 16 days is still nothing, but it's real money beating a roughly-flat SPY.

2. LLM analogical sleeves (Claude vs DeepSeek, head-to-head). Forward-paper-only by construction — you cannot honestly backtest an LLM, because it knows the future of any past date (lookahead). So these earn their place purely on forward marks. Claude (+6.4%) is dunking on DeepSeek (+1.6%) so far; ask me again in 3 months.

3. Insider cluster-buy (Cohen, Malloy & Pomorski, Decoding Inside Information**, JF 2012).

4. Meta-labeled filing (Lazy Prices + López de Prado meta-labeling). Primary signal = year-over-year cosine similarity of the 10-K Risk-Factors section (Cohen-Malloy-Nguyen, JF 2020: firms that quietly rewrite their filings underperform). Then an LLM reads each flagged change and keeps the bet only if the change is materially adverse —

5. FW2 factor blend. Market-neutral long/short on a broad universe, built from a pile of low-correlation Chen-Zimmermann factors blended by conviction. The autonomously-discovered headline find; deflated Sharpe ~0.5 in backtest, now accruing forward paper.

Why you shouldn't believe any of the above yet: every number here is ≤16 days old. The max drawdowns are tiny because there hasn't been time to draw down. The whole point of the project is that most published anomalies net ~0 after costs and crowding — so nothing gets real capital until it clears the gate (deflated excess-over-SPY significance, PBO < threshold, 6+ months forward paper, operator sign-off). The graveyard of rejected factors is on the board too, with write-ups of how each failed.

site is in my bio if you want to make your own.


r/algorithmictrading • • Jan 27 '26

Educational Lessons from 7 Years of Algorithmic Trading Research and Development

81 Upvotes

I have been on a journey since mid 2016 to learn how to trade algorithmically which is a data-driven method of using a set of rules to define buy/sell decisions on financial instruments. This is also referred to as quantitative and systems trading. Please note that I do not come from a background of finance, trading, math, or statistics but I do have an insatiable drive to learn and a whole lot of “never give up”. I could write volumes on all my experience and failed attempts at creating trading systems over the past 7 years but will spare you details.

This journey began when I discovered a simplistic online tool that helped users apply rules to financial data to run a backtest and continued with purchasing some relatively pricey but much more powerful software that ran on my local PC to further develop and test trading system ideas. My mission at this time was to nail down a method of identifying individual Technical Analysis trading signals that had 1) predictive power and 2) a very high likelihood of “working” on unseen “Out of Sample” data. I spent about 3 years doing analysis of individual signals where I would analyze one trading signal, its “In Sample” metrics, statistical properties, noise sensitivity, and value on shifted data to classify it as “likely to work” or “not likely to work”. What I found is that no matter how much analysis I did on a given signal, the random nature of the market and regime changes still played havoc on their forward performance. A given signal may be quite “good” but can still experience large drawdown, periods of sideways non-performance, or stop working soon after going live.

Up to this point I continually felt restrained in my ability to develop robust trading systems that would confidently perform well on future “Out of Sample” data. Also up to this point, I had taken a number of systems live and blown up a handful of trading accounts which is inevitable for anyone that persists in this space. Some of the challenges I continually ran into included:

  1. Overcoming data mining bias

  2. Combatting curve fitting

  3. Creating a system that generalizes on new data, is specific in it logic, and adaptable

  4. Creating a system that uses signals that are likely to occur again

  5. Overcoming system fragility i.e. likelihood to “break”

Here is an example of a signal / strategy that broke between IS/OOS:

In September 2021 I made the decision to begin learning python to hopefully supercharge my trading game. After learning basic python I spent about 8 months applying Machine Learning to financial data which was a great learning experience but was largely unsuccessful for me. This is due to the very low signal to noise ratio found in financial data which lends ML models to train on the noise and not on the signal in the data. I then went back to my roots by studying and applying Technical Analysis signals in a more statistical and scientific way than I had ever done in my pre-python days. After learning about ensemble voting systems, I began to experiment with this idea by building this functionality into my python program. The forward testing results got better. I was now combining numerous “good” signals and combining them into a “better” system by leveraging the collective knowledge of multiple signals to improve overall performance and enhance accuracy. There are some very important nuances I discovered when working with ensembles with the most critical being 1) combining numerous bad predictors does not make a good system and 2) combining numerous similar votes from similar systems also does not make a good system. These two key points required a method to filter good signals from bad and enforce diversity in signals used.

While the primary use for ensembles is to quantify reasons to trade when for example 160 out of 200 signals are true, I have found another way to use ensembles is to quantify reasons to NOT trade. A use case for this is to identify say 200 signals that are bad for long conditions and to only trade when 40 or less are true, being a strong minority. This is just as powerful.

To fast forward to the present day, I will outline the current high level workflow of my python prediction program. Please note that all analysis and signals filtering is done on In Sample data only.

  1. Import daily timeframe data for 36 futures markets

  2. Select the traded market and markets to use for signal generation

  3. Calculate approximately 3000 trading signals from each signal market

  4. Calculate the same trading signals with noise altered synthetic data

  5. Calculate metrics and edge for all base signals and noise altered signals

  6. Combine all metrics into one results dataframe

  7. Visualize all metrics on one plot for analysis

  8. Create (3) voting ensembles with the following functionality for example: 3 day horizon, positive signals (reasons to trade), 1 day horizon, positive signals (reasons to trade), 1 day horizon, negative signals (reasons to not trade)

  9. Filter all signals to those that have an In Sample trade count Z-score of +/- a given threshold to only use signals with common occurrence and exclude “rare signals”

  10. For each ensemble set the following: Fitness function, # of signals to monitor, # of signals required for a True condition

  11. Filter the signals used in each ensemble by key performance metrics

  12. Further reduce signals used in each ensemble by a correlation check to remove similar signals

  13. Take the top performing 200 uncorrelated signals into each ensemble

  14. Set the majority / minority voting logic

  15. Combine ensemble logic

  16. Backtest the master ensemble trading system

For a visual regarding noise altered data see the following image. The dark green line represents average trade across a range of signals with the lighter lines representing noise altered data. Area 1 shows a region of signals that degrade when noise is applied to them whereas Area 2 shows a region of signals that improve when noise is added to them.

Here is an explanation of how the ensembles can work together:

  1. ensemble 1 with a 3 day horizon, positive, need >160 true out of 200

  2. ensemble 2 with a 1 day horizon, positive, need >160 true out of 200

  3. ensemble 3 with a 1 day horizon, negative, need <40 true out of 200

What’s happening here is that if the 3 day outlook is favorable by majority, the 1 day outlook is favorable by majority, and the 1 day outlook of negative conditions is favorable by minority, then we take the trade. A key note about the master ensemble is that each ensemble needs to be crafted on its own and must stand alone with prediction power and performance. Then by joining the logic of all three, the final trading system is that much stronger. If you use 3 weak ensembles that need the others to perform, the combined system will be very likely to break, even as a combined ensemble.

The ending result can be an ensemble of ensembles that maximizes trading opportunities and maximizes win rate with confident and smooth equity growth. Benefits of ensemble use include avoiding selection bias, individual signals can “break” and the system keeps producing, the system generalizes well and is adaptable, the system is unlikely to break as a whole.

Here is the equity graph from an example ensemble system on the ES Futures Symbol with 1 day hold time, no stop loss, and no profit target.

In Sample Period: 2004/01/05 to 2017/1/03

Out of Sample Period: 2017/1/04 to 2023/05/22

# Trades: 563

Win Rate: 58%

IS Sharpe: .76

OOS Sharpe: .98

Conclusion

In this article we explored the use of ensembles with statistically sound Technical Analysis signals and applying them for positive and negative conditions. We then discuss combining three ensembles into a master ensemble that quantifies 3 day horizon positive, 1 day horizon positive, and 1 day horizon negative.

I hope this article has been helpful to you! Let me know if you have any questions on the content covered.


r/algorithmictrading • • Dec 19 '25

Question writing my own trading bot from scratch with rust

Thumbnail
gallery
78 Upvotes

hey I start learning trading about year ago and then I heard about quant so I start to write my own trading bot with rust and implementing smart money concepts from scratch so base on them i can implement my systems and use them to take trades; in the picture the drawing with candles in tradingview are the test results that generated from my rust code so I can visually see my tests. I was wondering if what Im doing now can I find a good job in related fields and even if this is worthy or not?


r/algorithmictrading • • Mar 10 '26

Backtest Ready to run blind?

Thumbnail
gallery
60 Upvotes

Been running a few bots on and off for years with manual intervention more along the lines of alerts or entries and I choose exits and stops. On and off projects. ORB MA crosses MACD the usual suspects. Premarket/Previous day lines. Manually updating areas of interest every morning. Never took it to serious. Tried multiple tickers, options, high vol stocks chosen each day. Many different methods experimenting

In November I combined the 6 bots made it into 1 master and been running it with oversight. Meddling in and forcing exits on what I see as bad entry. Or setting an entry for a trade that wouldn't take. Overwriting the rules.

March 1st I am committed to just believing in it and running.

Running strictly MES. 2021 4 contracts 2022 4 contracts 2024 3 contracts 2025 3 contracts 2026 2 contracts

That's based on margin req + buffer. Then for 2026 starting low for POC


r/algorithmictrading • • Dec 02 '25

Strategy The Signal I Use to Detect Hidden Instability in Markets

Post image
60 Upvotes

Most traders think a market is “stable” when price moves smoothly.
In reality, stability is a volatility pattern, not a price pattern.

Here’s a simple way my algos detect when things are actually becoming unstable:

I calculate two volatilities:

  • ATR_short = short-term volatility (fast changes)

  • ATR_long = long-term volatility (baseline behavior)

Then I compare them:

VEI = ATR Short / ATR Long

When VEI ≈ 1.0 → volatility is stable.
When VEI > 1.2 → short-term volatility is 20% higher than normal.

That’s usually the moment where:

  • trends become noisy

  • breakouts fail

  • stops get hit more often

  • and sizing becomes dangerous

So when VEI pushes above 1.2, my algo System automatically reduces position size and Stop Distance even if the signal looks clean.

It’s not weakness it’s survival.Volatility shifts before market direction does.

You don’t need a full algo to apply this:

  • Add ATR_short and ATR_long to your chart ( Use different Time periods )

  • Create the VEI ratio (ATR_short ÷ ATR_long)

  • When VEI > 1.2 → trade smaller or skip entries

  • When VEI < 1.0 → conditions are more stable for trend setups

  • Use VEI as a simple market condition filter before pressing the buy/sell button

One tiny rule like this can reduce a surprising number of bad trades without touching your strategy.

Do you adjust your risk when volatility expands, or trade the same size always?


r/algorithmictrading • • Dec 03 '25 Heartwarming Bravo

Strategy Why Most People Build Indicators but Never Build Systems

Post image
58 Upvotes

Algo is not a signal..it’s a process

After 10+ years of building semi-automated strategies, I’ve noticed the same pattern:

Most traders are obsessed with indicators.
Almost none are obsessed with systems.

Here’s the difference and why it matters.

Indicators tell you what happened

An indicator is just a transformation of price.

ATR = volatility
RSI = speed
MACD = slope
VEI/VCI = volatility regime (mine)

Indicators describe conditions.

But conditions don’t pay you.

A signal tells you something might be happening

“RSI oversold.”
“Breakout.”
“Divergence.”
“Cross.”

Retail treats these as entries.But a signal is only one piece of the puzzle. In isolation, signals are meaningless.

A system tells you what to do next

A real trading system is a complete decision engine:

Signal :When something interesting occurs.

Filter :When it makes sense to take it.(Trend, volatility state, timing, S/D levels, HTF bias,  etc.)

Entry Logic : Exactly how and when to enter.(Market, limit, retracement, confirmation candle.)

Stop Logic :Where to exit when you're wrong.(Structure-based, ATR-based, volatility scaling.)

Exit Logic : Where to exit when you're right.(Fixed RR, trailing, partials, volatility expansion, etc.)

Position Sizing :How much risk to take based on conditions.(Not every trade deserves 1%.)

Regime Logic : When the system should be active or turned off.(Volatility, news, time-of-day.)

Performance Feedback

How the system behaves over hundreds of samples.

This is an ALGO.Everything else is just decoration.

The trap: people think “indicator = strategy”

It’s not. No one gets funded or profitable by saying:

  • “I used MACD.”

  • “I used RSI.”

  • “I used VWAP.”

  • “I used order blocks.”

  • “I used VEI.”

That’s like trying to build a car by buying a steering wheel.

A strategy is not the tool.
It’s the assembly of tools into a controlled process.

My rule: an Algo is not a signal...it’s a process

When I build an algorithm, I’m not trying to find the magical entry.

I'm building a pipeline:

  1. Detect environment (volatility regime, trend regime)

  2. Validate quality (probability score, signal context)

  3. Adjust size (risk tiering)

  4. Trigger entry (limit/market/confirmation conditions)

  5. Manage trade (partials, trailing, break-even logic)

  6. Exit (win OR loss defined structurally)

Most traders stop at Step 0:

“Is this indicator green or red?” That’s why they never scale.

Why systems > signals

Signals give you opinions. Systems give you behaviours.

Signals can lie. Systems enforce discipline.

Signals flip around. Systems adapt.

Signals give entries. Systems create profitability.

If you're serious about Algo trading, start here:

Ask yourself:

  • What is my Directional/Environmental Filter?

  • What is my Signal Quality Rule?

  • What is my Volatility Rule?

  • What are my Stop and Exit rules?

  • What are my Risk Tiers?

  • When does my system stay OFF?

  • What does my process look like step-by-step?

If you cannot answer these, you don’t have a system yet. you have a set of indicators.

And the funny part?

The simpler my systems became, the better they performed.


r/algorithmictrading • • Sep 28 '26

Backtest Open sourced my SMC order block bot for MT5

Thumbnail
gallery
55 Upvotes

Spent months on this one. It maps order blocks on the higher timeframe,

waits for a CISD on the lower one, and only takes trades that go with

the trend.

There are ready made presets in the repo, one per market, plus panel

configs. Load a preset in the EA properties, load the matching config

from the panel, and you're set. Don't waste time guessing settings.

Everything else is on the on-chart panel too. Trading is off until you

turn it on, so you can just use it to mark zones if you want.

MIT licensed, code is all readable.
HUGE update : in theme , defult setting , much easier to use

Search in github for : Smc_ZOB_CISD


r/algorithmictrading • • Feb 04 '26

Backtest Getting into AlgoTrading

Thumbnail
gallery
54 Upvotes

Hello everyone, I'm excited to start my algotrading journey. I've been coding up my own person algotrading framework that lets me write strategies once and then easily backtest, optimise and deploy them live.

I have coded up a simple strategy that uses a fast and a slow sma indicators to test the framework. The strategy closes any sell position and buys the market when there is a crossover, vice versa for a crossunder.

I initially bactested it using fast_sma(10) and fast_sma(20), but after optimisation it showed that fast_sma(10) and slow_ma(40) yielded more returns.

From the backtest result (yes, commission is included as spread), this strategy will be a painful one to run live, as it has many losing days and few to little winning days, but a win could easily take care of previous losses.

I'm open to any criticism or advice you have to give me about the framework and algotrading in general.


r/algorithmictrading • • Dec 31 '25

Backtest Forward Tested my first Bot (Opinion on Trading view backtests)

Thumbnail
gallery
54 Upvotes

I finally created two algorithms and automated it. The first bot I Forward tested from 17th dec to 26th dec. The Second bot is yet to be forward tested. Both are variation of the same strategy but they dont take the same trades. Right now im trading Gold futures with a prop firm so I wanted to create algorithms with least drawdown as possible. Tried my best to get these results.

My backtests were done on tradingview. I've seen multiple comments saying trading view backtests are not reliable and to an extend its true due to the lack of tick data, slippage, latency(~200ms if you are using webhooks) but i made the strategy to work with limit orders and because of that the trades were executed exactly the same way it was shown in trading view. I also manually checked the last one month's trades and verified the backtesting. So i guess i can finally rely on the backtesting results.

I was not really sure i could do it, had to automate it because I was doing a lot of emotional trading and hopefully this will work and looking forward to pass the evaluation soon!


r/algorithmictrading • • Oct 14 '25

Backtest Weighted Momentum (21/21) OOS

Post image
48 Upvotes

Here is a 25yr out-sample run of a bi-weekly weighted momentum strategy with a dynamic bond hedge. GA optimized (177M chromosomes) using MC regularization. Trained using the same basket as my other posted strategies.


r/algorithmictrading • • Nov 11 '25

Question Can you recommend a good algo trading YouTube channel?

46 Upvotes

Hi,

I’m looking to refresh my YouTube content and looking for recommendations on algo trading channels.

The channels I’m mostly watching now are The Algorithmic Advantage, Unbiased Trading, Algo Trading with Kevin Davey, Jacob Amaral and Crypto Wizards & ATJ Traders (specifically for their stat arb content).

I’m not interested in YouTube click bait stuff, only solid, professional channels.

Can you recommend any others?


r/algorithmictrading • • Jul 05 '26

Backtest I built a close-based momentum/quality strategy with next-open execution: backtest + paper trading results

Post image
44 Upvotes

Hey everyone,

I’ve been building and testing a systematic equity trading strategy for the last few weeks/months, and I wanted to share the current state of the project.

The idea is simple at a high level:

The strategy ranks a stock universe after the market close using a proprietary quality/momentum score. It then creates a plan for the next session and executes that plan at/near the next market open. I built it this way to avoid reacting to intraday noise and to keep the execution logic closer to what can actually be tested.

The system is not just a backtest script anymore. It is connected to an Alpaca paper account and runs as an operational bot. It sends Telegram updates for open positions, planned buys/sells, stop exits, cooldowns, daily status, and a visual journal/infographic so I can monitor what it is doing without digging through raw logs.

High-level rules:

- close-based signal generation

- next-open execution

- fractional position sizing

- managed position cap

- stop/cooldown risk layer

- daily Telegram reporting

- no discretionary intraday panic decisions

Backtest summary:

The research backtest used IEX data, 7.5 bps slippage, post-sell confirmed cash, a buying-power buffer, and a warmup period.

Main research period:

2022-01-03 to 2026-06-18

Result:

+557.79% total return

52.68% CAGR

18.21% max drawdown

1,226 trades

~9.5 average managed positions

Period breakdown:

2022 bear market: -13.74%

2023 recovery: +87.68%

2024 bull market: +122.98%

2025 choppy market: +14.86%

2026 YTD to June 18: +58.76%

Forward paper test:

2026-06-10 to 2026-07-03

Paper account:

$10,000.00 -> $10,362.78

+$362.78 / +3.63%

This is still early, and the forward sample is obviously small. I’m treating the paper result as a live operational test, not proof that the strategy works long term.

A few transparency notes:

- This is paper trading, not live capital yet.

- I am not sharing the exact score formula or thresholds publicly.

- The current production version has evolved after the backtest, including a broader stock universe, better reporting, scale-up/replacement logic, and cleaner execution checks.

- Some early paper logs had test/duplicate rows that need to be filtered from analysis.

- The system is still under active development.

One recent change: I expanded the stock universe because the system has a 12-position cap, and the previous universe occasionally did not provide enough high-quality candidates to fully utilize the allocation target. The goal was not to force more trades, but to give the model a wider pool while keeping the same risk controls.

I’m mainly looking for feedback on:

- backtest design

- operational risk

- paper-vs-live assumptions

- avoiding overfitting

- whether this reporting style is useful

- what additional validation you would want before considering live deployment


r/algorithmictrading • • Oct 01 '26

Backtest Gold algo backtest 2022–2026: harsh fills + 5,000-run Monte Carlo (losing months included)

Post image
43 Upvotes

1-minute XAUUSD data, including spreads, slippage, and swap; compounded sizing. Harsh-fill result: 7.8%/month, PF 1.71, 34% max DD, ~5.5 trades/month, 40% losing months. Monte Carlo (reshuffled trades, 10% randomly skipped): median $54K from $1K, worst 5% $7K with a 61% drawdown.

The window is gold's strong 2022–26 uptrend; in older, choppier years, this approach breaks even. Looking for feedback on robustness testing.


r/algorithmictrading • • Aug 16 '26

Question Curious how real quant/trading strategies and edge are actually discovered — asking researchers and traders who've done it.

42 Upvotes

Everyone's comments are welcome, but I'm mainly hoping to hear from people who've actually worked in quant research, at a prop shop or trading firm, or independent traders who've built something that's actually been profitable in live markets — not just in a backtest.

If you reply, mentioning what you've worked on or where helps me weigh the answer properly — that's the only reason I'm asking, not to see anyone flex.

I'm not asking anyone to hand over an edge or a strategy. I'm just curious about the actual process — how does an idea go from nothing to something testable?

Questions:

How does a hypothesis actually form in practice? Is it usually "pick a market/asset, ask 'what if X happens, then what follows?', and go look for evidence" — or does it more often start from something else, like a live anomaly you noticed, a macro/economic question, or a flow/structural observation?

How much do academic papers actually drive idea generation versus being used afterward to formalize or validate something you already suspected from watching markets?

Is there any kind of structured workflow for the "ideation" stage — sources you go to, questions you habitually ask — or is it mostly unstructured reading plus intuition plus trial and error?

Is there real methodology that basically never gets discussed outside funds and prop shops, or is the actual edge more about execution, risk management, and data/infrastructure rather than some hidden idea-generation framework?

Once you have a raw idea, what's the first thing you do to sanity-check it before ever touching a backtest?


r/algorithmictrading • • Jan 16 '26

Backtest Should I really excited about this?

Post image
42 Upvotes

I’m new to algorithmic trading and have just built my first strategy. In backtesting, it achieved a CAGR of 183% with a maximum drawdown of 32%. Should I be genuinely excited about these results, or is this kind of performance common in backtests and likely to fall apart in live trading?


r/algorithmictrading • • Mar 26 '26

Backtest Range MR Strategy (22/20)

Post image
41 Upvotes

Here's a 26yr backtest of a simple bi-weekly EOD mean reversion strategy based on range windows. This is an in-sample GA optimization run, but before the overfitting police attack, I'm reasonably comfortable with this one as it only has two heavily quantized parameters and a super low Complexity Ratio (parm combos / samples). Its CAGR/MaxDD = 22/20. Uses the same basket as my other posted strategies.


r/algorithmictrading • • Jan 22 '26

Question What is your reason stopping you to build algo trading?

Post image
39 Upvotes

My problem is that i can make good return when the time is right. I think i need a tool to assist me trading rather than build an algo bot (although i built some, the results can’t compare to this)


r/algorithmictrading • • Dec 14 '24

I let ChatGPT (4o) autonomously trade $1000 for 1 week. Here are the results...

38 Upvotes

Hi everyone!

I just released a video where I turned ChatGPT into a trading bot and gave it $1000 to trade for 7 days. For comparison, I also secretly connected a sentiment analysis bot to seven Twitch streamers, using their chat’s “positive” or “negative” energy to decide whether to buy or sell.

If you're into crypto, AI, or just love seeing creative experiments like this, you might enjoy it! Feel free to check out the video here:

https://www.youtube.com/watch?v=1SHBBXGHuvo

I would love to hear your thoughts or answer any questions about how I set this up!


r/algorithmictrading • • Sep 23 '22

I created an open-source algotrading platform

38 Upvotes

https://github.com/austin-starks/NextTrade

I created a framework for creating automated trading strategies using a UI. Using this framework, users can create trading strategies, combine them to form complex strategies, and optimize them to find the best set of hyperparameters. This project is intended for people who want to create strategies using a UI, but don't want to use an online service like Pluto. It provides a great baseline for a fully functional trading platform. Lastly, the system is extensible enough to create custom strategies by extending the AbstractCondition class.

Walkthrough Example

This example assumes you've read the README, cloned the repo, set the environment variables, and turned the system on. You will also need to get an API key from Tradier. Navigate to localhost:3000 and do the following to create a strategy

Register or login

You first need to create an account. An important thing to note is that all account information is saved locally. You can put the email as [email protected] and the password as 12345678. It doesn't matter, as long as you create the account.

Register for an Account

Creating a simple buy-only strategy

Navigate to My First Portfolio, then click Edit Strategies

Home Page

Dashboard Page

Our strategy will spend 100% of our buying power on SPY when any of its buying conditions are met. This looks like the following picture:

Simple Strategy

Adding buying conditions

Our buying conditions in this example will be simple, but in real-life, can be extended to be a lot more complex. Our strategy will trigger if

  1. We have not bought a stock in 30 days

  2. SPY is 1 standard deviation below its 30 day average price

Click on 0 Buying Conditions -> New Compound Condition -> And Condition. Afterwards, add the two simple conditions like the following:

Adding Buying Conditions

Click create, then voila! Your first trading strategy was created.

Backtest your strategy

Click the backtest button, set a date range, and click Run

Backtest the strategy

Optimize your strategy using a Genetic Algorithm

Click the optimizer, choose the default settings, and click Submit

Optimization Page

Update the portfolio with an optimized portfolio

Expand an Optimization Vector that has the best evaluation metrics. Click on Buy Spy, then click Edit to update your portfolio's hyperparameters

Deploy it for paper-trading

Once we found the best strategy possible, go back to the Portfolio Page, click Settings, click Active, then click Save. Now, your strategy is deployed for paper trading!

Deploy the Portfolio

So what did we just did?

Using this platform, we were able to create a simple trading strategy and optimize its hyperparameters. The optimizer does this by running hundreds of backtests in the backend, and continuously evolving the hyperparameters. We were then able to deploy the strategy for real-time paper trading.

Final thoughts

While this example was overtly simple, we are able to add conditions together, create complex strategies, and optimize all of them together.

This system is over 25,000 lines of open-source code and took me over 2 years to develop. It was developed primarily for myself, but I thought this system can provide some high quality content for this sub because there's really nothing like it. If you like it, please give the repo a star.

There you go! I hope you guys found this example useful. Thank you so much!


r/algorithmictrading • • May 27 '26

Backtest I built an algorithmic trading portfolio in Strategy Quant X. Here's the results after 2 years. AMA

Post image
37 Upvotes

I trade a portfolio of breakout strategies, all generated using Strategy Quant X.

It's been a bumpy ride, but I feel these are realistic long-term results. In total, there are 30-35 individual strategies. I refresh them from time to time, so the exact number varies, but it's usually within that range. Currently trading: NAS100, SP500, DJ30, XAUUSD, BTCUSD, USDJPY, XTIUSD, JP225, GER30. All CFD's. Happy to answer any questions.