r/algorithmictrading • • Feb 24 '26

Backtest Backtesting 15 Minute ORB with Machine Learning and Feature Engineering for Prop Firm Challenges

15 Upvotes

Account Parameters & Goals

  • Initial Cash: $50,000

  • Size: Dynamic (Target $200 Risk, Minimum 1 Contract, $2/pt MNQ)

  • Long Parameters: 2.5 Alpha / 1.0 Beta

  • Short Parameters: 2.5 Alpha / 1.5 Beta

  • Primary Goal: Track total USD Return and determine days to hit +$3000.

im using Level 1 Data (OHLC, Volume, Ask & Bid Size, Ask & Bid Price) and able to make 28 new Feature Engineering. and then train using XGB Model

the Strategy is entry every 15 minute ORB Candle break (1minute) above 0.8 ATR ORB high. max 1 trade per day (only trade in NY Session).

is there any suggestion for this model to be able passing prop firm challenges?


r/algorithmictrading • • Nov 29 '25

Strategy The next level quant bot is work in progress solely by me - would like if anyone has any thoughts

Post image
15 Upvotes

r/algorithmictrading • • Sep 29 '25

Jobs Looking for a partner.

15 Upvotes

As the title says im looking for someone who knows how to code and is ambitious, i used to be a full time trader but now im spending all my time in creating new algorithms, pi have various strategies im building using claudecode but i need someone i can partner up with to make the features in my algorithms more sophisticated. This is only for people who are willing to do it fulltime, iam a serious trader.


r/algorithmictrading • • Aug 04 '21

Writing my own bot in python, finally got my MACD algorithm to work properly... The weird vertical X's are a basic plot of the histogram... just- vertical...

Post image
15 Upvotes

r/algorithmictrading • • Jul 09 '19

Large OHLC dataset of 401 crypto currency pairs at 1-minute resolution

Thumbnail
kaggle.com
15 Upvotes

r/algorithmictrading • • 21d ago

Strategy Built a fully automated crypto trading system. Curious what you think of the results.

Post image
14 Upvotes

Hey everyone,

I've been working on an automated crypto trading system for quite a while, covering BTC, ETH, SOL, and XRP.

It's fully autonomous, handling everything from signal generation and position sizing to risk management and execution. No manual trading decisions.

My main focus has always been risk management rather than trying to predict every market move.

I've attached a performance report covering Feb 2025 to Sep 2026, including a comparison with an equal-weight buy-and-hold portfolio of the same four coins.

The trading records come from real trading, not just a backtest. The report also looks at performance using volatility-scaled position sizing.

I'm curious what people here think of the results, especially from a risk management perspective.

I'm also exploring opportunities to move into institutional quant research or systematic trading. My background is in ML research, software development, and trading, though I haven't followed the traditional quant career path.

Would this kind of work be relevant to a prop firm or a quant trading team?

Interested to hear your thoughts.


r/algorithmictrading • • Oct 22 '26

Novice Beginner Looking to Learn Quantitative Trading, Backtesting, and Building a Trading Bot

14 Upvotes

Hi everyone! I'm a beginner interested in quantitative trading and algorithmic trading.

I'm interested in learning:

How to backtest a trading strategy using historical market data.

How to develop and combine trading signals.

How to use Python for backtesting and Monte Carlo simulations.

How to build a trading bot that can generate signals and eventually execute trades.

How to avoid common backtesting mistakes, such as overfitting, look-ahead bias, and unrealistic transaction costs.

How to properly paper-trade a strategy before risking real money.

I'm still learning, so I'm not expecting to build a profitable strategy overnight. My goal is to understand the entire process from scratch and gradually develop my own systematic trading strategies.

If you've built trading bots or worked on quantitative research projects, I'd really appreciate any advice on where to start, which tools or libraries to learn, and what a good first project would look like.

Any beginner-friendly resources, tutorials, GitHub repositories, or practical guidance would be greatly appreciated. Thanks!


r/algorithmictrading • • Jun 19 '26

Backtest Guys, what do you think ? Is it a solid strategy?

Thumbnail
gallery
14 Upvotes

STATS

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

Total trades: 315

Win rate: 59.05%

Total PnL: 1379$(dont mind pnl its what you put what you get)

Avg PnL: 4.3805

Profit factor: 2.59

Sharpe (per-trade): 3.60

Avg win: 12.0888

Avg loss: -8.5162

Payoff ratio: 1.42

Expectancy (per trade): 4.3805

Avg R: 0.05

Max consecutive wins: 9

Max consecutive losses: 6

Risk per trade (%): 1.50

Data range: 2023-09-12 06:15:00 -> 2026-05-12 14:30:00

Data span: 974 days (~2.66 years)

Max drawdown: 146.4494

Max drawdown %: 2.28%


