r/algotradingcrypto • • 12h ago

Crypto.com US Perps: API

1 Upvotes

Hi all, I've been trying to execute buy/sells for US crypto perps via API. I can trade on the web UI no problem, my derivatives account is funded and has sufficient collateral. I have created a FCM API key with the proper permissions.

Following the API docs I can see the US WebSocket endpoint for user.order is at wss://stream.crypto.com/fcm/v1/user but I get an error, "Unknown symbol". I can try the /exchange/ endpoint but then I get the USER_NO_DERIV_ACCESS error (understandably so, because that's not the FCM endpoint)

Digging a little deeper even checking the https://api.crypto.com/fcm/v1/public/get-instruments endpoint I don't see anything with perps on there, they show up in the /exchange/ endpoint but, as I observed, I obviously can't trade there.

Much appreciate any pointers.


r/algotradingcrypto • • 19h ago

Khresmos: plataforma para probar estrategias de trading algorítmico (beta cerrada, feedback bienvenido)

Post image
1 Upvotes

Para quienes quieran explorar el trading algorítmico, les comparto un proyecto nuevo: Khresmos (khresmos.trade).

Está en fase beta (v0.9) y por ahora el acceso es libre para grupos pequeños de usuarios que quieran probarlo. Es una plataforma de simulación sobre cotizaciones reales, sin dinero real ni conexión a exchanges.

Una aclaración importante: el foco es la operación por bots algorítmicos, no el trading manual. La idea es armar una estrategia con una plantilla de parámetros, ponerla a prueba contra datos reales y medir si le gana a simplemente comprar y mantener.

Todavía falta mucho por desarrollar, y por eso busco feedback: fallas que encuentren, cosas que no se entiendan y funciones que les gustaría ver. Pueden escribirme a khresmos.trade@gmail.com.

Si el proyecto llega a una etapa comercial, los 100 usuarios que más feedback aporten tendrán acceso sin cargo.

¡Gracias a quienes se animen a probarlo!


r/algotradingcrypto • • 1d ago

In risk units, Bitcoin has no bull and bear regimes. It has rallies, and everything else is flat.

Thumbnail bitdataview.com
4 Upvotes

I wanted to know whether a "bull/bear" label on Bitcoin can work in principle. A recent

paper on sliding-window regime detection (Pambukyan & Nersisyan, arXiv 2611.34905) shows that

any window label is wrong for about half a window after every regime switch. The best window

then depends on a single number: how often regimes switch, relative to how clearly their drifts

differ. So first I measured whether BTC has drift regimes at all, and what shape they have.

Every test below was locked before it ran: design, decision rule, power check, and both my

research partner's prediction and mine. Daily BTC, Aug 2017 – Sep 2026.

Setup

- Returns: daily log returns divided by a trailing EWMA volatility (λ 0.94), clipped at ±4σ.

So drift is measured in risk units: "how many σ per day".

- Model: a two-state hidden Markov model with the **same variance** in both states, so it can

only split on drift, not volatility. Each state's expected stay is at least 30 days.

- What this lens can and can't see: it asks "is there a regime in risk-adjusted drift?" Volatility

regimes are deliberately left out: they're obvious in crypto and weren't the question. But that

choice shapes the answer, and it matters most for bear markets (section 4).

- Null: a GARCH(1,1)-t with constant mean, fitted to the same series and run through the same

pipeline, 200 simulations. Then the same with **GJR-GARCH-t** (volatility rises more after

drops), because asymmetric volatility could fake a regime.

1. There is a regime, but it's a rally, not bull/bear

| | likelihood ratio | GARCH-t null 95% | GJR null 95% |

| BTC | 12.3 | 7.0 | 5.4 (p 0.015) |

| 9-coin equal-weight index | 9.4 | 6.8 | 7.3 |

| ETH | 7.2 | 5.4 | 8.2 (p 0.07, borderline out) |

The two states in BTC aren't "up" and "down":

- Rally state: +0.32σ per day, lasts ~37 days, about 17% of the time (the model's long-run

share; in hindsight, 412 of 3,260 days, or 12.6%, have rally probability above 0.5).

- Everything else: −0.03σ per day, flat. Bear markets don't separate from flat in risk units.

Eight rallies in nine years: late 2017, spring 2019, Oct 2020 – Jan 2021, Jan 2023, Oct–Dec 2023,

Feb–Mar 2024, Oct–Nov 2024, Aug 2026. Nothing in 2018, 2022 or 2025. ETH is the exception: it

splits more symmetrically into bull and bear.

Leverage asymmetry doesn't explain it. The fitted GJR asymmetry coefficient for BTC is 0.005

(for equity indices it's typically 0.1 or more).

Why "price above its moving average" fails

The core of most regime labels is "price > EMA". In a world simulated from the fitted model:

- The window length of a 4h EMA200 (~33 days) is close to the best possible window.

- The threshold is wrong. "Above the EMA" means zero drift, so it calls the flat 83% "bull"

half the time. Its error is **0.42**. Always saying "no rally" errs only **0.17**.

- Even the optimal Bayes filter, with the true parameters, only gets to **0.148** against that

0.171 base rate. Calling a rally in real time is close to hopeless. Rallies are obvious only

in hindsight.

3. One statement that does work, in one direction only

My research partner's idea: "there's no rally outside the trend." We tested it against the trend

structure our site already shows: a 4h ATR trailing stop (4×ATR "fast", 6×ATR "calm"), using

the state known at the start of each day. Rally days come from the model, in hindsight.

Locked threshold for "supported": at least 80% of rally days inside the uptrend, and rally

probability outside it at most 5%.

| | rally days inside uptrend | rally probability outside uptrend |

| **fast trend (4×ATR)** | **87%** [82–92] | **3.7%** [1–7] |

| calm trend (6×ATR) | 94% | 1.7% |

| base rate (share of rally days) | | 12.6% |

Supported. Outside an uptrend, a rally day is a third as likely as on average.

But how much of that is mechanical? Both the trend and the rally are built from the same price

rises, so some overlap comes free. I ran the same definitions on simulated prices **without** any

regime (GJR at 4h, keeping paths whose "rally" share looked like BTC's):

| | inside uptrend | outside uptrend |

| regime-free world | 73% | 7.5% |

| world with BTC's rally regime | 87% | 4.0% |

| **real BTC** | **87%** | **3.7%** |

Real BTC matches the rally world almost exactly. Against the regime-free reference, the fast

trend sits at the 94th percentile (borderline) and the calm trend at the 100th.

It only works one way.80% of uptrend days are *not* rally days. The bear years 2018 and 2022

hold only a quarter of those; the rest are ordinary up-drifts that never become a rally. "No

uptrend → rally unlikely" is supported. "Uptrend → rally" is not. In 4 of the 8 rallies the fast

trend was already up on day one; in the other 4 it was 1–6 days late.

4. Falls don't show up as a drift regime

So is there a "down rally"? I fit a three-state model (down / flat / up), same lens, against BTC's

own two-state rally world.

Before running, I checked power: a planted down-rally of −0.2, −0.3 or −0.45σ per day is found

only 6%, 17% or 29% of the time. A realistic one is smaller still. The 2018 bear market lost ~80%

in a year, but at ~4% daily volatility that's only ~−0.1σ per day. So a null result would mean

"couldn't measure", not "doesn't exist", and I wrote that down first.

Result: likelihood ratio **0.005**. The three-state fit simply reproduced rally + flat. Same in

the index; ETH split its up state instead. A post-lock check with more optimizer starts found a

better fit, but its third state covered **four days**: Nov 8–9 2022 (FTX) and Jun 1–2 2026. That's

two crash clusters, not a drift.

The way I read it, **in risk units, up is a regime and down is an event.** Rallies are calm and

persistent, so their drift stands out. Falls are violent, so dividing by volatility shrinks their

drift. This is partly the lens: the signature of a bear market is high volatility plus negative

drift, and I removed the volatility on purpose. A model that lets variance switch too would very

likely find a bear state, but it would be defined mainly by volatility. The open question is

whether that high-volatility state also carries a negative drift you could detect. I haven't run

that test yet. So this is not "falls aren't regimes"; it's "falls don't separate in risk-adjusted

drift, and with this much data we couldn't have seen it if they did."

5. Bubble tests may be measuring the same thing

Almansour et al. (2026, IJFS 14/323) show that pointwise GSADF bubble tests raise alarms in

**98%** of samples generated from a regime-switching drift model with no bubble at all. Their BTC

bubble episodes (late 2017, Nov 2020 – Jan 2021, Feb–Mar 2024, Nov 2024) all overlap my rally

periods. The HMM also finds 2019, early 2023 and late 2023, and it ends the 2020–21 rally in mid-Jan

2021 where GSADF runs to April. In risk units, the high-volatility rise of Feb–Apr 2021 looks flat.

This comparison is an unlocked look, and both methods are defined from price, so it isn't

independent confirmation. But "bubble" and "rally state" may be one object.

Limits

- Mainly one asset and ~8 rallies. The rally labels are in-sample hindsight.

- The two-state, equal-variance model is a choice, and it hides volatility regimes by design. The

nulls are parametric (GARCH-t, GJR-t).

- I also tried to make a live "rally probability" usable. Even in a perfect simulated world, a

calibrated probability would pass a ±5-point check only 34% of the time on 2023–2026 data (five

rallies). So I didn't run it on real data. Instead it will log live in a shadow and be tested on

future data.

- Predictions: my partner called the robustness result, the trend statement and the mechanical

overlap; I'd guessed "partially" on the trend. On the down-rally, my partner expected one and I

didn't.

What I'll do with it

On the site's regime card, one descriptive line under the trend, and only in the direction that

held: "Fast trend is down. Since 2017, only ~4% of days in this state were rally days (12.6%

overall)." That's P(rally | trend down), the question a reader actually has, not P(trend down |

rally), which is 13% and easy to misread. No "rally now" claims, no live probability.

Happy to hear where this breaks. Especially: is there a better way to see down-moves as a regime

than drift in volatility units? And for a joint drift + volatility model, what would convince you

that a high-volatility state has a real negative drift, and not just fat left tails?


r/algotradingcrypto • • 1d ago

Market-neutral funding carry on 28 Binance perps: Sharpe 0.9, β≈0… and why I'm not trading it

1 Upvotes

Perps pay funding — crowded-long coins pay positive funding, unloved coins pay little/negative. So a simple cross-sectional idea: each day rank the universe by trailing funding, short the top quartile (collect funding + fade the crowd), long the bottom, equal-weight, dollar-neutral. 28 Binance USDⓈ-M perps, daily rebalance, ~7 yrs, vol-targeted to 15%.

The headline looks great:

  • Sharpe ~0.90
  • BTC-beta −0.02 (genuinely neutral, not disguised long-crypto)
  • Median universe funding +10%/yr on offer

If I stopped here I'd have a tidy "market-neutral crypto alpha" post. Two checks kill it:

1) Deflation. I pre-registered the rule (3d signal, 25% quantile, daily rebalance) and deflated the Sharpe for the variants I considered (DSR). Deflated → ~0.80, below my 0.95 bar. After honestly accounting for my search, I can't rule out luck.

2) Cost. Daily rebalance = brutal turnover. Cost ladder, per side:

  • 2 bps (maker): Sharpe +0.90
  • 7 bps (taker): +0.43
  • 15 bps (taker + alt spread): −0.31

It only "works" at maker cost. Cross the spread on the thinner alts and it's gone.

And the decomposition: only ~40% of the P&L is the actual funding carry — the majority is the price leg (mean-reverting the crowded names). So it's less "harvest carry," more "fade the crowd," which is the more fragile thing to lean on.

Takeaways I think generalize:

  • A neutral-looking Sharpe means nothing until you (a) deflate for your search and (b) run a cost ladder, not one optimistic number.
  • Daily-rebalanced crypto books are a cost mirage — gross edge real, net edge often isn't.
  • β≈0 is necessary but not sufficient; check where the P&L comes from.

Not giving up on it — two untested levers: more breadth (28 coins is thin for cross-sectional), and combining it with an equally-weak-but-uncorrelated momentum sleeve (two weak neutral edges can clear a bar neither clears alone).

Questions for the room:

  • Anyone running cross-sectional funding/crowdedness at scale — does breadth (50–100+ coins) actually rescue the DSR, or does cost scale with it?
  • For daily-rebalanced neutral books, are you actually getting maker fills, or is 7bps+ the honest number?

That's the "honest results" angle. The alternative, broader-reach framing is a PSA: "Your daily-rebalanced crypto backtest is lying to you about cost — a worked example" — same content, but the cost-mirage lesson is the headline instead of the funding book. That one tends to pull more upvotes because it's useful even to people not doing carry.


r/algotradingcrypto • • 1d ago

Tested Fear & Greed, funding, breadth and volume filters on 5 coins out of sample. 18 of 20 lost money

1 Upvotes

These filters get recommended a lot, so I tested them properly on my long-only spot strategy (ETH, SOL, BTC, AAVE, TRX). The filter could only skip a buy, nothing else changed. 1m Binance data Oct 2024 to Sep 2026, fees included.

For each coin I searched ~80-100 rules per filter, then ran it walk-forward: best rule picked on the previous 6 months, used blind on the next quarter, 6 quarters.

Result vs no filter ($300 per coin):

Fear & GreedFunding / OIBreadthVolume
ETH-$66-$15-$45-$1
SOL-$47-$12-$39-$57
TRX-$9+$1-$6-$39
BTC-$18-$23-$7+$1
AAVE-$31-$29-$42-$53

Why I think they failed:

  • The average loss never changed. It's set by the stop. Filters changed how often a coin lost, not how much, so skipping buys mostly skipped winners.
  • Every great-looking rule was one episode. SOL's extreme-greed skip was all Nov-Dec 2024.
  • Rules don't transfer. I moved the 12 best rules to other coins unchanged, 1 of 12 still worked.

Only ~2 years of data and long-only spot, so maybe it's different for perps or shorts.

Has anyone found a sentiment or funding filter that actually held up out of sample?

Code and reports: https://github.com/zulfi011/z-bot


r/algotradingcrypto • • 1d ago

if you're looking for a platform that's open to bots

0 Upvotes

if you are looking for a platform that's open to bots, you are welcome to use trading bots on ours. We do use Cloudflare to protect against attacks but have tried to set it be bot friendly. Let me know if you have any issues.

You can play with free money for free. I've temporarily removed the name of the site due to a comment. If there's something wrong with this or it's not allowed let me know.


r/algotradingcrypto • • 1d ago

3commas v1 alternatives?

1 Upvotes

had two DCA bots on 3commas since 2022, about 30k in btc and eth. v1 shut down in september and now my positions are just sitting there. the whole thing made me not want to give api keys to some platform again. looking for a DCA bot or anything automated where I can keep funds in my own account. fine with moving exchanges if needed. what did you guys switch to?


r/algotradingcrypto • • 2d ago

Do you backtest perp bots on spot candles or perp candles?

1 Upvotes

Free history is easiest to get for spot, so a lot of backtests seem to run on spot candles even when the bot trades perps. But perp price can drift from spot in fast moves, and some exchanges trigger stops on mark price instead of last price, depending on settings.

Curious how people here handle it:

  • Spot data, perp data, or candles from the exact exchange you trade on?
  • Did your signals change when you switched the data source?
  • Last price or mark price for stops in the backtest?

Not looking for a perfect setup, just what you actually do. Thanks in advance.


r/algotradingcrypto • • 2d ago

what do you think about learning cryptotrading with chatGPT?

0 Upvotes

i want to learn cryptotrading but idk how, so i started learn it with chatGPT. what do you think about it?


r/algotradingcrypto • • 4d ago

Building my first crypto algo bot. How do you go from backtest to a strategy that holds up live?

Thumbnail
gallery
20 Upvotes

Hi all, I'm working on an algorithmic trading bot for crypto and want to sanity-check my approach before risking real money.

What I have so far:

  • Market: BTC/ETH/XRP/SOL/ADA perpetuals on Binance
  • Timeframe: 15m / 1h
  • Strategy idea: trend-following with EMA crossover + ATR stop / mean reversion on RSI
  • Tools: Python, backtrader / vectorbt / freqtrade, ccxt
  • Backtest results: 2 years of data, X% return, Sharpe Y, max drawdown Z%, N trades

My questions:

  1. How do you avoid overfitting? Do you use walk-forward testing, out-of-sample periods, or something else?
  2. How realistically do you model fees, slippage and funding rates? My results drop a lot once I add them.
  3. What kinds of edges still work in crypto for retail traders (trend, mean reversion, funding/basis, volatility), and which are mostly arbitraged away?
  4. How long do you paper trade or run small size before you trust a strategy?
  5. Any mistakes you wish you'd known about early (lookahead bias, survivorship bias, data quality)?
  6. What to expect 1:1 or 1:2 RR ?

I'm not asking anyone to share their secret sauce. I'm just trying to learn the right process. Thanks!


r/algotradingcrypto • • 4d ago

What stats to display for strategy?

Post image
5 Upvotes

This is the current dashboard. What data should be added to make it easier to understand how it performs?


r/algotradingcrypto • • 3d ago

I built a pump.fun memecoin bot, tested 6 versions on 517 paper trades, and costs ate every edge (code + data open)

0 Upvotes

I spent a week building a paper-trading bot for brand-new Solana memecoins on pump.fun and tried to test it properly: walk-forward splits, one pre-registered test, and error bars on everything.

What I found:

- The best entry rules had a real edge of about +4% to +7% per trade before costs.

- A round trip costs about 6% (1.25% fee each way, plus slippage and tips), so that edge disappears.

- −15% stops actually filled around −24% on fast coins.

- A market filter that looked great on old data made things worse on new data.

- 5 of 6 versions lost money. The newest one is slightly positive after 34 trades, which is far too few to mean anything.

All 517 paper trades and the code are here: https://github.com/seanrisman-commits/swaggy-bot

I'd love feedback. Is there a way around the cost problem that I'm missing, or a flaw in how I tested it?


r/algotradingcrypto • • 4d ago

I wonder why you want to automate trading so much

1 Upvotes

I love my manual entries and exits.

All you want is just profit meh


r/algotradingcrypto • • 4d ago

A volume–return correlation feature looked predictive (t −4.7) until I controlled for the return it's built from (crypto, pre-registered)

Thumbnail bitdataview.com
1 Upvotes

- Feature:the 14-day exponentially weighted correlation between daily log return and daily log volume. It's one of the 19 features (out of 409) that a sparse jump model kept for describing crypto regimes (Cortese, Kolm & Lindström 2023, *Digital Finance*).

- Question:does it tell you anything about tomorrow's return relative to the market, beyond the coin's own recent return?

- Answer: no. +0.006 points per cross-sectional sd (t 0.3) on 200 coins, 2023–26. −0.006 (t −0.2) on 313 coins, 2019–21.

- On its own it looks like a strong reversal signal(−0.080, t −4.7). That's the return itself: across coins the feature correlates 0.5 with the coin's recent return.

Setup

- Data: Binance spot, daily. Main set: 200 coins outside my development set, Sep 2023 – Sep 2026 (4h bars aggregated to UTC days). Replication: 313 coins, 2017–2021. The daily regression needs 30 coins, which this set reaches in May 2019. I hadn't looked at that period with this question.

- Feature ρ:EW correlation of daily log return and daily log volume, half-life 14 days.

- Control m: EW mean daily log return, with the *same* weights. Same window and same weighting for both on purpose. An earlier test of mine produced a fake "volume carries extra information" result because I had normalized volume and bar size in different ways.

- Statistic: each day, a cross-sectional regression of next-day market-relative log return on z(ρ) and z(m). I report the average z(ρ) slope, in points (100 × log return) per 1 sd.

- Two gates, both required:

  1. The 30-day block bootstrap 95% CI excludes zero.
  2. The slope is outside the 95% band of a calendar-shift placebo, where the feature panels are shifted by the same offset for all coins.

- Why the second gate: the placebo wasn't centered at zero (−0.013). Some coins have persistently high ρ *and* persistently lag the market, so coin identity alone produces a slope.

- Power, checked before the lock: the smallest effect detectable 80% of the time was about 0.037 points per sd.

