markov-hedge-fund-method  by jackson-video-resources

Financial regime detection and forecasting

Created 1 month ago
326 stars

Top 83.3% on SourcePulse

GitHubView on GitHub
Project Summary

<2-3 sentences summarising what the project addresses and solves, the target audience, and the benefit.> This project provides a Markov regime detection skill for financial assets, enabling users to understand market states (Bull/Bear/Sideways), their persistence, and associated risks. It targets quantitative traders and developers seeking to integrate sophisticated market regime analysis into existing strategies or workflows without complex setup, offering a composable, easy-to-install tool that enhances trading decisions with data-driven insights.

How It Works

The framework classifies daily regimes (Bull/Bear/Sideways) via a rolling-return rule (default 20-day, ±5%). It constructs a 3x3 transition matrix from historical data using maximum-likelihood estimation, forecasting future regimes via Chapman-Kolmogorov. A stationary distribution reveals the long-run regime mix, and a signed signal (bull_prob - bear_prob) indicates direction/conviction. An optional Hidden Markov Model (HMM) fit using hmmlearn provides alternative analysis, with graceful degradation if compilation fails. The design prioritizes composability, allowing seamless integration into existing trading agents or data pipelines as a confirmation layer or risk filter.

Quick Start & Requirements

Installation is streamlined via a two-command plugin process for Claude Code: /plugin marketplace add jackson-video-resources/markov-hedge-fund-method /plugin install markov-hedge-fund-method@markov-hedge-fund-method A "zero-trust" manual build involves pasting a script into Claude Code's

Health Check
Last Commit

1 month ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
53 stars in the last 30 days

Explore Similar Projects

Starred by Boris Cherny Boris Cherny(Creator of Claude Code; MTS at Anthropic), Travis Fischer Travis Fischer(Founder of Agentic), and
16 more.

prophet by facebook

0.1%
20k
Forecasting tool for time series data
Created 9 years ago
Updated 2 months ago
Feedback? Help us improve.