keithorange / PatternPy

📈 PatternPy: A Python package revolutionizing trading analysis with high-speed pattern recognition, leveraging Pandas & Numpy. Effortlessly spot Head & Shoulders, Tops & Bottoms, Supports & Resistances. For experts & beginners. #TradingMadeEasy 🔥
Other
201 stars 52 forks source link
algorithmic-trading data-processing financial-analysis investment numpy ohlcv-analysis open-source pandas pattern-recognition python stock-market strategies technical-analysis trading wealth-creation

PatternPy: The Premier Python Package for Trading Pattern Recognition 🔥

PatternPy Logo

Description

PatternPy is a powerful Python package designed to transform the way you analyze financial markets. Our mission is to make complex trading pattern recognition accessible and efficient for all. With PatternPy, you can effortlessly identify intricate patterns like the head and shoulder, multiple tops and bottoms, horizontal support and resistance, and many more from OHLCV data.

Empowered by the elegance of Pandas and the efficiency of Numpy, PatternPy delivers high-speed performance without compromising on accuracy or user-friendliness. Whether you are a seasoned trader or a beginner, PatternPy is your go-to tool for bringing precision and speed to your market analysis.

Why PatternPy?

Our package stands out for several reasons:

Installation

You can install PatternPy by cloning this repo and placing it in your working directory, then importing it like usual:

git clone https://github.com/keithorange/PatternPy

Usage

Once installed and imported, you use PatternPy as follows:

from patternpy.tradingpatterns import head_and_shoulders

# Have price data (OCHLV dataframe)
df = pd.Dataframe(stock_data)

# Apply pattern indicator screener
df = head_and_shoulders(df)

# New column `head_shoulder_pattern` is created with entries containing either: NaN, 'Head and Shoulder' or 'Inverse Head and Shoulder'
print(df)

See our usage guide for more detailed instructions and examples.

📈 Trading Patterns: The Gearhead's Guide to Chart Alchemy! 🔧

Future Plans

We're always looking to improve PatternPy. Some areas we're exploring include:

Contribute

PatternPy is an open-source project, and we welcome contributions of all kinds: new features, bug fixes, documentation, and more. Please see our contribution guide for more information.

Join us on this exciting journey to revolutionize trading pattern recognition. Let's create wealth together with PatternPy!