r/algorithmictrading • • Apr 02 '26

Novice Im a beginner, need some advice.

14 Upvotes

Im a 17 year old teen and i have no experience in trading or trade bots/algo trading, but im very much interested in that. Could anyone give me any advice on how to make tradebots or provide me a yt video or smth where i can learn more about this.

Thank you.


r/algorithmictrading • • Feb 27 '26

Strategy ORB strategies doesnt work?

14 Upvotes

I've been stress-testing a bunch of Opening Range Breakout (ORB) variations on NQ across 5m, 15m, and 30m intervals — and honestly, the results aren't impressive.

I added several filters that should improve the signal quality (trend confirmation, volatility thresholds, buffer above/below OR range, etc.), but the core problem remains consistent: the raw ORB edge on NQ looks extremely thin.

I even threw machine learning on top of it — tree-based models with decent feature engineering (vol, trend slopes, OFI-style microstructure metrics). The models basically told me the same thing:
the underlying ORB signal just isn’t predictive enough to overcome execution + noise + regime changes.
They either overfit or predict “no trade” for most sessions.

What’s interesting is that I did a similar ORB backtest months ago using MNQ starting from 2019, and that one showed positive EV.

https://www.reddit.com/r/algorithmictrading/comments/1rd8ara/backtesting_15_minute_orb_with_machine_learning/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

But now that I’ve tested NQ with data going back to 2010, it’s pretty clear that:

  • ORB performs way worse outside of those trendy years

  • Most breakouts on NQ get faded immediately unless volatility is extreme

At this point it feels like ORB is:

  • Not robust enough across regimes

  • Overly dependent on a few abnormal years

  • Too sensitive to microstructure changes and volatility decay

  • Not something that ML can “fix” without adding a huge amount of feature complexity that defeats the whole point

If anyone has found ways to stabilize ORB on NQ specifically, I’m open to ideas. But so far the edge looks extremely fragile.


r/algorithmictrading • • Feb 19 '26

Tools I replaced a Python/Numba backtesting core with Rust via PyO3

14 Upvotes

Been working on a backtesting engine for a while and recently rewrote the execution core in Rust, exposing it to Python via PyO3. I wanted to share what actually changed in practice because some of the results surprised me.

The original bottleneck was Numba JIT. It worked, but first run latency was around 200-600ms and results werent fully deterministic between runs due to JIT variance and the dependency footprint was quite enormous.

After moving the execution loop to Rust:

Data SizeBeforeAfterSpeedup
1,000 bars1,460ms0.25ms5,827x
10,000 bars37ms0.46ms80x
50,000 bars43ms1.68ms26x

The 5800x on smaller datasets is mostly Numba's JIT overhead disappearing. At 50K bars the gap narrows to 26x but that's still significant for anyone running large parameter sweeps.

I'll be honest, two things I didn't expect were how much the install footprint shrank (~450MB to under 10MB) and how clean the PyO3 boundary ended up being. Python users dont touch any Rust at all. The numpy bridge via the numpy crate was the trickiest part but once figured out, its been solid. I've used Rayon for parallelism across multi strategy runs.

Has anyone else gone down this path? Curious specifically about SIMD optimization strategies on the inner loop and whether anyone has found better patterns for the numpy array handoff across the PyO3 boundary


r/algorithmictrading • • Feb 17 '26

Backtest Anything I don't see here ?

Post image
14 Upvotes

i created my first ai, I ran the Algo on ohlc data for 14 years with specific time filters, it shown profitablity in 13 out of 14 years. however, I ran the ea on "tick based on real ticks) for January 2024 to Feb 2026 it still profitable but with much lower point count especially for 2024 (went down from 900 points to around 200 points)

what do u think I'm missing here ?


r/algorithmictrading • • Nov 26 '25

Brokers The IBKR API is a complete nightmare - how does anyone reliably use it?

14 Upvotes

Hey! I've been building a trading bot with my friend as a hobby project. It does sentimental analysis on news articles and opens positions on IBKR. (We're using the WEB API with the Gateway)

We've been running into all sorts of really weird issues with IBKR. For those who worked with this API, how did you get around these / what do you recommend?

  1. When using the /secdef/search?symbol=... endpoint, I see every contract entry also has a list of "sections." What exactly does each section represent? Are these the same underlying company on different exchanges?

  2. Our orders are sometimes rejected because we get flagged as a "Pattern Day Trader". For each position, we submit a bracket order with a SL & TP, so we're not exactly in control of when the position closes; it closes whenever one of those hits. If I understood correctly, this can be solved by downgrading to a "cash account", but then we seem to lose the ability to short.

  3. We recently discovered that some endpoints are tied to the active session with a "cache". For example, the /orders endpoint only returns orders within the active session.

  4. No pagination exists in /orders, and it seems to return the 500 (sometimes 510) earliest orders from the active session. This becomes problematic when trying to find an order if the current session has more than 500 orders. The response to submitting a bracket order only includes the parent order's ID, not the associated TP and SL order IDs. If there are fewer than 500 orders in the current session, we can query /orders and find them by their local parent ID. When there are more than 500 orders, my hacky workaround is tpId = parentOrderId + 1 & slId = parentOrderId + 2. However, I read that IBKR sometimes internally replaces order IDs under certain circumstances, so it isn't safe. The /order/status/:orderIdendpoint doesn't seem to return the associated SL & TP orders either.

  5. In some cases, the /orders endpoint shows specific orders marked as existing but "inactive"; however, querying them through order/status/:orderId results in an error.

  6. We suppress order warnings through the /questions/suppress endpoint. This works for all warnings except o2137; "The closing order quantity is greater than your current position. Are you sure you want to submit this order?" Using /suppress/reset doesn't help either; the warning still needs to be confirmed when submitting a new order.

  7. I found cases where the API sometimes returns an error for fractional shares and sometimes returns no error and rounds it down itself, so the quantity submitted can differ from the quantity on the server. But sometimes it only rounds the children's quantity down, leaving the parent with a larger quantity, as it's still fractional.

  8. In another case, for contract ID "4471" (ticker AP, exchange NYSE), I submitted a bracket order for 400 shares, yet it rounded my children's shares down to 200, leaving the parent order at 400 shares. What's going on here?

  9. The order submission is completely inconsistent for some contracts. I could submit a bracket order with the same information and get completely different results. For example, when submitting a bracket order for contract ID "292824438" (ticker EW, exchange MEXI), the API returns one of the following three randomly:

    1. When I submit with rounded shares from the start, it fails.

    2. When I submit with fractional shares, it correctly warns that this financial instrument does not support fractional-share trading, so I round it, and it submits successfully. (This rarely happens)

    3. Usually, instead of a fractional shares warning, it just fails.

  10. The /whatif endpoint is also very unreliable. For some orders, it returns no error, indicating the order should submit successfully, only for it to fail regardless.

  11. Finally, sometimes the API returns an error saying the order creation failed, even though it was submitted successfully. When a bracket order submission failed, I resubmitted only the parent order with the same local order ID and got a 503. Then resubmitting only the parent order again results in a "local order ID already in use" error. When I checked my positions on the stock, I saw that IBKR had successfully submitted and even filled the entire bracket order.

Working with the IBKR API has been a nightmare; nothing is consistent, and nothing is documented well. The API feels like each endpoint was built by a separate developer working in complete isolation. Input formats vary between endpoints, and there's no consistent pattern to follow. Worse, the responses themselves are unreliable; sometimes the data returned is just outright wrong. This API is the biggest blocker in the project.

The answers to some of these questions may be available in the docs, but it hasn't been easy to read them. IBKR seems to have like five different docs sites, each hiding vital information that's only available in that one. If this wasn't enough, these docs sites are the most unperformant websites I've seen in a long time. They are supposed to be a simple static site, yet my computer freezes whenever I'm on the site, and it eats up all my available memory.

This is our first project in this domain, so if you suspect that we're doing something that's considered an anti-pattern, let us know!

We initially chose IBKR because it supports most international markets across many countries, offers overnight trading, a paper account, and is generally trusted. Are there other brokers that fit this criteria besides IBKR?


r/algorithmictrading • • Nov 17 '25

Jobs Looking for a partner and developer to work with

Post image
14 Upvotes

MES 1 contract


r/algorithmictrading • • Aug 31 '24

Is HFT the only profitable way?

14 Upvotes

I have been looking into algo trading and have been reading a few books on the subject but it seems like profitable algorithmic traders seem to all trade high frequency and take advantage of arbitrage and strategies such as front running and spoofing orders. Do people make a consistent profit with more long term algo trading using fundamentals or TA?


r/algorithmictrading • • Aug 23 '23

Orderbook visualization in python

14 Upvotes

https://www.vertoxquant.com/p/orderbook-visualization-in-python

I made a little post on how to visualize a limit orderbook in python.

Hope you guys enjoy!


r/algorithmictrading • • Apr 02 '22

literature review of deep reinforcement learning in quantitive finance

14 Upvotes

Hello!

I'm currently working on a literature review of DRL in quantitative finance as my final project for one my last masters classes and I was wondering if anyone would be interested in something like that. It breaks down the essentials of deep reinforcement learning from the perspective of someone studying economics/econometrics and then dives into applications in q fin.

I know you are all smart and can do your own research, but a ten minute read that gives a bit of a crash course might be of use to some!


r/algorithmictrading • • Nov 26 '21

Beat $SPY by trading and holding $SPY

