r/algorithmictrading • • Jul 06 '26 Heartwarming

Quotes Building a crypto trading bot and I'm stuck on backtesting (historical OI, funding & liquidations). Any advice?

Post image
11 Upvotes

Hey everyone,

I wanted to introduce myself and hopefully get some advice from people who've gone down this rabbit hole before.

I am a NEWB in this space....

I've been teaching myself Python while building what has turned into a pretty serious trading project. Right now I'm working on two automated crypto trading bots.

The bots trade multiple timeframes:

5 minute

15 minute

1 hour

4 hour

Daily candle closes

The part I'm struggling with isn't the coding anymore—it's the data.

I really want to backtest these ideas properly over 2023-2024 (and ideally further back), but I keep running into the same problem:

I can't find affordable historical derivatives data.

Specifically I'm looking for things like:

Historical Open Interest

Funding rates

Liquidation history

Long/short ratios

CVD / order flow if possible

Anything else you've found useful for crypto backtesting

Most free APIs only give a few weeks or months of history, while the datasets that go back years seem to cost hundreds or even thousands of dollars.

I'm curious what people here use.

Are there datasets I'm overlooking?

Any APIs with generous historical limits?

Academic datasets?

Open-source projects?

Kaggle?

Paid services that are actually worth the money?

I'm not looking for anyone's strategy—I want to build and test my own. I just need reliable historical data to know whether my ideas actually have an edge before putting real money behind them.

I'd really appreciate any recommendations or even hearing how you solved this problem.

Thanks!


r/algorithmictrading • • Jun 15 '26

Backtest QQQ&TQQQ max time period backtest (Tradingview)

Thumbnail
gallery
11 Upvotes

QQQ CAGR: 15.31%, growth%: +6709%, buy and hold %: +1073%
TQQQ CAGR: 42.97%, growth%: +77150%, buy and hold %: +21433%

Only 18 trades for QQQ, 10 trades for TQQQ so this is an aggressive investing strategy. Do you think these are impressive numbers? Works well with tech stocks. Sorry I don't want to reveal too much other than it tracks US junk bonds with bunch of other conditions.


r/algorithmictrading • • Jun 06 '26

Backtest Architecture Review: Multi-Asset Regime Switching Model (HMM + Conditional State Machine)

11 Upvotes

Hey everyone,

I am preparing to push a regime-switching policy to production and I am looking for some feedback on my architecture and a specific math anomaly.

My strategy is long-only, daily close execution, shifting capital between risk-on and risk-off instruments (holding exactly one asset at a time).

1. Regime Validation (HMM / MS-DR)
To ensure the mathematical validity of my HMM and prevent overfitting (too many states or features), I ran a regime inference using statsmodels Markov Switching Dynamic Regression (MS-DR).

The inferred hidden states show statistically significant variations in both average expected return and volatility.

2. Execution Layer and State Machine

To mitigate whipsaws during sudden liquidity panic and lag on violent, mean-reverting V-bottoms (HMMs are known to lag), I use uses a two-layer decision architecture.

The first layer generates discrete state probabilities via the HMM. The second layer feeds these probabilities into a conditional state machine. The latter synthesizes the HMM outputs alongside EOD market data (e.g., volatility or price distance to crucial moving averages) to make the final decision.

3. The vbt vs. QuantStats Sharpe Discrepancy

I backtested my model using vectorbt with cash_sharing=True over a multi-year cycle (~50 closed trades, Max DD ~22% from January 2022 till May 2026). Fill paths and drawdowns match identically across my analytical stacks, but I ran into a large divergence in annualized risk ratios:

  • vectorbt (group_by=True): Sharpe 1.31 | Sortino 1.95

  • QuantStats: Sharpe 0.91 | Sortino 1.34

My policy allocates 100% of capital in cash-equivalent instruments during defensive regimes. As far as I understand,vectorbt and QuantStats use different formula, but interestingly, the ratio of Sortino to Sharpe remains identical between both libraries (~1.48).

4. Validation and Robustness

Given the macro regime-switching nature of the system, the number of trades is intentionally low (~50 trades over the backtest horizon). To ensure statistical significance despite the low trade count:

  • MS-DR State Validation: As mentioned above, statsmodels confirms the latent regimes represent distinct market states.

  • OOS: Standard walk-forward optimization (hyper parameters optimization till 2021, and test from 2022)

  • Stress Testing: Trade shuffling (Montecarlo simulation) and fee/slippage degradation testing were applied to ensure the state machine thresholds don't collapse.

  • Risk-Free Rate: average of the FED Fund Rate (~4% in my study). While not 100% accurate, the quantstats Python package doesn't accept a time series of daily risk-free rates.

The equity curve chart below compares the performance of my strategy against that of QQQ during the January 2022 - May 2026 period:

  • Total return: 154% (vs 90% of QQQ)

  • Max DD: -23% (vs -35% of QQQ)

  • Longest DD days: 309 (vs 707 of QQQ)

  • CAGR: 23.7% (vs 15.8% of QQQ)

Montecarlo simulation results:

  • Bust probability (drawdown >= 50%): 0.0%

  • Goal probability: 100.0%

  • Maximum drawdown dict: {'min': np.float64(-0.4545879162289587), 'max': np.float64(-0.1371207593528134), 'mean': np.float64(-0.2491102335214213), 'median': np.float64(-0.24003417486462705), 'std': np.float64(0.05367118181123532), 'percentile_5': np.float64(-0.3549029751169525), 'percentile_95': np.float64(-0.17673633125820087)}

  • Sharpe range: 1.07 to 1.11

  • Drawdown range: -34.6% to -17.5%

  • CAGR range: 23.7% to 23.7%

Questions

  1. Has anyone integrated front-end vs. long-end credit duration spreads as features to lead equity volatility regimes, and did it provide independent alpha relative to generic high-yield spread velocity?

  2. How do you clean or handle zero-volatility "cash-parking" periods when building custom risk-reporting sheets for allocators who expect standard 252-day arithmetic accounting?

  3. Given the architecture and validation steps outlined above, what have I missed? Do you see any hidden structural blind spots, operational traps, or causes for concern before deploying to production?

Looking forward to your thoughts and critiques!


r/algorithmictrading • • May 29 '26

Educational 3 tests that catch an overfit backtest, in the order you should run them

11 Upvotes

3 tests that catch an overfit backtest, in the order you should run them

TLDR: Run three tests before trading any backtest, cheapest first. Deflated Sharpe Ratio (one calculation, catches multiple-testing luck), Monte Carlo on your trade sequence (minutes, catches lucky ordering), then walk-forward analysis (a full re-optimization, catches curve-fit parameters). Each has a kill-threshold below. Fail the cheap test and you stop before wasting hours on the expensive one.

Why do most profitable backtests fail live?

The more parameter combinations you test, the higher the chance your best result is luck, not edge. Bailey, Borwein, López de Prado, and Zhu (2014) proved that past a small number of trials, expected out-of-sample return turns negative, not zero. The strategy loses money live.

Harvey, Liu, and Zhu (2016) documented 316 published factors claimed to predict returns. After multiple-testing correction, most fail. If you test 50 strategies and keep the best, you are running the same machine that manufactures false positives.

The fix is not testing less. It is running three specific tests on the survivor, in cost order, and killing it the moment it fails a threshold.

Which test should you run first, and why does order matter?

Run the cheapest disqualifier first. Most strategies die on test one, so there is no reason to spend hours on walk-forward before a one-line check.

The cost order is clear. The Deflated Sharpe Ratio is a single formula evaluation. Monte Carlo is a few minutes of resampling. Walk-forward analysis is a full re-optimization across many windows, often hours of compute.

OrderTestEffortCatchesKill-threshold
1Deflated SharpeOne calculationMultiple-testing luckP(true Sharpe > 0) under 95%
2Monte CarloMinutesLucky trade ordering95th-pct drawdown breaks your risk limit
3Walk-forwardHoursCurve-fit parametersProfit factor under 1.3 on most windows

