r/algorithmictrading • • Mar 11 '26

Backtest Is this backtest legit?

Post image
6 Upvotes

so i made a few tweaks in a from a previous strategy of my algo that was having a really high drawdown now i added a few stocks and removed a few that the algo trades on and i made a new rule where it doesnt trade when the price of the SPY is below the sma(200) that it doesnt trade. But now i have these absurd returns about 8700% over the past 25 years. so im wondering if this would actually work.


r/algorithmictrading • • Feb 26 '26

Novice Data science for algo trading

6 Upvotes

hi ,i have no idea how can i break into algorithmic trading

i dont know any path guide, only things i know is you have to know python(pandas) and high level math i guess.So i thougt if i pick data science as major would it be usefull for me to building algos since data scientist are good at python and they do machine learning either


r/algorithmictrading • • Feb 17 '26

Strategy Order Book Algotrading: How Do People Actually Make This Work in Practice?

6 Upvotes

Hey everyone,

I’m diving deep into algotrading with market‑of‑depth / order book data, but I’m still at the stage where the whole ecosystem feels like a giant black box. I understand the theory behind heatmaps, liquidity walls, spoofing, imbalance, etc., but I’m struggling to figure out how people actually execute strategies that rely on this data in the real world.

I’m hoping some of you who’ve been in the trenches can share guidance or point me in the right direction.

A few things I’m especially curious about:

  • How do you structure an execution pipeline when your signals come from fast‑moving order book features

  • What data sources or tooling you’ve found reliable (paid or free)

  • How you deal with noise, fake liquidity, and regime shifts in order book dynamics

  • Whether you combine order book signals with other microstructure features (CVD, queue position, spread dynamics, etc.)

  • Any pitfalls you wish you knew earlier when you first started working with depth‑based signals

I’m not looking for anyone’s secret sauce—just trying to understand how practitioners think about building, testing, and deploying these kinds of strategies. Even high‑level frameworks or “here’s what actually matters” advice would be incredibly helpful.

If you’ve walked this path before, I’d love to hear your thoughts. And if you know any good papers, repos, or writeups, feel free to drop them too.

Really appreciate any insight from this community.


r/algorithmictrading • • Feb 12 '26

Question VWAP/TWAP slicing bot

6 Upvotes

Has anyone ran into issues/getting account flagged or banned (canadian/US Retail discount brokerage) for using Claude Code style bot for multiple limit orders setting and clicking submit vs manually entering each time? Its funny how everything is directed to native in house tools but the second you do anything even manually inputing repetitive twap slicing like selling 1000 shares every 5 minutes or anything that resembles an algo but isnt one of their tools it triggers a compliance call with some spineless wonder requesting an explanation. Basically the institutional prime brokerage clients bot programs can set and cancel large limit orders above and bellow the offer but the second a retail discount brokerage client cancels that large buy or sell limit order at 9:29:59 after setting it at 9:29 "ring ring compliance, your spoofing!!" Particularly speaking on equities listed on TSX V , CSE, CBOE Canada, OTC/PINk exchanges.


r/algorithmictrading • • Jan 24 '26

Question What is an acceptable drawdown in your eyes?

6 Upvotes

I have been wondering how to interpret my max drawdown from my becktests.

Im faceing a max drawdown of about 40% in my experamints, which i know for sure isnt that good compared to most people, but there is the conccederation that usually, i only get to that point when the stock has fallen around 90% in value, which seems to me like a somewhat good ratio as my strategy has avoided much of the value loss.

What would you say about these results? And also what other metreics would you compare to the drawdown for a more accurate view?


r/algorithmictrading • • Nov 17 '25

Jobs Partner for a scalping bot

6 Upvotes

Hello, I am looking for one max two people that would like to help me develop a scalping bot. I'm getting back to trading in my free time and I must admit it's not easy for me to manage all of my personal activities and do everything by myself. I've started messing around Trading a long time ago but was never able to commit. I am using MT5 as terminal and AI to write me the code. If someone with a little bit of time and algo experience is interested in helping me, I believe we could be successful. P.S. I'm not a kid and would appreciate only a serious person to DM me.


