Skip to content

About

This repositorycontains a jupyter notebook that demonstrates how to use the stumpy python module to do pattern analysis on financial instruments.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

📈 Pattern Detection for Trading

Discover repeating patterns in financial time series using STUMPY — a powerful and scalable Python library for time series analysis based on the Matrix Profile.

This repository contains a Jupyter notebook that walks through how to use STUMPY to detect recurring patterns (motifs) and anomalies (discords) in financial instrument price data — a great starting point for building pattern-based trading strategies or just exploring time series analysis.

🎥 Video Walkthrough

Check out the full video tutorial here: [Insert your YouTube link here]

🧠 What's Inside

  • An introduction to the Matrix Profile concept
  • How to load and prep financial time series data
  • Using STUMPY to find motifs (repeating patterns) and discords (anomalies)
  • Visualizing detected patterns on price charts

🚀 Getting Started

Prerequisites

  • Python 3.8+
  • Jupyter Notebook or JupyterLab

Installation

git clone https://github.com/yourusername/pattern-detection-for-trading.git
cd pattern-detection-for-trading
pip install -r requirements.txt

Usage

Open the notebook and run through the cells:

jupyter notebook pattern_detection.ipynb

📦 Key Library

  • STUMPY — for computing the Matrix Profile and detecting patterns

⚠️ Disclaimer

This project is for educational purposes only and does not constitute financial advice. Trading involves risk — always do your own research before making investment decisions.

🤝 Contributing

Found a bug or have an idea for improvement? Feel free to open an issue or submit a pull request!

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.


⭐ If you found this helpful, consider giving the repo a star — it really helps!

About

This repositorycontains a jupyter notebook that demonstrates how to use the stumpy python module to do pattern analysis on financial instruments.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors