u/fbielejec

POC: aggressive short-mode momentum strategy on 2022 crypto bear. +87% / Calmar 5.64
▲ 3 r/quantfinance+1 crossposts

POC: aggressive short-mode momentum strategy on 2022 crypto bear. +87% / Calmar 5.64

Proof of concept / experiment: A GEM regression model but shorting biggest loosers instead of going long on winners. Tuned for bear markets.

Experimental setup as below:

  • May 1 – Dec 31, 2022 data (BTC already down ~50% from ATH, Luna gone, 3AC gone, FTX about to be gone)
  • 11 Binance USD-M perpetuals -- 4 extreme fallers (SOL, AVAX, ADA, DOT), 4 moderate (BTC, ETH, LINK, MATIC), 3 outperformers (BNB, TRX, XMR)
  • $10k starting capital, flat 0.3% round-trip fees, real Binance funding rates applied at 8h cadence.

The models

GEM, sign-flipped for shorts:

  • Fit either an exponential or linear regression to each token's recent closes
  • Ranks them by the negative momentum, filters by R**2 and a momentum floor
  • Goes short on the top N most-negative tokens, weighted by their negative momentum magnitude (tokens ATR over total ATR sum)
  • 10-day rebalance cooldown

Results

Best config: lin-n1-w15 (linear, single token, 15-day window), +87.2% total return, -27.4% max drawdown, Calmar 5.64.

Long-only bear specialist from a previous post: Calmar 4.60.

But: baseline naive equal-weight short, never rebalanced: +57.7% return, -16.4% DD, Calmar 5.92

The -27% DD was one event: an ADA short squeeze, Oct 18 - 28 2022. The model entered at 100% weight on a clean 15-day downtrend, ADA bounced

Findings

The risk signals that would have flagged the squeeze, starting with funding-rate inversion, is obviously not in the OHLCV data, so the model cannot anticipate short squeezes.

Full write-up, charts, notebooks for repro:

https://blog.nodrama.io/aggressive-bear-short-gem/

u/fbielejec — 6 days ago
▲ 1 r/algotradingcrypto+1 crossposts

I've tested running an LLM-driven autoresearch loop on a quant-trading stack

Setup

Two-file pattern borrowed from Karpathy's autoresearch experiment:

  • harness.py is read-only — data loader, scoring metric, constants.
  • sweep.py is fair game — model and training loop.
  • program.md tells the agent what to maximize and what's off-limits.

Agent picks a hypothesis, edits the modifiable file, runs the experiment, scores it, keeps or reverts, repeats.

Model

  • 3-state HMM (Gaussian emissions) for regime detection.
  • 3 GEM specialist models (bull / bear / ranging).
  • Meta-allocator that soft-blends specialist portfolios when HMM confidence is below threshold.
  • ~15 sweepable parameters per specialist.

Scoring

score = annualized_return × drawdown_dampener × diversification_bonus

Plus a hard rejection on annualized return < -50% or stress-test Calmar < 0 at 1.5× the base fee.

Run

  • 437 tokens (431 from Binance + 6 from DefiLlama), 2020-2026 (included the 2022 bear), ~508K daily candles.
  • Causal walk-forward backtest with 250-day warmup. No peeking past t-1 to decide at time t
  • Phase 1: Optimize HMM hyperparameters.
  • Phase 2: Optimize per-specialist GemParams, one specialist at a time.
  • Then a verification grid.

Results

Score went from -inf (every baseline rejected under a realistic 30 bps round-trip + 1.5× stress) to 1175.2. BTC+ETH buy-and-hold scored 8.3 on the same metric.

Interesting findings

  1. Soft-blend > hard-switch. Raising hard_switch_threshold from 0.80 to 0.90 (so the ensemble almost never commits to one regime) scored +25%. The HMM's regime calls are informative but not confident enough to act on as a binary classifier. Or the Gaussian emissions are an oversimplification .
  2. All three specialists want lower R² thresholds than my priors said. Three independent sweeps, same direction of correction. Again, exponential model is probably to simplistic. Piecewise exponential over a rolling window might be an interesting future direction.
  3. top_n=1 wins in bear regimes at scale. Confirms an earlier 4-token finding on a universe ~100× larger.

Known limitation

One-at-a-time phased sweeping can't find between-parameter interactions. I'm now thinking about it.

Links

reddit.com
u/fbielejec — 14 days ago

Just ran a short experiment, tetsing how different regression models perform for GEM (momentum) based crypto portfolio selection during a real bear market (May-Dec 2022)

The Luna collapse (May 9), 3AC liquidation (June), and FTX collapse (November) all fall within this window, so it's *really* bear.

Setup: Hand-curated safe-haven universe (tokenized gold, EUR/USD stablecoins), and two competing approaches -- compounding vs linear for fitting the price momentum.

Findings:

  • The regression model choice made almost zero difference.
  • What mattered was the fitting window. Full-history fits refused to enter the market -- the strategy sat in cash for 8 months, missing oppportunities
  • At a 30-day rolling window this small experiment seems to be finding a sweet spot: +6.4% return, Sharpe 1.59, max drawdown -1.39%.
  • The winning config sat in cash for 6.5 months, then caught a EUR rally and a short gold rally, before going into EUR again - all in the final 7 weeks.

https://blog.nodrama.io/gem-bear-market-models/

reddit.com
u/fbielejec — 28 days ago