8-k-scanner
Scan SEC 8-K disclosures across a single ticker or a watchlist using Massive's pre-parsed disclosure taxonomy. Groups the underlying rows by filing (one 8-K…
Estimate the Hurst exponent for a single ticker's daily log returns using rescaled-range (R/S) analysis, and classify the series as mean_reverting (H < 0.45), random_walk (H in [0.45, 0.55]), or trending (H > 0.55). Reports per-block R/S values and a block-bootstrap confidence
$ npx -y skills add rgourley/quant-garage --skill hurst-exponent --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/hurst-exponentContext preview
The summary Claude sees to decide when to auto-load this skill.
Estimate the Hurst exponent for a single ticker's daily log returns using rescaled-range (R/S) analysis, and classify the series as mean_reverting (H < 0.45), random_walk (H in [0.45, 0.55]), or trending (H > 0.55). Reports per-block R/S values and a block-bootstrap confidence
name: hurst-exponent description: Estimate the Hurst exponent for a single ticker's daily log returns using rescaled-range (R/S) analysis, and classify the series as mean_reverting (H < 0.45), random_walk (H in [0.45, 0.55]), or trending (H > 0.55). Reports per-block R/S values and a block-bootstrap confidence band around H. Companion to pairs-scanner: pairs handles two-name cointegration, hurst handles single-name persistence. Answers "is this name a mean-reversion setup or a momentum setup?" Requires Stocks Basic. Runs on the free tier.
You hand over a ticker. The skill pulls 2 years of daily closes, computes log returns, runs R/S analysis across a log-spaced set of block sizes, and fits `log(R/S) = c + H * log(n)` by OLS. H is the slope. Classifies the series based on where H falls and adds a bootstrap confidence band so the reader can judge whether the classification is robust.
centerline. Pair strategies, range trading, and z-score entries historically have structural edge. Utilities and staples names tend here.
trend nor mean-reversion strategies have edge from the tape alone.
Breakout strategies and trend-following have structural edge. Growth names in a strong run often show this.
name
z-score entries
trending"
Not for: cross-sectional pair analysis (that's pairs-scanner). Not for regime detection at higher frequencies (this uses daily returns; intraday persistence would need tick data).
Optional:
more risk of masking a recent regime shift. Minimum 80.
confidence band. Set to 0 to skip.
Two output layers from one run.
**Layer 1: canonical JSON**. `hurst_exponent`, `classification` (mean_reverting / random_walk / trending), `reasoning`, `bootstrap` with p5/p50/p95 and n_valid, `per_block_rs` with (block_size, rs_mean) entries showing how R/S scales with block size, plus lookback and n_returns.
**Layer 2: rendered note**. Header + H + classification tag, bootstrap band, per-block R/S table, one-line Take with strategy implication.
1. **Pull daily closes** for the ticker over `lookback_days * 1.6` calendar days. 2. **Log returns** = diff of log(close). 3. **Block sizes**: 12 log-spaced values from min_block=10 to max_block=N/4. N/4 is the standard upper bound; going higher gives fewer blocks per size and destabilizes the regression. 4. **R/S per block size n**:
min of the cumsum, S = sample std. R/S = R/S.
5. **OLS on log-log**: fit `log(R/S(n)) = c + H * log(n)`. H is the slope. 6. **Bootstrap**: block-bootstrap (block length 20) 100 times, refit H each iteration, report p5/p50/p95 of the H distribution. 7. **Classify** by fixed thresholds (0.45 and 0.55) so the buckets are stable across runs.
retry, and daily aggs.
Narrative note with a small per-block table. A single number (H) plus its confidence band and per-block trace reads better as a short structured note than a table.
One call per run.
N-day windows would show regime changes; queued as a companion.
method; DFA is more robust to non-stationarities. Queued.
the natural next step is fractional integration order d = H - 0.5. Beyond this skill's scope.
Queued.
These are clean PR extensions.
Trade like a pro. Without the terminal. View the full landing page → Quant and equity research tools that run inside Claude, or behind your own UI.
Scan SEC 8-K disclosures across a single ticker or a watchlist using Massive's pre-parsed disclosure taxonomy. Groups the underlying rows by filing (one 8-K…
Track sell-side analyst positioning on a name via Benzinga Analyst Ratings. Pulls every rating event over the lookback window, classifies each as upgrade /…
Build a clean, point-in-time, ready-to-backtest OHLCV dataset for a US equity universe across an arbitrary date window. Emits parquet plus a manifest plus an…
Bayesian Online Change-Point Detection (BOCPD) on a ticker's daily log returns. Detects points in time where the return-generating distribution changed (regime…
Single-commodity macro read. Answers "is this commodity in a winning or losing macro setup right now" and names the macro driver that dominates it. Pulls one…
Reconcile a position file against splits, dividends, and spinoffs to catch breaks before they hit P&L or T+1 settlement. Use when an operator hands over a CSV…