r/algorithmictrading • • Oct 28 '25

Novice Advice for starting algorithmic trading?

6 Upvotes

Hi everyone, I'm a 24 year old boy who is studying quantitative finance at university, one thing though, I'm tired of studying all this theory, I would like to implement something.

We study the markets every day, in particular the options and models behind them, Black Scholes, Heston etc. But I don't know how to set up a trading strategy and I would like to succeed, does anyone have any advice on how to get started?

P.S. I know how to program, at university we do Python and Java, plus I'm quite passionate and study on my own.


r/algorithmictrading • • Oct 06 '25

Novice Should I or am I supposed to already know how to normally trade (like PA or ICT) before developing bots

6 Upvotes

I'm already experienced in programming in multiple languages; however, does the trading part of algorithmic trading need some sort of normal trading background, or is it specifically quantitative concepts?


r/algorithmictrading • • Sep 23 '25

Novice where to start algotrading?

6 Upvotes

I have a background on coding different languages like Python and PHP.


r/algorithmictrading • • Sep 17 '25

Backtest ICT concepts FVG algo

Thumbnail
gallery
6 Upvotes

Hello everyone I've been training and back testing an algorithm based on the FVG concept from micheal huddleston teachings, firstly started of with python with data pulls from yfinance recently moved to back testing in MT5 here are the results.


r/algorithmictrading • • Sep 03 '25

Backtest Results Unrealistic

Post image
6 Upvotes

These results seem completely unrealistic to me. Just wanted someone to look them over and see what they think. For reference this is an arbitrage strategy on a highly inefficient market. I also realize that the act of using this strategy would diminish the returns and the opportunity though the ~2000x return over a couple years seems ridiculous.


r/algorithmictrading • • Aug 28 '25

Backtest Backtesting my EA

Thumbnail
gallery
6 Upvotes

My last project result from Jan 2025 until now Aug 2025...
The target is flipping the accounts
The secret is Dynamic lot ..

This result is for Mid High Risk option , we can go lower or higher than this

opinion ? suggestion ?

UPDATE :

https://www.reddit.com/user/BriefRecording3274/comments/1n26co5/my_golden_sniper_ea/


r/algorithmictrading • • Aug 23 '25

Educational Looking for tutorial

6 Upvotes

Hi guys, so a few months ago I recall watching a YouTuber that has these great videos on how to create AI trading bots that were like 6-10hrs long, his content was great and went the whole thing start to finish,

He had multiple videos and because YouTube search is just feeding me useless slop I can’t find him anymore.

Does anybody know who I’m speaking about? Thanks in advance

EDIT : Found it

YouTuber is called Moon Dev if anybody is interested


r/algorithmictrading • • Jul 13 '25

Looking for Feedback on Algo Bot Settings – Uses RSI, MACD, VWAP, OBV, SuperTrend, TTM, etc. (Sniper Logic Built In)

6 Upvotes

Post 1

Hey everyone,

I've built a momentum-based algo bot Platform WARMACHINE that scores setups in real time using a mix of TA indicators and multi-timeframe logic. I'm trying to fine-tune the thresholds and logic for optimal sniper entries/exits, and I'd love to get the community’s take.

How it works:

The bot computes a momentum score (0 to ~16) based on over 17 indicators, including:

  • MACD (1m, 5m, 15m, daily alignment, histogram flip, signal cross)

  • RSI (1m/5m/15m/daily, normalized and divergence-aware)

  • VWAP (relative price position, crossovers, rejections)

  • OBV (trend and divergence)

  • ADX (rising trend strength)

  • ATR & NATR (volatility levels)

  • Stochastic Cross, Supertrend flips, TTM Squeeze, Bollinger Riding

  • Candlestick Engulfing, POC, VAH/VAL zones

As each condition triggers, it adds points to the momentum score and appends a tag like "MACD Daily Bullish", "RSI 5m > 50", "VWAP Rejection", "TTM Squeeze Detected" and so on. I’ve got over 50 unique tags being tracked.

