analyze-silver-miner-metal-ratio
CommunityAssess silver miners vs silver price for timing.
Data & Analytics#time-series#scenario-analysis#ratio#yfinance#silver-miners#relative-valuation#historical-analogs
Authorfatfingererr
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a framework to analyze the relative valuation of silver miners versus silver price by computing and evaluating the miner-to-metal ratio, determining historical positioning, detecting divergence signals, and performing forward-looking scenario analysis.
Core Features & Use Cases
- Ratio construction: compute miner_price / metal_price and apply optional smoothing to reveal trend signals.
- Historical analysis: compute percentile ranks and identify bottom/top zones using historical distributions.
- Scenario planning: quantify how much miners would need to rise or silver would need to fall to return to a top valuation, under various assumptions.
- Use Case: a research analyst wants to validate a claim that "silver miners are near a bottom," and simulate forward performance after bottom signals.
Quick Start
- Run a quick analysis with default proxies SIL / SI=F:
- python scripts/ratio_analyzer.py --quick
- Generate a basic visualization:
- python scripts/ratio_plotter.py --quick --output-dir ../../output
- For a full report with historical analogs and forward returns:
- python scripts/ratio_analyzer.py --start-date 2010-01-01 --forward-horizons 52,104,156 --output result.json
Dependency Matrix
Required Modules
pandasnumpyyfinancematplotlib
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: analyze-silver-miner-metal-ratio Download link: https://github.com/fatfingererr/macro-skills/archive/main.zip#analyze-silver-miner-metal-ratio Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.