Skip to content
Back to search

markov-hedge-fund-method

Markov regime detection skill + one-shot install prompt + Pine indicator. Companion to Quant Series video 1. Framework by Roan (@RohOnChain).

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/jackson-video-resources--markov-hedge-fund-method/badge.svg)](/listings/jackson-video-resources--markov-hedge-fund-method)

HTML

<a href="/listings/jackson-video-resources--markov-hedge-fund-method"><img src="/api/listings/jackson-video-resources--markov-hedge-fund-method/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

In Claude Code:

/plugin marketplace add jackson-video-resources/markov-hedge-fund-method
/plugin install markov-hedge-fund-method@markov-hedge-fund-method

That's it. The skill is now installed. Invoke it any time, on any asset:

/markov-hedge-fund-method:regime

…or just ask in plain English: *"detect the regime on BTC-USD"*, *"add a regime confirmation filter to my SPY momentum strategy"*, *"what's the long-run regime mix of AAPL — is it too tail-heavy to trade?"* Claude fires the `regime` skill automatically.

No API keys. No accounts. No `sudo`. Dependencies are resolved on first run by `uv` (PEP 723 inline metadata) — nothing to pip-install yourself.

---

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 15 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. {
  2. "name": "markov-hedge-fund-method",
  3. "owner": { "name": "Lewis Jackson" },
  4. "metadata": {
  5. "description": "Markov Hedge Fund Method — companion Claude Code skill for video 1 of the Quant Series. Framework by Roan (@RohOnChain).",
  6. "version": "1.0.0"
  7. },
  8. "plugins": [
  9. {
  10. "name": "markov-hedge-fund-method",
  11. "source": ".",
  12. "description": "Markov regime detection for any asset. Labels Bull/Bear/Sideways, builds the MLE transition matrix, forecasts n-step ahead, solves the stationary distribution, and runs a no-lookahead walk-forward backtest. Optional Hidden Markov Model upgrade."
  13. }
  14. ]
  15. }
README.md · README · 92 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Markov Hedge Fund Method
  2. Skill from **video 1 of the Quant Series**: *How To Use The Hedge Fund Method To Win Every Single Trade*.
  3. Framework by **Roan** ([@RohOnChain](https://x.com/RohOnChain)) — I'm the guy installing it on camera.
  4. ---
  5. ## Install (the headline path — two commands)
  6. In Claude Code:
  7. ```
  8. /plugin marketplace add jackson-video-resources/markov-hedge-fund-method
  9. /plugin install markov-hedge-fund-method@markov-hedge-fund-method
  10. ```
  11. That's it. The skill is now installed. Invoke it any time, on any asset:
  12. ```
  13. /markov-hedge-fund-method:regime
  14. ```
  15. …or just ask in plain English: *"detect the regime on BTC-USD"*,
  16. *"add a regime confirmation filter to my SPY momentum strategy"*,
  17. *"what's the long-run regime mix of AAPL — is it too tail-heavy to trade?"*
  18. Claude fires the `regime` skill automatically.
  19. No API keys. No accounts. No `sudo`. Dependencies are resolved on first run by
  20. `uv` (PEP 723 inline metadata) — nothing to pip-install yourself.
  21. ---
  22. ## What the skill does
  23. It answers one question for **any asset**: what regime are we in, how sticky is
  24. it, and what does that imply for risk and direction?
  25. - Labels every day Bull / Bear / Sideways via a rolling-return rule (default 20-day, ±5%)
  26. - Builds a 3×3 transition matrix from the asset's history (maximum-likelihood)
  27. - Forecasts n-steps ahead by raising the matrix to powers (Chapman-Kolmogorov)
  28. - Computes the long-run stationary distribution (baseline regime mix)
  29. - Emits a signed signal: `bull_prob − bear_prob` → direction + conviction
  30. - Runs a walk-forward backtest (no lookahead) → reports Sharpe + max drawdown
  31. - Optionally fits a Hidden Markov Model via `hmmlearn` (graceful degrade if it can't compile)
  32. It takes **either a ticker** (`--ticker BTC-USD`, fetched via `yfinance`) **or
  33. your own CSV** (`--csv my_prices.csv`, just a date + close column) — so it drops
  34. into whatever data pipeline you already run, on whatever asset you trade.
  35. It's built to **compose**: slot it into a trading agent you already have as a
  36. confirmation layer, a standalone signal, or a tail-risk filter — without
  37. rewriting your strategy. See [`skills/regime/SKILL.md`](./skills/regime/SKILL.md)
  38. for the JSON contract and three worked composition patterns.
  39. ---
  40. ## The on-camera build / zero-trust manual path
  41. [`markov-hedge-fund-method.md`](./markov-hedge-fund-method.md) is the original
  42. one-shot onboarding prompt — the version built **live on camera**. Paste it
  43. into Claude Code (agent mode) and it builds the whole skill from scratch in
  44. front of you: detects your OS, installs `uv`, writes every file, runs the
  45. sanity check.
  46. It's kept here as the **zero-trust path**: if you don't want to install a
  47. plugin from a marketplace, this builds the identical logic locally so you can
  48. read every line as it's written. Most people should use the two-command plugin
  49. install above — this is the transparent fallback and the on-camera artifact.
  50. ---
  51. ## Pine Script bonus
  52. [`pine-script/markov-hedge-fund-method.pine`](./pine-script/markov-hedge-fund-method.pine)
  53. — TradingView v5 indicator that paints the framework live on a chart: regime
  54. ribbon, live 3×3 transition matrix in the corner, stationary-distribution
  55. table, current-regime banner. Inputs: lookback window (default 20), Bull/Bear
  56. thresholds (default ±5%), table toggles.
  57. Open TradingView → Pine Editor → paste the `.pine` → Save → Add to Chart.
  58. ---
  59. ## Credit
  60. - **Framework:** Roan ([@RohOnChain](https://x.com/RohOnChain)) — read his original article for the underlying maths.
  61. - **Plugin + installer + animations:** [Lewis Jackson](https://www.youtube.com/@lewisjackson).
  62. ## License
  63. MIT — see the umbrella [LICENSE](../LICENSE).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.