Once the momentum score hits 9+, it activates my Sniper logic, which defines:

  • 🎯 Entry Zone: Centered around EMA20 ± 0.3 * ATR

  • ⛔ Stop-Loss: VWAP ± 1.0 * ATR

  • ✅ Target: 1.5 * ATR in the trend direction

  • Bias is inferred from RSI and MACD alignment.

What I’m asking the community:

If you’ve built or run algo bots before — what kinds of tweaks or filters would you suggest?

  • Are there any indicators you would weight more heavily?

  • Any conditions you think should be required before taking a shot?

  • Would you tighten or loosen the sniper trigger threshold (currently set at score ≥ 9)?

  • Have you had success integrating market structure, book pressure, or L2 data into your bots?

  • Anything you’d remove from the score to reduce false positives?

Would love to hear how others are handling real-time scoring or sniper-style entries.

Happy to share test results if folks are interested. As you can see below the combinations are endless and this platform can be fully customized for different momentum strategies.

Appreciate the feedback ✌️

SAMPLE WARPLAN (click if image if blurry)

CUSTOM INDICATORS, MOMENTUM SCALE AND TAGS-----------------------------------

Computed in utils.py

  1. ADX – calculate_adx

  2. ADX (variant) – calculate_adx_14_14

  3. ATR – calculate_atr

  4. Bollinger Bands – calculate_bollinger_bands

  5. Bullish/Bearish Candles – calculate_cdlengulfing

  6. EMA – calculate_ema (e.g., EMA9, EMA20, EMA21)

  7. MACD – calculate_macd

  8. NATR (Normalized ATR) – calculate_natr

  9. OBV – calculate_obv

  10. Point of Control (POC) – calculate_poc

  11. RSI – calculate_rsi

  12. SMA – calculate_sma (used for 5/10/20/50/120/200)

  13. Stochastic Cross – calculate_stochastic_cross

  14. Supertrend – calculate_supertrend

  15. Volume Surge – calculate_volume_surge

  16. VWAP – calculate_vwap

  17. RSI Divergence – detect_bullish_rsi_divergence

📊 Momentum Tags

  1. ADX 5m > 25

  2. ADX 5m Rising

  3. ADX Rising

  4. ADX Strong

  5. ATR Surge

  6. Above PM High

  7. Above VAH

  8. Above VWAP

  9. At POC

  10. Bearish Engulfing

  11. Below VAL

  12. Bollinger Riding

  13. Breakout Confirmed

  14. Bullish Engulfing

  15. Bullish OBV Divergence

  16. Bullish RSI Divergence

  17. Buy Volume Dominant

  18. EMA Bearish Stack

  19. EMA Bullish Stack

  20. High-Vol Rejection

  21. In Pressure Zone

  22. Low ATR

  23. MACD 1m/5m Bullish

  24. MACD 3 Bullish

  25. MACD 5m/15m Bullish

  26. MACD Daily Bullish

  27. MACD Histogram Flip

  28. MACD Signal Cross

  29. Near Absorption Wall

  30. OBV Downtrend

  31. OBV Uptrend

  32. RSI 15m < 30

  33. RSI 15m < 40

  34. RSI 15m > 50

  35. RSI 15m > 60

  36. RSI 1m > 50

  37. RSI 1m Oversold

  38. RSI 5m & 15m > 50

  39. RSI Daily > 60

  40. Sell Volume Dominant

  41. Squeeze Release

  42. Stochastic Cross

  43. Supertrend Bearish Flip

  44. Supertrend Flip to UP

  45. Supertrend Green

  46. Supertrend Multi-Frame

  47. Supertrend Red

  48. TTM Squeeze Detected

  49. VWAP Cross

  50. VWAP Rejection

  51. Volume Surge

Momentum Scoring Scale (from momentum_scorer.py)

Momentum scores are added based on various technical conditions. Here’s the full scoring scale:

