Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Miles-Deutscherv1.0.0MITIn 1 marketplace
Forecasts next-day volatility for any ticker or CSV and sizes positions to a volatility target, with a fixed-vs-targeted backtest. The plugin says no API key is needed; ticker mode pulls public data through yfinance.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A walk-forward GARCH(1,1) volatility toolkit for Claude Code, Python, and TradingView.
Most trading tools try to answer which way? This one answers how much?
GARCH estimates the magnitude of tomorrow's potential move—not its direction. This project turns that forecast into a calm/normal/storm regime and a practical position-size multiplier.
[!IMPORTANT] GARCH does not predict whether price will rise or fall. It forecasts volatility. Entries and exits must come from your strategy.
target volatility ÷ forecast volatility, capped between 0.25x and 2.0x.Prerequisites: Claude Code and uv.
Run these commands inside Claude Code:
/plugin marketplace add Miles-Deutscher/Garch-Method
/plugin install garch-method@garchmethod
Then ask naturally:
What's the volatility forecast for BTC-USD?
How large should my SPY position be at a 15% volatility target?
Compare my strategy with and without volatility targeting.
Claude loads the skill and runs the appropriate tool. No API key, paid data account, or sudo is required.
git clone https://github.com/Miles-Deutscher/Garch-Method.git
cd Garch-Method
uv run scripts/garch_forecast.py --ticker BTC-USD --json
Dependencies are declared inside each script and resolved by uv on the first run.
Crypto example:
uv run scripts/garch_forecast.py \
--ticker BTC-USD \
--periods-per-year 365 \
--json
Equity example:
uv run scripts/garch_forecast.py \
--ticker SPY \
--periods-per-year 252 \
--json
The result includes:
{
"asset": "BTC-USD",
"as_of": "YYYY-MM-DD",
"forecast_vol_daily_pct": 2.4,
"forecast_vol_annualized_pct": 45.8,
"vol_percentile_1y": 78.0,
"regime": "storm",
"note": "GARCH forecasts magnitude (volatility), not direction."
}
The numbers above are illustrative; your result depends on the latest available data.
uv run scripts/vol_target.py \
--ticker SPY \
--target-vol 15 \
--periods-per-year 252 \
--json
The core calculation is intentionally simple:
position multiplier = target annualized volatility / forecast annualized volatility
Examples:
| Forecast volatility | Target volatility | Raw multiplier | Applied size |
|---|---|---|---|
| 30% | 15% | 0.50x | 0.50x |
| 15% | 15% | 1.00x | 1.00x |
| 5% | 15% | 3.00x | 2.00x cap |
The floor is 0.25x; the maximum is 2.00x.
Run the included EMA 9/21 crossover demonstration:
uv run scripts/compare.py \
--ticker BTC-USD \
--target-vol 58 \
--periods-per-year 365 \
--chart equity_comparison.png \
--json
This applies identical signals to two portfolios:
1x.The comparison is designed to answer a narrow question: did sizing improve the strategy's risk profile? Always inspect maximum drawdown and worst month alongside returns.
Provide at least roughly 510 daily observations. Column names are matched case-insensitively.
date,close
2023-01-01,16547.50
2023-01-02,16611.20
2023-01-03,16669.10
Run:
uv run scripts/garch_forecast.py \
--csv my_prices.csv \
--periods-per-year 365 \
--out-csv volatility_series.csv \
--json
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub miles-deutscher/garch-method --plugin garch-methodPlugins from other owners that cover similar ground