Analysis updated 2026-06-24
Install a quant analysis idea as a Claude Code slash-command plugin and run it on any ticker.
Run a walk-forward backtest of a Markov regime signal and inspect Sharpe and max drawdown.
Apply the bonus Pine Script v5 indicator to a TradingView chart to view the regime ribbon.
Paste the zero-trust Markdown prompt into Claude Code agent mode to rebuild the skill from scratch.
| jackson-video-resources/markov-hedge-fund-method | virtualluoucas/chronicles-ocr | upload-post/avatar-mix | |
|---|---|---|---|
| Stars | 120 | 116 | 112 |
| Language | Python | Python | Python |
| Setup difficulty | easy | hard | hard |
| Complexity | 3/5 | 4/5 | 4/5 |
| Audience | developer | researcher | vibe coder |
Figures from each repo's GitHub metadata at analysis time.
Dependencies resolve on first run via uv PEP 723 inline metadata, no API keys needed.
This repository is the companion code for the first video in a quant trading series. It packages a single analysis idea as a Claude Code plugin so that a user can install it with two slash commands and then ask Claude in plain English to run it against any asset. The framework was designed by someone named Roan, and the repo owner is the person installing it on camera. The analysis is a Markov regime detector. For a given price series it labels each day as Bull, Bear, or Sideways based on rolling returns over a configurable window with a default of 20 days and plus or minus 5 percent. From that history it builds a 3 by 3 transition matrix using maximum likelihood, raises the matrix to powers to forecast several steps ahead, and computes the long-run stationary distribution. It then emits a signed signal equal to the probability of bull minus the probability of bear, runs a walk-forward backtest without lookahead and reports Sharpe ratio and maximum drawdown, and can optionally fit a Hidden Markov Model using the hmmlearn library. Input data can come from a ticker symbol fetched through yfinance or from a user-supplied CSV with a date and close column. No API keys or accounts are needed because the dependencies are resolved on first run by uv through PEP 723 inline metadata. The README also offers a zero-trust alternative: a single Markdown prompt file that, when pasted into Claude Code in agent mode, builds the same skill from scratch on the user's own machine, which was the version recorded in the on-camera demo. A bonus folder contains a Pine Script v5 indicator for TradingView that paints the regime ribbon and shows the transition matrix and stationary distribution on a chart. License is MIT.
Claude Code plugin that labels price history into Bull, Bear, Sideways days, builds a transition matrix, and runs a walk-forward backtest with Sharpe and drawdown.
Mainly Python. The stack also includes Python, Claude Code, yfinance.
MIT license, very permissive, use freely with attribution.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.