Most competing guides explain these tests. None tell you to run the cheap one first.

What is the Deflated Sharpe Ratio and why run it first?

The Deflated Sharpe Ratio is one calculation and it kills more strategies than any other single test. Run it first.

A normal Sharpe assumes one trial. If you tested 100 parameter sets and reported the best, the maximum Sharpe across those trials is inflated, and the inflation grows with the number of trials. Bailey and López de Prado (2014) built the correction. It adjusts for number of independent trials, skewness and kurtosis of returns, and sample length.

Worked example: a 2.5 Sharpe selected from 100 trials on five years of fat-tailed daily returns drops to a 90% probability that its true Sharpe is even positive. A 1.5 Sharpe from 50 trials drops to 43%, worse than a coin flip. Even a gaudy Sharpe can fail this bar.

Open-source Python exists, and the function is short enough to paste in the comments. If P(true Sharpe > 0) is under 95%, stop here.

A 1.5 Sharpe chosen from 50 trials lands at 43% odds the edge is real. Worse than a coin flip.

How does Monte Carlo simulation expose a lucky backtest?

Monte Carlo resamples your trades to show the outcomes you did not happen to get. Run it second, after the Deflated Sharpe passes.

Your equity curve is one ordering of your trades out of thousands. Take the list of trade returns, resample with replacement 10,000 times, and plot the distribution of final equity and maximum drawdown.

The kill-threshold is drawdown against your risk limit. If your backtest shows 18% max drawdown but the 95th percentile of the simulation is 35%, your live account will likely see 35% within a few years. Position sizing built on the backtest number forces you out at the worst moment.

Second check: shuffle trade order. If profit factor falls below 1 when reordered, the sequence carried the result, not the edge. That is regime dependence.

What does walk-forward analysis prove that the other two cannot?

Walk-forward analysis is the expensive final gate. It tests whether your parameters survive on data they were never fit to. Run it last, only on strategies that passed the first two.

A single train/test split is one data point. Walk-forward optimizes on a rolling window, tests on the next, then rolls forward across the whole history. You get out-of-sample results across many regimes instead of one.

Concrete setup: five-year build window, one-year test window, roll forward in one-year steps. The kill-threshold is consistency. If profit factor drops below 1.3 on most out-of-sample windows, the parameters were curve-fit. A strategy profitable in 9 of 10 windows is a signal. One that works in 4 of 10 is noise you tuned.

What do these three tests catch that a standard backtest hides?

Failure modeWhat a standard backtest showsWhat the test reveals
Selection from many trialsSharpe of 1.5DSR true-Sharpe probability near 43%
Lucky trade sequenceSmooth equity curveMonte Carlo 95th-percentile drawdown
Curve-fit parametersOne clean hold-outWalk-forward collapse across windows

Each isolates a different failure. A strategy can pass two and fail the third. The order saves you time: most die on the Deflated Sharpe before you ever build the walk-forward.

Bottom line

Three tests, cheapest first. Deflated Sharpe for multiple-testing luck, Monte Carlo for trade-ordering luck, walk-forward for curve-fit parameters. Each has a concrete kill-threshold, and failing the cheap one means you stop before the expensive one. None of this guarantees live profit. Slippage, fees, and regime change still kill survivors. What it does is remove the strategies that were never real, which is most of them.

This is for systematic and discretionary traders who backtest before committing capital. The tests apply to single strategies, parameter sweeps, and machine-learning models on price data alike.

Updated May 2026


r/algorithmictrading • • May 11 '26

Tools Outgrowing TradingView’s limitations. Need a high-performance alternative for custom signal scanning (2,000+ symbols).

11 Upvotes

Hi everyone,

I’ve hit a wall with TradingView. I’ve been using Pine Script to run custom signal logic across multiple watchlists, but their recent decision to cap lists at 500 symbols has effectively broken my workflow. I need to scan at least 2,000+ symbols simultaneously, and TV’s cloud limitations are no longer cutting it.

I’m looking for a platform that offers a TradingView-like experience (clean charts, easy scripting, alerts) but with much more horsepower under the hood for large-scale scanning.