14 Upvotes

First of all I would like to say this is not an advice on how to trade. 2nd you need to have high risk tolerance for something like this.

Assume you are bullish on $SPY and have an account with leverage where you bought $25,000 worth of $SPY. Would tapping into $75,000 margin to buy $SPY at open and sell at close be any beneficial?

I tested this for 2021. Below are the results. Blue is the returns from day trading and line is buy and hold.

Disclaimer: all calculations made using BreakingEquity.com


r/algorithmictrading • • Nov 03 '20

Quantopian’s Community Services are Closing (How to still access to the lectures)

14 Upvotes

Since 2012, Quantopian has been a place for people all over the world to learn quantitative finance.

After all these years they will be winding down Quantopian’s free community offering over the next couple of weeks and on November 14th, the community platform will be taken down.

Everybody who loved their lectures to study like us, don’t worry, you can still find them on github:

https://github.com/quantopian/research_public/tree/master/notebooks/lectures


r/algorithmictrading • • Jun 20 '20

To what degree can a PhD in quantitative finance boost a lone stay-at-home investor's rate of return?

14 Upvotes
  1. Can someone succeed and profit as a quant just by working at her own home alone?

  2. How much can studying quantitative finance, like a PhD, boost a lone investor at home's rate of return?

I read about

  • two Nobel Laureates (Robert Merton and Myron Scholes) whose Long-Term Capital Management LP got liquidated and dissolved in early 2000.

  • James Simons's and his RenTech's success.

Context

A family member is handicapped, legally blind, and loathes computer science and programming. He merely regards computers as a life necessity like Interactive Brokers for investments, Internet, MS Office. To what extent does his dread of technology hinder his prospects in Financial Mathematics?

He isn't trying to become a multi-millionaire, but he's thinking of studying Financial Mathematics just to make money at home. He's aiming to earn least 2 million USD total (NOT 2M/year) by the time he turns 40 years old, so that he can buy a house and be financially independent.


r/algorithmictrading • • Jun 29 '18

Educational The mathematician who cracked Wall Street

Thumbnail
youtu.be
14 Upvotes

r/algorithmictrading • • Sep 25 '26

Novice Strategy Ideas / alpha discovery

13 Upvotes

Hey,

I'm not so new to algotrading but have an understanding of certain principles and phenomenons such as mean reversion, momentum, cross sectional / time series momentum, cointegration, momentum spill over. Efficient and Inefficient markets etc. I also semi-believe in the idea of alpha / statiscal edge out in the open diminishes or rather could still be if you could make it robust/adapt to the market, but ultimately a good strategy has a lifeline.

I also believe a trading strategy should be novel and personal and exploits some Inefficiency/mispricing or predictable market movements. My ask is therefore how do you go about finding your alpha that you turn into strategies?. My thoughts are

  1. Researching academic papers, replicating the idea, identify where and why it fails and improving it.

  2. Analysing price data through some statiscal/physics/signal processing lenses, developing features that represent events and outcomes, economically validating it before testing it out but my problem with this is it becomes a data mining exercise and you are at risk of apophenia

I ask these to say what's a good starting point or how would you better approach or what is even your approach ?

For context I'm a data scientist with software engineering background and no economics/finance background


r/algorithmictrading • • Sep 12 '26

Strategy Coding ICT Methodology Bot.

Post image
13 Upvotes

So I've been coding a bot to enter at PSH/L, PDH/L, PWH/L sweeps with 2022 Model and testing on MT5 with data feom January 2023 to September 2026.

At this point I'm just exhausted and don't know what to do, sometimes Win rate goes to 70%, or average win is double the average loss then the win rate drops to 30%, whatever I do my net profit is negative.

Anyone help me get this right or suggest something...

Adding most recent result here.


r/algorithmictrading • • Aug 24 '26

Question How many ideas did it take before one of your strategies actually survived costs? I’m months in and still at zero

13 Upvotes

I tested several literature-based anomalies across ~300 stock-strategy combinations on the Nifty 100. Most showed no real gross signal before costs. One did — statistically significant, confirmed with DSR, not just a good Sharpe. Then I applied real transaction costs and it went to zero. Breakeven sits around 24 bps/trade; the edge I found was 6.4 bps gross. Not close.

Not looking for a strategy handout — genuinely trying to understand the process from people who’ve gotten past this:

**•**	When you found something that held up out-of-sample and after costs, how did you land on the original idea — literature, your own data mining, intuition?  
**•**	Roughly how many ideas did you test and discard before one survived? Trying to calibrate if “months, nothing yet” is normal.  
**•**	For Indian equities specifically — is cost drag here noticeably worse than US/EU, or is this just what finding a real edge looks like everywhere?

Genuinely trying to figure out if I’ve hit the normal wall or I’m missing something structural.