Skip to main content

Trading analysis with high-speed pattern recognition, leveraging Pandas & Numpy. Effortlessly spot Head & Shoulders, Tops & Bottoms, Supports & Resistances. For experts & beginners. #TradingMadeEasy 🔥

Project description

PatternPy: The Premier Python Package for Trading Pattern Recognition 🔥

Installation

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

pip isntall  m-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! 🔧

  • Head & Shoulders and its Mirror-Twin, Inverse Head & Shoulders: Think of this as the stock market's homage to a medieval warrior's stance. The head - the pinnacle of price prowess. The shoulders - slightly lower, but they pack a punch. When it goes inverse, that’s the stock market moonwalking! Keep an eye, because something's about to give. ⚔️

  • Multiple Tops & Bottoms - The Horizontal Tango: When stock prices are doing the cha-cha on the charts, swinging back and forth without breaking out – that’s the Horizontal Tango for you! Put on your dancing shoes because reading this pattern needs finesse and perfect timing. 💃

  • Horizontal Support & Resistance - The Price Bouncers: These levels are like the elite bouncers at an exclusive club. Prices need VIP access to get past them! They’ve been rejected entry before, so will they turn around or sweet-talk their way through this time? 🕶️

  • Ascending & Descending Triangles - Tension Rising: These triangles are like a rubber band stretching – the suspense is nerve-wracking. Is it going to snap upwards or fizzle out downwards? This pattern is the market's own thriller genre. 🍿

  • Wedges: Converging Destiny: Think of wedges as two trendlines playing a high-stakes game of chicken – speeding towards each other to see who veers off first. When they collide, prices could catapult in any direction. Buckle up! 🚀

  • Channel Up & Down - The Stock Superhighway: If stocks were cars, channels would be their autobahns. Unfettered, high-octane movement within defined lanes. Just watch out for those exits - detours might lead to whole new landscapes! 🏎️

  • Double Top & Bottom - The Market's Deja Vu: When prices hit a level, recoil, and then - BOOM - they're back again, it’s like the market is trying to perfect a stunt it couldn't nail the first time. A daring double-attempt before the grand finale! 🎯

  • Trend Line Support & Resistance - The Market’s Elders: These lines are like the wise old sages of stock lore. They've seen things, they know things. Their wisdom? A roadmap of where prices found refuge or faced their nemesis. Respect the elders! 🧙

  • Higher-High & Lower-Low- The Chart Adventurer's Quest: Grab your explorer hat because this pattern is an expedition to uncharted territories. New highs or new lows - they’re the breadcrumbs that lead to the heart of market trends. 🗺️

Contribute

Orignal Author https://github.com/keithorange/PatternPy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m_patternpy-2.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

m_patternpy-2.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file m_patternpy-2.0.1.tar.gz.

File metadata

  • Download URL: m_patternpy-2.0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for m_patternpy-2.0.1.tar.gz
Algorithm Hash digest
SHA256 55936718a57700dfee6cd015fecbc5cc57a4e6b651addaa698359ab002272d13
MD5 b5142e1b461c627edd7a835833b60d60
BLAKE2b-256 fa835701060abf88b89a999219d6182728792b9c601855e495a4ff4c29c986fb

See more details on using hashes here.

File details

Details for the file m_patternpy-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: m_patternpy-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for m_patternpy-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a7bea11a538ebb42984cd2eb81ad14eacf06e334483c56bc07d6c99e9fa8d08
MD5 14479e5fe025da15e3fd264cba20ef00
BLAKE2b-256 9894919033f2a08f2eb9c42cdb53621276990cfe2acb21227b589a8602c7af25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page