My specific needs:

Heavy Custom Logic: I’m not looking for a basic price/volume screener. I need to run complex, multi-condition scripts (like I did with Pine) that process the entire universe on the fly.

Scale: Must handle 2,000+ tickers without lagging or hitting arbitrary "symbol caps."

Alerting/Dashboard: I need to be notified or see a real-time list when my script triggers a signal on any of those 2,000+ stocks.

What I'm considering:

QuantConnect: I know it's the "gold standard" for algo trading, but how is the UI/UX for someone used to TV’s visual environment? Is the Python/Lean learning curve worth it just for scanning?

TrendSpider: I’ve heard their "Market Scanner" is powerful, but can it handle the same level of script complexity as a dedicated coding environment?

Local/Python Frameworks: I’m open to running things locally if there’s a framework that handles the data pipe and provides a decent UI for visualization.

Has anyone else here "graduated" from Pine Script to something more robust for market-wide scanning? I love the ease of use of TV, but I can’t deal with the constant nerfing of capacity. What’s the best "middle ground" between a retail charting app and a full-blown institutional HFT setup?

Thanks for any suggestions!


r/algorithmictrading • • Mar 27 '26

Question I coded a FVG Opening Range Breakout strategy on MES futures and the backtest looks insane. Tell me why I'm wrong before I do something stupid.

11 Upvotes

So I've been working on a Fair Value Gap scalp strategy on MES futures running on a 1-minute chart at the 9:30 AM opening range. The logic is pretty simple — wait for a Fair Value Gap breakout, retest, engulfing candle confirmation, then entry. Stop loss around 9.25 points, take profit around 18 points. Fully automated through TradingView → TradersPost → Tradovate.

Here are the verified 1-year stats (Mar 2025 to Mar 2026, 12 contracts):

171 trades, 52.63% win rate, Profit factor 1.704, Max drawdown $2,985 (14.65%), Net P&L ~$28,140 in 12 months, ~$2,345/month average, ~14 trades per month (not every day — only fires when setup is valid), 3-year backtest: 488 trades, 52.25% WR, Profit Factor 1.534, Sharpe ratio 2.14.

The equity curve goes up and to the right pretty cleanly. Max drawdown is small relative to returns.

Here's where I might be losing my mind:

If this holds up on funded accounts, running 5 LucidDirect 150K accounts at 12 contracts each (fully automated, same strategy), the math says I could pull roughly $92,000 net over the lifetime of those accounts before they transition to live. Total cost to set up: $2,940.

Someone also told me I should take out a $10K personal loan, put $2,940 into the 5 funded accounts and run the live account with the rest. On paper that's $120,000+ potential on a $10K loan.

I know this sounds insane. That's why I'm posting.

Here's what's worrying me:

Is a 3-year backtest on 1-minute MES data actually meaningful or am I just curve fitting to one bull market? The strategy only has MES data going back to March 2023. Is that enough? Funded accounts are simulated .Lucid could theoretically change rules, deny payouts, or shut down. They're a relatively new firm (2025). Automation risk .One bad day with a broken stop loss and a funded account is gone permanently (Direct accounts have no reset). Past performance obviously doesn't guarantee future results.

Has anyone run anything similar on prop firm accounts? Am I missing something obvious? What would you do to stress test this further before putting real money in?

Not financial advice obviously. Just trying to get a gut check from people who know what they're looking at before I do something I can't undo.Not selling anything just looking for advice among peers.


r/algorithmictrading • • Jan 07 '26

Novice New trader building a rule-based swing trading system — looking for feedback

11 Upvotes

I’m new to this space and wanted to get some feedback from people with more experience.

I’ve been building a rule-based, systematic swing trading setup using multiple scripts. All of the code has been written with the help of AI, since I’m still learning and don’t come from a coding background, but the logic and structure are things I’m actively thinking through and refining.