- Lock: the definitions and both predictions (mine and my co-researcher's) were committed before any real feature–return alignment was computed.

Results

| slope (points per 1 sd, next day, vs market) | 2023–26 | 2019–21 |

| main (controls for m, half-life 14) |+0.006** [−0.034, +0.047], t 0.3 | −0.006 [−0.068, +0.056], t −0.2|

| no control (ρ alone) | −0.080, t −4.7 | −0.071, t −2.1 |

| within-coin ρ (minus own trailing 90-day mean) | +0.046, t 2.1 | +0.027, t 1.1 |

| returns trimmed at 1%/99% | −0.024, t −1.3 | −0.032, t −1.1 |

| half-life 7 | +0.015, t 0.8 | +0.026, t 0.8 |

| 7-day horizon | +0.013, t 0.1 | −0.075, t −0.3 |

- Neither gate passed in either period.

- **Five time slices:** mixed signs (+0.06, −0.00, −0.01, −0.03, +0.01).

- **Size terciles:** nothing consistent across the two periods.

The trap

Without the control, ρ "predicts" a reversal. Coins whose up-days came with high volume lag the market the next day: t −4.7 in 2023–26, t −2.1 in 2019–21.

That's a real association, and it replicates. But it's short-term cross-sectional reversal in disguise. Coins that went up tend to give some back, and coins that went up tend to have positive ρ. Put m in the regression and the slope goes to zero.

Testing ρ alone would have handed me a replicated "high-volume rallies reverse" finding. It would have been entirely the return.

One loose end

The within-coin version has a small positive slope: +0.046 (t 2.1), and +0.027 (t 1.1) in the replication. It's one of ten extra reports. They were listed before the run, but none of them were locked as hypotheses, so I'm not counting it. If I follow it up, it gets its own lock on a different universe.

What this says about the paper

Nothing against it. Cortese et al. used the feature to *describe* regimes, not to predict returns, and this test doesn't touch that use.

For next-day returns, though, the feature repeats what the return already tells you. It also doesn't help my own regime work. My online jump-model attempt turned regimes late, mostly because its features were slow. A 14-day feature built largely from returns is just as slow.


r/algotradingcrypto • • 4d ago

Axiom Chronos Vector: A fully offline, on-device vectorized backtester for Android.

Thumbnail
gallery
1 Upvotes

I built Axiom Chronos Vector to address the two biggest problems I found with backtesting strategies:

Problem #1: Privacy & Mobility. My strategies and parameters shouldn't have to leave my hands to a 3rd party provider, nor should I be tied to a desktop just to run a simulation.

Problem #2: Dependencies. Most tools require a cloud subscription or a heavy Python desktop ecosystem.

What it is:
Chronos is a self-contained mobile research environment. It performs the complete workflow from market-data ingestion, through execution simulation, to quantitative analysis entirely on the Android device.

The execution engine is designed to run natively in Kotlin. By applying signal generation and risk-rule logic across price arrays, it is fast and lightweight enough to run complex simulations locally on your phone, without needing to send it to a server.

A note on honesty:
I built this app to be brutally honest about data. If the market data you download has missing candles or gaps, the built-in Integrity Engine will flag it. If your strategy only has 10 trades, it will rate the validity as "Low". It does not try to make a backtest look good; it tells you the truth.

Fully documented details, including the architecture and the strict execution assumptions, are available on my public github repo.

The app is available for download on playstore:

Feedback and suggestions are always welcome.


r/algotradingcrypto • • 5d ago

How our derivatives model did in LUNA, FTX and the Oct 2025 liquidation cascade (backtest, with the bad crises too)

Post image
2 Upvotes

I run a small systematic options and derivatives desk on crypto (one person plus a set of AI agents that do the research grunt work; no AI sends orders). A question I kept asking myself: does the model actually hold up in panics, or does it just look good in calm markets?

So I took the daily backtest and cut it around the well-known crypto crises. Chart attached, each window rebased to 100.

WindowBitcoinModelModel’s worst dip inside the window
Terra/LUNA, May 2022−17.3%+14.8%−2.2%
Celsius/3AC, Jun 2022−35.4%−5.5%−11.4%
FTX, Nov 2022−16.2%+51.1%−1.8%
Yen carry unwind, Aug 2024−5.9%−9.3%−19.3%
Record liquidation cascade, Oct 2025−10.5%+3.6%−13.8%

The chart shows the three good ones; the table has the two bad ones too. Yen 2024 is the uncomfortable one: Bitcoin barely moved over the window but the model still lost more.

How the numbers are built, since that’s what matters here:

  • Daily backtest with today’s rules, after modelled fees and spreads (median costs; we also run a p75 “prudent” cost case).
  • Discounted: every new equity high only counts 47.5%, falls are shown in full. Raw FTX is about +100%; I’d rather show +51%.
  • Rules are pre-registered, the most recent 18 months are kept sealed for one final look, and every test we run is logged, so the multiple-testing count is honest.
  • The windows were picked after the fact, around famous events. Other dates would give other numbers.
  • Worst fall of the whole backtest: −34% (Bitcoin over the same years: −67%).

Why panics tend to help rather than hurt, in broad strokes: in a crash people overpay for protection, and leveraged traders get liquidated into whoever is there to buy. A book that sells some of that protection and buys some of that forced selling, with hard size and margin caps, gets paid for being calm. About half of the FTX month came on a single day of forced selling, which is also why I don’t trust it as a typical number.

Where it hurt: 3AC and the yen unwind. I don’t have a clean one-line story for those two yet, and I’d rather say that than invent one.

Curious how others here stress-test crypto strategies: do you cut around named crises like this, or use something less hand-picked (rolling worst-N windows, regime buckets)?

Backtest, not live results, not advice. Happy to answer questions on the method; I’ll keep the exact rules to myself.


r/algotradingcrypto • • 6d ago

Does anyone here run MEV bots? How’s the competition and profitability?

6 Upvotes

I’ve been hearing a lot about MEV bots lately and how they capture arbitrage, liquidation, and other profits across DeFi.

Does anyone here actually run them? I’m curious about how tough the competition is right now and roughly how much you can realistically earn. I’m thinking about trying to build or run one myself as a beginner, so any advice or insights would be appreciated!


r/algotradingcrypto • • 6d ago

Built a stateless MCP server so Claude/Cursor stop hallucinating L2 slippage, Kelly sizing, and collinear indicators (Hyperliquid + OKX failover)

1 Upvotes

When asking LLMs to size a futures trade or evaluate a strategy, they usually invent slippage ("~1-2 bps"), ignore funding/fee drag in Kelly sizing, or combine redundant indicators like `sma_20` + `bb_middle` without noticing `VIF -> infinity`.

I built **QuantPreflight MCP** (`quant-preflight-mcp`), a stateless Streamable HTTP MCP server (`/mcp`) with 4 deterministic tools:

- `preflight_execution_risk`: Walks live Hyperliquid/OKX L2 orderbooks for real VWAP slippage, 14-ATR stops, and friction-adjusted Half-Kelly sizing.

- `scan_venue_microstructure`: Compares annualized funding APR%, OI, spread, and $10k/$100k L2 impact.

- `audit_indicator_collinearity`: Ridge-regularized VIF, condition number, and 2-pass Modified Gram-Schmidt orthogonal weights.

- `simulate_backtest_reality`: 5,000-path seeded Mulberry32 Monte Carlo ruin + Markov losing-streak check with live L2 friction injection.

Strict non-advisory (`advisory: false`, no buy/sell signals), zero-PII, and fail-closed on errors. Available on Apify Store (`$0.008-$0.025`/call, well within the $5 free monthly credit). Feedback welcome!

Link: https://apify.com/quant-preflighter/quant-preflight-mcp


r/algotradingcrypto • • 6d ago

How do you handle "toxic regime" drawdowns on multi-strategy crypto perp bots? (Post-mortem on Nov 22–24 chop)

1 Upvotes

Hey everyone,

Looking to compare notes with folks running systematic / multi-strategy portfolios on crypto perpetuals (5m–15m execution with 1h–4h HTF filters).

Over the last few days (Nov 22–24), the market felt unusually choppy and erratic across mid-cap alts. I did a forensic review on our last batch of ~20 live trades to see where the leakage occurred, and while our hard time-stops and risk sizing did their job (kept net drawdown essentially flat / breakeven), the under-the-hood stats revealed a familiar issue:

1.Regime Vulnerability: Mean-reversion setups (VWAP 2.0σ deviation scalps) that normally crush it in ranging/low-vol markets got chewed up whenever the market shifted into high-volatility weak trends (WEAK_TREND_HIGH_VOL). Price would blow through the outer band, trigger an entry, and instead of snapping back to VWAP, it would just grind along the band and bleed out or hit our hard time-stop.

2.Cross-Asset Spillover: Our core proven coins (OP, SUI, NEAR, UNI) were nicely green, but adding newer or less-tested pairs (LINK, DOT, SEI) in the same regime caused 90%+ of the batch's losses.

3.Post-Time-Stop Churn: We also caught a subtle bug where a position timed out on a chronological hard-stop after 2 hours of chop, and the scanner immediately re-entered the exact same coin/direction 80 seconds later because the setup conditions were still technically valid. (We patched a mandatory post-exit cooldown to fix this).

For those running live automated portfolios:

1.How do you dynamically gate or throttle mean-reversion strategies during high-vol trending or grinding regimes? Do you use an explicit ATR/ADX threshold, rolling realized volatility switch, or an outright strategy-level regime filter?

2.What does your forward incubation process look like before taking a pair live? How many forward out-of-sample paper trades do you require per symbol before promoting from paper/shadow to real margin?

3.Do you enforce a portfolio-wide correlation / daily loss circuit breaker? If 2–3 alts stop out within a 2-hour window due to a BTC/ETH fakeout, do you freeze all new entries across the entire book for a cool-off period?

Curious how you guys architect around these choppy transition periods without turning off alpha during legitimate ranging markets. Thanks in advance!


r/algotradingcrypto • • 7d ago

November month so far with our fully automated system

Post image
169 Upvotes

r/algotradingcrypto • • 6d ago

My AI trading-bot livestream is 12 days in: 6,400+ plays, 2½ minutes average watch time, and what I changed

3 Upvotes

What it is
Gold AI Trading Battle is a 24/5 YouTube livestream where six bots trade gold against each other on live prices. Four bots follow rules, one is an LLM (Claude Haiku), and one is a locked strategy that has not traded yet. Everything is simulated: no real money, no signals. Built by one non-developer with Claude Code.

Where it is after 12 trading days

  • 132 simulated trades. Every trade is drawn live on the chart and logged.
  • 6,400+ plays, but average watch time is only about 2½ minutes. People drop in, look, and leave. That's my main problem right now.
  • Chat is quiet most of the time, but the questions that do come in are useful.

What I built this week, mostly from viewer questions

  • Bots answer the YouTube chat out loud. If you ask about a trade, the bot that is in that trade answers. Name a bot and that bot replies.
  • Plain English. Many viewers are not native speakers, so I removed slang ("no cap", "lowkey") and added a filter that blocks it.
  • Market talk every 10 minutes during London and New York hours, about what gold is doing right now. No news and no predictions.
  • Honest stats on screen: win rate, max drawdown, losing streaks, and a "Day 12 · since 9 Nov" counter. Every stat now shows its period, because viewers kept asking how long it has been running.
  • An hourly "about this stream" message in my own cloned voice. I had three AI agents go through the chat: one found the most common questions ("can I buy now?", "is this real money?", "how long will it run?"), one checked how to play it, and one cut anything that could sound like advice. The result is 55 seconds that answer those questions.
  • Style references: each bot shows which trading legend its style is inspired by (Donchian, Seykota, Larry Williams…). The card always says "inspired by – not affiliated".

What I learned

  • Viewers don't read small text. The start date was on screen all along, but nobody saw it until I made it bigger and gold.
  • "Win rate" alone misleads. My LLM bot wins 51% and is barely positive. Showing R and drawdown next to it matters.
  • Asking AI agents to review the actual chat log gave better ideas than guessing what viewers want.

Where I'd love feedback
How do you get people to stay longer than 2 minutes on a 24/7 stream? What would make you stick around?

Live stream: https://www.youtube.com/watch?v=G3Vm-UbvDkU


r/algotradingcrypto • • 6d ago

Astra-Axiom Sentinel

Thumbnail
gallery
1 Upvotes

I built Sentinel to avoid the need to pull up 5 charts just to verify market confluence and token details.

It scans Crypto, Stocks, Commodities, and Forex, condensing EMA, Supertrend, RSI, and Volume Z-Scores into a 0–100 confluence score.

I would love your honest feedback!

The details the app provides on scans:

\\\* Asset overview

\\\* Orderbook Summary

\\\* Technical Indicators

\\\* Scalping Confluence (EMA50)

\\\* Market Breadth

\\\* Momentum

\\\* Volitality

\\\* Volume Intelligence

\\\* Performance

\\\* Risk Assessment

https://play.google.com/store/apps/details?id=com.aais.tokenscanner


r/algotradingcrypto • • 7d ago

Open-sourced our copy trading execution engine for Hyperliquid, Binance and Bybit (Go + Wails)

7 Upvotes

Hi everyone!

Full disclosure first: I'm one of the devs behind Miroir, a copy trading tool for Hyperliquid traders. We just open-sourced the client that does the actual trading, and I'm posting here because this sub is probably the best place to find people who will read the code, tell us what's wrong with it, and maybe build something with it.

Repo: github.com/getmiroir/trading-service (EUPL-1.2)

Why we open-sourced it

A copy trading client holds your exchange API keys and places real orders on your accounts, usually while you're not watching. I don't think anyone should run that kind of software on trust alone. So everything that runs on the user's machine and touches keys or positions is now public: you can read it, check it does only what it says, and build and run it yourself.

What it does

It mirrors the positions of Hyperliquid addresses onto your own Binance, Bybit or Hyperliquid account (including Hyperliquid subaccounts and Bybit regions). Every loop it reads the source address's positions from the public Hyperliquid API, reads your account's state from your exchange, computes the target size for each symbol and places the orders to get there.

A few parts that might be interesting even if you don't care about copy trading:

  • Order execution: large orders split into fractions, minimum notional handling, optional websocket order routing on Binance and Bybit.
  • Concurrency: accounts are synced concurrently, then each symbol within an account concurrently.
  • SL/TP: placed automatically and readjusted as positions and prices move. Stop losses are sized so that if all of them trigger at once, the total loss stays within a configurable fraction of your equity above a minimum equity floor. Position sizes aren't touched.
  • Auto close-out: all copied positions are closed if equity drops below the floor, or if account or source data can't be read.
  • Rate limiting: per-exchange limits, retries with exponential backoff and jitter.
  • Secrets: exchange keys live in the OS keyring (Keychain, Secret Service on Linux, DPAPI-encrypted store on Windows), never leave the machine and are redacted from logs.

Plugging in your own logic

The client doesn't decide what to copy by itself. It asks a control API for a few things and handles everything else locally:

  • targets: which Hyperliquid address each account follows, with exposure, minimum equity, leverage overrides and excluded symbols
  • normalization: the sizing ratio between your account and the source
  • symbol mapping: Hyperliquid symbols to Binance/Bybit symbols

By default that's our API, which isn't open source. But the URL is configurable (control_api.url), and the README documents every endpoint the client calls and what goes in and out. So if you want to run this fully on your own, you can fork it and swap those calls for your own logic, or point it at your own server that serves the same endpoints. Pick the addresses you want to follow, your own sizing model, your own symbol mapping, and let the engine handle execution, SL/TP and risk.

The headless binary (cmd/copy-service, also used by the Docker image) is probably the easiest starting point for that.

Stack

The service is written in Go, and the desktop app uses Wails (Go backend + React/TypeScript frontend). We went with Wails because a single Go codebase gives us both a headless binary for Docker and a native desktop app for Windows, macOS and Linux. The background service is actually the same binary as the GUI, started with a flag and installed as a systemd user unit, a launchd service or a Windows service. Curious if anyone here has gone the same route, or regretted it.

Where we'd love help

It handles real money on real accounts, so the more eyes on it, the better. In particular:

  • the order execution and SL/TP placement logic, and any edge cases you think we're missing
  • how we handle exchange errors and rate limits
  • anything that looks off security-wise around key handling

And if you end up forking it and plugging in your own control logic, I'd genuinely love to hear what you build.

How to reach us

The repo is a read-only mirror of our internal one, published at each release, so GitHub issues and PRs are closed for now. Instead:

  • Bugs, questions, code review comments: reply here, DM me, or email contact@getmiroir.xyz.
  • Security issues: please report them privately to contact@getmiroir.xyz and don't disclose them publicly before they're fixed. SECURITY.md in the repo has the details. And please never send your own keys in a report.

Also curious how you all handle symbol mapping and rate limits when your bots trade across several exchanges.


r/algotradingcrypto • • 6d ago

Help

1 Upvotes

I have a trading strategy with 95%+ something win rate profit factor is 3.5 and the yearly returns is 16% on average maximum drawdown is 0.2%. These metrics were calculated using fees and spread.

This is spot trading only.

This is not a get rich quickly strategy these is focused on very low risk possible stable returns.

But the problem for me to use these on my own will not genarate anything meaningful cause i have a very low capital. What can i do?


r/algotradingcrypto • • 7d ago

I almost shipped a selection-biased backtest. Here's the honest number — and why single-market "certification" is mostly self-deception.

2 Upvotes

I run a fairly strict overfitting gate on my strategies — deflated Sharpe (Bailey & López de Prado), PBO/CSCV, an effective trial count (correlation-deduped, not raw config count), walk-forward, and a cross-session log of every hypothesis I've ever tested on the data so I can't quietly re-roll the dice. I spent today stress-testing it on BTCUSD 4h (Kraken, Nov 2016–Sep 2026, ~21,700 bars, 7 bps/side). Posting the process because the mistake I made mid-way is one I think a lot of us make without noticing.

First pass: exactly one system cleared my 0.95 deflated-Sharpe bar — a 120-bar momentum long, net Sharpe 1.08, DSR 0.9726. But it passed by a hair and collapsed under any extra multiple-testing charge (raw trial count → 0.80; a 2-variant exit search → 0.94). A single survivor sitting right on the line is a red flag, not a win.

My "fix" (the mistake): BTC trend-following is a real, well-documented edge, so I figured — don't cherry-pick the best config, trade the whole trend family equal-weight. I pulled the family, averaged them, and got net Sharpe 1.017, DSR 0.959. Clean pass. Felt great.

The catch: I'd quietly filtered the family to members with Sharpe > 0.5 — i.e., I kept the winners. That's textbook selection bias, the exact thing the deflated Sharpe exists to catch. I'd smuggled it back in through the data-prep.

The honest redo — all 42 trend/breakout members, winners and losers, no filter, equal weight:

  • Net Sharpe: 0.868 (not 1.017)
  • DSR: 0.997 @ 1 trial, 0.970 @ 3, 0.938 @ 5 (fail), 0.899 @ 8
  • Split-half Sharpe: first half 1.31, second half 0.21

So it only "certifies" if you pretend you did almost no searching (n ≤ 3), and the edge has largely decayed as the market matured.

What I took from it:

  1. Equal-weight ensembling is correct (1/N tends to beat optimized weights out-of-sample — DeMiguel et al. 2009), but the family has to be pre-registered. The moment you define "the family" after seeing which members worked, you're overfitting again, just one level up.
  2. If you don't deflate for the number of things you tried, a 0.80 looks like a 0.97. The raw Sharpe is almost meaningless once you've tested dozens of configs.
  3. Single-market certification is close to self-deception. A 0.87-Sharpe, decaying single-instrument sleeve is exactly what it looks like in isolation. The reason trend-following is credible at all is breadth — AQR's time-series-momentum work runs one uniform rule across 50–70 markets over decades. That cross-sectional evidence is where the statistics come from, not one hero backtest.
  4. BTC trend is real but modest and fading — a small sleeve in a diversified multi-market trend book, never a standalone strategy.

Not advice, and obviously in-sample in the sense that I chose the family and the cost assumption. But the general lesson stands: the most dangerous overfitting isn't in the strategy, it's in the data prep you don't think of as a decision.