Lightlines
Catalogue
Sign in
By himself65

stock-correlation

himself65

See which stocks move together and when relationships shift.

stock correlation

What it does

Finds correlated stocks and analyzes pairwise, grouped, rolling, and regime-dependent relationships using historical prices.

When to use it

Use for questions about correlated stocks, peers, trading or hedging pairs, beta, co-movement, and rolling correlation.

How to use it

Give it one or more stock tickers or a named stock group; it returns the corresponding correlation analysis.

What you provide

  • stock tickers or a named group

Uses


Access · 4

This skill

Yahoo Finance

Read

Reads Yahoo Finance market data

yfinance

Execute

Installs yfinance when missing

pandas

Execute

Installs pandas when missing

numpy

Execute

Installs numpy when missing

What you need · 2

Requires Python 3.8 or newer.

Optionally enables hierarchical clustering; without it, the skill falls back to correlation-based sorting.


About this skill

Visibility
Public
Repository
himself65/finance-skills
Created
Oct 8, 2026
Updated
Oct 8, 2026
Files
3