The system is split into separate scripts rather than one monolithic program. Broadly, it does things like: identify and rank stocks on a weekly basis using predefined rules, generate a trade plan ahead of time, and manage positions with consistent exit logic and risk constraints. Execution is still manual, but the goal is to have the decision process be as rule-driven as possible so I’m not reacting emotionally day to day.

A big part of what I’m trying to do is reduce overtrading. The system is designed to be selective, skip weeks when conditions don’t look favorable, and focus on repeatable, smaller gains rather than constant action. I also track performance and compare it against a benchmark to see whether the process is actually adding value.

I know there are limitations to this approach, especially given my experience level and the fact that the code itself isn’t hand-written. I’m mainly trying to build a solid foundation that I can improve over time rather than jumping between strategies.

For those of you who’ve built or traded systematic strategies before, does this sound like a reasonable structure to start from? Are there obvious pitfalls or areas you’d recommend tightening up at this stage?

Appreciate any feedback


r/algorithmictrading • • Dec 07 '25

Novice I just finished making my algorithm

11 Upvotes

I’m 18 years old didn’t even get my high school diploma yet and I started making an algorithm about a year ago. It was my cousin who had initial peaked my interest in trading in general and specifically algorithmic trading, he has his own algorithm that he’s had for a few years now and it does insane returns but I wanted to make my own even though I can access his. I’ve back tested for the past year fixing errors I run into ultimately coming to the conclusion that I’m happy with the result I have and I think I can’t better it until I go live and see what errors I can possibly run into.

My algorithm mainly works on the 4 hour time frame and it only works on the eurusd symbol, it uses rsi levels 30, 25, 70, and 75 as a main indication, it then detects buying pressure in the opposite direction trying to find a entry for possible reversals.

I’ve currently had it on demo accounts running for a month and the month of November it made a 9% gain on initial deposit with a 78% win rate if I can recall.

I talked to my cousin a bit about it but his devs did most of the work all he had to do was pay them, some key useful information he did tell me tho was that using the bot in Canada (where I’m currently living) is pointless because of how much the brokers spreads, commission, etc. So I’m thinking the best thing I can do is see what happens on live here and then compare how much the broker here vs how much the brokers in Dubai take commissions (he runs his algo in Dubai he told me the brokers barely take anything). Those are my only worries.

Once again I have no background in anything must a young man trying to figure stuff out and I just need some help and guidance, if there’s anything anyone can point out to me that I’ve possibly overlooked please point it out so I can look into it.

Thank you!


r/algorithmictrading • • Oct 18 '25

Brokers Best Brokers for algorithmic trading

11 Upvotes

Hey guys turned my strategy into a algo and I want to know what brokers have the best environment for algo trading, I’m based in UK and from what I’m told Pepperstone or IC markets with a ECN account?

Completely new to the world of algo trading so just want some ideas for brokers


r/algorithmictrading • • Sep 24 '25

Backtest Help With Dynamic Scaling Ideas

Post image
11 Upvotes

I’m exploring different approaches to dynamic scaling in my strategies and wanted to get some perspectives from others.

Here's one of my current Step-through back tests; however there is no scaling yet

Any scaling ideas are welcome :: just to mention though I personally trade only Futures ( so scaling for me is done in the integer of Contracts you have, never a float value or fraction shares are allowed ) Which can be difficult to take on immediate drawdown after the first few up-scales because it's initially the steepest but then gets easier.

Obviously over 5 years with a little over 5k isn't even good. However it makes since with the drawdown being as low as it is about, $500

  • Some things Ive been thinking of like; Every time when Net PnL is above 3x than current usual drawdown scale +1? Then do that every time, turn off bot if it goes below its current usual 2x drawdown?

  • A percentile approach?

  • A metric approach? Over a certain period of the past trades performances?

I’d still love to hear what scaling methods others use, even if it's fractional scaling.


r/algorithmictrading • • Sep 09 '25

Question Anyone here running live trading strategies in Python?

11 Upvotes

I’ve been working with Python to move beyond backtesting and into actual live execution, and I’m curious how others in this community are approaching it.