ConditionPoints
MACD Daily Bullish+1.0
MACD Histogram Flip+1.0
MACD 1m/5m/15m Bullish (all 3)+1.0
MACD 1m & 5m Bullish (15m pending)+0.5
MACD 5m & 15m Bullish (1m lagging)+0.3
MACD Signal Cross+1.0
RSI Daily > 60+1.2
RSI 5m & 15m > 50+1.0
RSI 15m normalized±0.3
ADX > 25 (rising)+1.0
ADX single > 25+0.5
Stochastic Bullish Cross+1.5
OBV Uptrend+1.0
VWAP above 1m & 5m+0.5
Volume Surge+1.0
VWAP Rejection-0.5
Breakout Above Recent Highs+1.0
RSI Divergence+1.5
Supertrend 5m/15m Flip to UP+1 each
Supertrend Multi-Frame UP+1.0
Supertrend 15m Flip to DOWN w/Volume-0.5
TTM Squeeze Active-0.5
TTM Squeeze Release with Breakout+1.0
Price Above Pre-Market High+1.0
Supertrend UP+0.5
Bollinger Riding+0.3
Bullish Engulfing+0.25
Bearish Engulfing-0.25
ATR Surge (>3%)+0.3
Low ATR (<1%)+0.2
Price Near POC+0.25
Price Above VAH+0.3
Price Below VAL+0.3
  • Max theoretical score (stacked): ~16.3

  • Sniper Activation Threshold: Score ≥ 9 (from sniper_logic.py)

📈 How are Buy & Sell Levels Set?

Once active, the sniper builds these levels:

▶️ Entry Zone

Centered around EMA20, scaled by ATR:

pythonCopyEditentry_zone = (ema20 - 0.3 * atr, ema20 + 0.3 * atr)

Then adjusted by price and bias (bullish/bearish):

  • If bullish (price above zone):

    • Shift zone upward by 0.1 * atr

  • If bullish (price below zone):

    • Narrow to (low, low + 0.2 * atr)

  • If bearish (price below zone):

    • Shift zone downward by 0.1 * atr

  • If bearish (price above zone):

    • Narrow to (high - 0.2 * atr, high)

⛔ Stop-Loss

  • Bullish: VWAP - 1.0 * ATR

  • Bearish: VWAP + 1.0 * ATR

🎯 Target

  • Bullish: price + 1.5 * ATR

  • Bearish: price - 1.5 * ATR

🧠 Bias Detection (Bullish vs Bearish)

You’re considered bullish if:

  • Tag "MACD 3 Bullish" is present

  • OR RSI > 50.0

Else, sniper assumes bearish bias.

Summary

ElementBullish LogicBearish Logic
Entry ZoneAround EMA20 ± 0.3 * ATR (adjusted up)Around EMA20 ± 0.3 * ATR (adjusted down)
Stop-LossVWAP - 1.0 * ATRVWAP + 1.0 * ATR
TargetPrice + 1.5 * ATRPrice - 1.5 * ATR
BiasRSI > 50 or MACD 3 BullishElse
Activated ifScore ≥ 9 OR strong tags presentAND above PM high (unless override)

r/algorithmictrading • • Mar 14 '25

Has Anyone Backtested Gann Cycles?

6 Upvotes

Has Anyone Actually Backtested Gann Cycles? Asking for a friend who’s convinced they work because a YouTuber showed exact dates and all—he won’t stop talking about it!


r/algorithmictrading • • Jan 26 '25

Algorithmic Trading Mobile App

6 Upvotes

My primary background comes from developing mobile applications, and I have a shell built for an app for both backtesting and running scripts to run algo trading through Alpaca API. My initial idea was to facilitate an easy way for users to seamlessly backtest a trading strategy by providing a user interface to toggle indicators and modify buy/sell thresholds, and then if they like what they see, they can simply click a button and start running their own script using those parameters. I also just completed a Master's course in ML for trading, so plan to implement the ML techniques learned as well.

What I'm curious from the community is where is the current gap? What type of user interface can make life easier that doesn't already exist or that needs to be improved?


r/algorithmictrading • • Dec 25 '24

What's Your Preference on Hosting Services ?

6 Upvotes

I plan to code a bot using Alpaca's API. Nothing that is sending a crazy amount of transactions, maybe only a couple a week. Any recommendations on a software you guys prefer to host simple bots? I'm planning on keeping things simple and would prefer to stay away from some expensive subscription with advanced features.

I've looked online and seen a bunch of different categories including cloud hosting, private hosting. I don't have any experience with algo trading and not sure what would be the best fit. I saw some older posts regarding the topic but the most recent appeared to be two years ago and I wanted to see if there was any new ideas out there.

Thank you in advance for any insight you might have!


r/algorithmictrading • • Dec 25 '24

Platforms

6 Upvotes

Can anyone recommend or give me the pros and cons of different platforms for algorithmic trading? We are starting a very small group trading stocks and futures and are considering platforms like quant connect, blueshift, etc. One of us has coding experience and the other not much, but has extensive trading experience. We would like to have a decent professional platform that we can grow with to do advanced analysis and machine learning capable of trading many strategies. Thank you for any input!


r/algorithmictrading • • Sep 10 '24

interested in algo trading

6 Upvotes

i have been learning trading for 6 months came from the bs magic indicators to orderflow with market depth volume profile ... and now i'm very interested in learning algo / quant trading using quantitative models like monte carlo , black sholes .... where do you advise me to start a complete beginner who don't know how to code , i like learning by building projects and searcjh the things i don't understand or don't know .


r/algorithmictrading • • Jul 08 '24

Backtest A Simple Momentum Strategy for Nasdaq 100!

6 Upvotes

Hey Traders!

I want to hear your opinion on this strategy and what improvemets you can come up with. The concept for this strategy is somewhat unusual, as it buys on momentum and sells on further momentum. The entry is based on the momentum indicator and the exit is based on a candle pattern. To avoid overbought territory, there's also an RSI filter to reduce the number of trades.

Entry Conditions

  1. 10-day momentum crosses over 0.

  2. 2-day RSI is less than 90.

Exit Conditions

  1. The close is higher than the close five days ago.

Setup for Backtest

Market: US Tech 100 (Nasdaq 100)

Contract: 1 € per point

Broker: IG

Testing environment: ProRealtime 12

Timeframe: Daily

Time zone: CET

No fees and commissions are included.

Result

Total gain: 9 528.2 €

Average gain: 24.3 €

Total trades: 392

Winners: 277

Losers: 114

Breakeven: 1

Max drawdown: –1 214.0 €

Risk/reward ratio: 1.3

Total time in the market: 15 %

Average time in the market: 3 days, 10 hours

CAGR (10 000 € in starting capital): 1.93 %

Please let me know if you have any improvements on this strategy as this is not good enough for live trading in my opinion as it is now.


r/algorithmictrading • • Feb 29 '24

When you know there is an error somewhere lurking in your code and you just can't find it.

6 Upvotes

r/algorithmictrading • • Oct 10 '23

chaos theory and market efficiency: pricing options with realistic and non random assumptions

6 Upvotes

Predicting future stock price paths with chaos theory and pricing options... an example with UVXY

I thought this would be a useful sub to share this information to:

https://www.quantitativefinancialadvisory.com/post/chaos-theory-and-market-efficiency-pricing-options-with-realistic-and-non-random-assumptions


r/algorithmictrading • • Sep 24 '23

Adversarial Reinforcement Learning

6 Upvotes

A curated reading list for the adversarial perspective in deep reinforcement learning.

https://github.com/EzgiKorkmaz/adversarial-reinforcement-learning


r/algorithmictrading • • Aug 08 '23

is it possible to train a machine learning algorithm using only technical analysis and be profitable?

6 Upvotes

i have been trying for a while now to build an algorithm using technical indicators (RSI, MACD, etc) but it looks like i'm wasting my time.

i think that what is causing the issue is the labeling method so i used triple barrier method and it did improve my algorithm accuracy should i keep improving in the labels part ?

should i keep using only technical analysis or should i try to get some premium data