TradingPatternScanner
Author: Preetam Sharma
Overview
Trading Pattern Scanner Identifies complex patterns like head and shoulder, wedge and many more.
Installation / Usage
To install use pip(still under progress):
$ pip install tradingpattern
Or clone the repo:
$ https://github.com/white07S/TradingPatternScanner.git
$ python setup.py install
TradingPatternScanner
Trading patterns:
- Head and Shoulder and inverse Head and Shoulder: These patterns indicate a potential reversal in the market, with the "head" being the highest point, and the "shoulders" being the points on either side at a slightly lower level.
- Multiple top and bottom: These patterns indicate a range-bound market, with multiple highs and lows forming a horizontal range.
- Horizontal support and resistance: These patterns indicate key levels at which the market has previously struggled to break through.
- Ascending and Descending Triangle pattern: These patterns indicate a potential breakout in the market, with the upper trendline being resistance and the lower trendline being support.
- Wedge up and down: These patterns indicate a potential reversal in the market, with the trendlines converging towards each other.
- Channel up and down: These patterns indicate a strong trend in the market, with price moving within a well-defined upper and lower trendline.
- Double top and bottom: These patterns indicate a potential reversal in the market, with the market hitting a high or low twice and then reversing.
- Trend line support and resistance: These patterns indicate key levels at which the market is likely to experience support or resistance based on historical price action.
- Finding Higher-High and Lower-Low
Designed for fast performance:
- Uses only Pandas as Numpy, no other external libraries: This approach helps to keep the library lightweight and fast.
- Uses the concept of vectorization: This approach helps to improve performance by processing large amounts of data at once, rather than iterating over each individual data point.
New and Unique:
- No other python library exists for such task currently: This library is new and unique, as it aims to provide an all-in-one solution for identifying various trading patterns.
Lets check if its works for simplicity I used finviz and checked the pattern with the respective stock.
- Head and Shoulder:
We can see that it finds out that we have inverse head and shoulder pattern in the stock on 9th Januray 2023 in 1 day interval. Lets match with Finviz.
- We can see that Finviz also detects on 9th Januray 2023 in 1 day interval.
- You can adjust the window size to your liking. A smaller window size will be more sensitive to detecting patterns, but it will also increase the chances of false positives. A larger window size will be less sensitive to detecting patterns, but it will also decrease the chances of false positives.
Future add-ons:
- Request your favourite pattern to get added in the list: The library is open for suggestions for adding new patterns.
- Work on visualization and plotting: The library can be extended to include visualization and plotting features to help users better understand the patterns identified.
- Add unit testing: The library can be extended to include unit testing to ensure that the code is working as expected and to catch any bugs early on.
Metadata
Release files for tradingpattern 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tradingpattern-0.0.5.tar.gz | 5.2 kB | Without provenance | Details for tradingpattern-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tradingpattern-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for tradingpattern-0.0.5-py3-none-any.whl |
Total release size: 11.3 kB
Release files / tradingpattern-0.0.5.tar.gz
| Download URL | tradingpattern-0.0.5.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
483acd482e9618577a5acf061c6198d9bef7fe97f5e819e074af5b3ec220fe4a
|
|
BLAKE2b-256 checksum How to use checksums |
03940be88f2d2c54d554abfffdc65ed22a592da6861fc74c2fd241fcee5c7da3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.10 Linux/5.15.0-1034-azure
|
Release files / tradingpattern-0.0.5-py3-none-any.whl
| Download URL | tradingpattern-0.0.5-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc5ea2ab739b93ef5854a0161262e9d7acee26df2a8f15460b2f9de8351feffe
|
|
BLAKE2b-256 checksum How to use checksums |
05b2df8281c4fcfd40a5e4a225981b81ec9de426f4f38158866325ebf3ef6645
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.10 Linux/5.15.0-1034-azure
|
Security for tradingpattern 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.