A few things I’d love to hear about from people who’ve gone live:

  • What brokers/APIs have you found most reliable for real-time execution?

  • How do you handle slippage and order execution speed in practice vs. in your models?

  • Any lessons learned when moving from simulation/backtest to live trading (things you wish you knew earlier)?

  • Do you keep your strategies fully automated, or do you still monitor and intervene?

I think it would be valuable to share experiences — especially for those of us who are either running live systems now or planning to deploy in the near future.

Would be great to hear what setups and approaches have actually worked for you.


r/algorithmictrading • • Jun 15 '24

What tech stack do professional algorithmic traders use?

11 Upvotes

Whether you are a beginner or a professional, what tech stack do you use as an algorithmic trader? As someone who is interested in algorithmic trading, I'm looking to get started with things. I've read somewhere that some developers prefer C++ as it's faster but I'm aware most use Python. As someone who has experience in Python, what challenges do you face?


r/algorithmictrading • • Jan 16 '21

Best up-to-date algortihmic trading in python books?

11 Upvotes

Recommendations?


r/algorithmictrading • • Nov 13 '20

There, I said it....

Post image
11 Upvotes

r/algorithmictrading • • Nov 05 '20

Quantopian team joins Robinhood?

11 Upvotes

r/algorithmictrading • • Jun 11 '14

Algorithmic trading with bitcoin - part 1

Thumbnail
wildbunny.co.uk
11 Upvotes

r/algorithmictrading • • Sep 14 '26

Question Systematizing a discretionary SMC strategy via TradingView + MCP — anyone doing something similar?

10 Upvotes

I trade MNQ futures intraday using a Smart Money Concepts (SMC) approach, and I've been moving away from a purely discretionary process by connecting an MCP server to TradingView. I "vibe-code" what I do manually on the chart every day — turning discretionary rules into code as I identify them, using an AI coding assistant to do the translation — then convert that logic into an automated bot and run it through a backtesting engine before a prop-firm evaluation.

Curious if anyone else has gone through this specific path (discretionary → MCP/TradingView → bot → backtest → prop firm), and whether a local model would add anything meaningful in that pipeline (e.g. the TradingView/backtesting step) versus just using a cloud-based assistant end to end.


r/algorithmictrading • • Aug 21 '26

Quotes Databento data quality degradation since Aug 8, 2026

10 Upvotes

Databento data quality has degraded a lot since Aug 8, 2026 after they switch their data format by moving the F_LAST sentinel from the last event record into a standalone record.

They promised identity between live streamed data and historical downloaded data. Before the switch, error rate of matching is about 0.06%, which was really good. Now the error of matching is about 7% consistently every day. This level of error makes it impossible to rely on it for anything significant.

Also, in the past, conversion from their mbo data to mbp-10 or mbp-1 data has no error as it should be, but nowadays, there are tons of errors.

All of these arise from unclear data format specification, mixing old and new format, and untested code in production.

The worst part is customer service. They claim customers should be aware of the data format change, so they are not apologetic of any of such issues. They claim they do not keep track of live streamed data, so reporting live and historical mismatch is completely ignored. I do not expect to get this level of data quality and customer service for a paid data service.


r/algorithmictrading • • Jun 06 '26

Strategy 2 months live after my backtest posts — am I just getting lucky?

10 Upvotes

Following up on my last two posts (1- backtest, 2- testing different risk settings). I'm running my first ever bot live on Hyperliquid. 100% automated.

It's been running about 2 months now, 47 closed trades. Time-weighted return is +67%, profit factor 3.46, max drawdown about -11%.

Thing is, that's way better than my backtest (PF was 1.37 there), so my honest assumption is I just caught a good stretch of market.

Sample is tiny but the strategy is also a slow one and surprisingly my friction is 20% less at live than what I have assumed at my backtest.

Two questions for people who've been doing this longer than me:

  • How many trades (or how long) before you actually trust live numbers?

  • In the next few months, what would you watch for to tell whether the edge is real or just luck?


r/algorithmictrading • • May 28 '26

Strategy HMM strategy, 3-stage OOS (2015-2026), Sharpe 1.44, MaxDD -10%. Anyone else validating regime-switching models this way?

10 Upvotes

I've been working on a multi-strategy system based on Hidden Markov Models (HMM) for regime detection. The usual problem with HMM is overfitting — fitting Markov noise instead of actual structure. Here's how we tried to mitigate that:

Validation approach:

  • Walk‑forward: 18m train / 3m test

  • Score grid: [1, 1.5, 2, 2.5, 3, 4, 5]

  • Vol‑filter: dynamic 63d window, top‑30%

  • Persistent mode: OFF (all folds trade)

  • 3 completely separate OOS periods:

    • 2022–2025 (post-COVID / tightening)

    • 2020–2026 (COVID – today)

    • 2015–2026 (full cycle)

Combined portfolio (A+B+E+K) results (100% risk):

  • Final capital (2015–2026): +608%

  • Ann. Sharpe: 1.44

  • MaxDD (balance): -10.04%

  • Max float DD (balance vs intraday): -4.52%

Yearly breakdown (Combined 100%):

YearReturnMaxDD
2015+7.3%-8.0%
2017+18.7%-5.5%
2020+30.3%-6.9%
2022+48.0%-5.6%
2023+7.9%-10.0%
2025+34.8%-6.7%
2026-1.1% (YTD)-6.2%

Scaling up to 200% / 300% keeps Sharpe stable, which suggests the logic isn't just curve‑fit noise.

What I'm curious about:

  • How do you validate regime‑switching models against overfitting?

  • Do you use similar multi‑period OOS, or different techniques (e.g., synthetic data, parameter randomization)?

  • Anyone else seeing HMM work across completely different regimes (COVID, 2022 bear, 2023-2024 rally)?

Full equity curves, WF folds, and trade log available if someone wants to dig deeper.


r/algorithmictrading • • Apr 29 '26

Strategy Automated Trading Bot

10 Upvotes

I've been building a trading bot using LLMs for the last year and running on Railway, currently in paper trading phase after finally finding profitable candidates at around 66% annual. most profitable setup from back testing and walk forward is the below

1H decides direction

↓

ATE blocks bad conditions

ATE mode uses things like

trend_strength = 0.62

macd_slope = +0.0008

atr_expansion_ratio = 1.18

chop_probability = 0.47

↓

Regime Router checks if setup is valid

↓

Weak-pair filter removes bad combos

↓

Bias favors stronger side

↓

5m finds entry timing

↓

Enter with 10% sizing

↓

Exit when 1H state breaks (fast or confirmed)

Anyone built anything similar? I've been a QA engineer for the past 16 years so everything works, just difficult finding a decent strategy so any help is appreciated


r/algorithmictrading • • Feb 12 '26

Question Things changed your bot for better

10 Upvotes

Hello guys I am trying to build my own algo trader bot for two weeks i am now testing my results on paper account using ATR,EMA Cross and VWAP for the strategy i saw good results from it and the bad ones i want to ask what do you suggest for me to improve my bot and what are the things when you did it ,it changed your bot for better
I am 2 years cpp programmer


r/algorithmictrading • • Oct 21 '25

Question How do you deploy your strategies????? I have a working strategy that I can even run live in juypterlabs but I want to make the system more self sufficient.

10 Upvotes

My question is about how should it be deployed. I designed the strategy over the past year and it is profitable both in live and back tests. I did my live tests through juypterlab and am not sure whether this is robust enough to reach the uptime and hands-off nature I am striving for. I understand that I will be monitoring it but I want a resilient system that can recover from simple reoccurring problems like IB disconnects so how should I effective deploy it.

I have asked ChatGPT and it was talking about containerizing the three main process that make up the strategy, but i am unfamiliar with any sort of virtualization or deployment at all as I only work on the development side. If anyone has any advice on how they fully automated the system that would be greatly appreciated.


r/algorithmictrading • • Sep 19 '25

Novice How hard is it to get started

10 Upvotes

How hard is it to get started ? Im talking about from scratch to finished crafted bot , and then coding it to ur rules

And then making it work with broker ?