PyStockFilter
PyStockFilter is a Python library that allows users to create custom stock filters using a range of fundamental and technical indicators. With support for data sources like Yahoo Finance, local data, and pystockdb, PyStockFilter is a versatile solution for building and backtesting technical and fundamental trading strategies.
Features
- Data Compatibility: Integrates with Yahoo Finance, local data, and
pystockdb. - Built-in Indicators: Includes essential technical indicators, and supports custom indicator creation.
- Backtesting: Enables testing of strategies on historical data.
- Optimization Tools: Offers parameter optimization, including sequential and chunked data optimization.
- Custom Strategy Support: Extendable with your own strategies and indicators.
Built-in Filters
Technical Filters
PyStockFilter includes several popular technical indicators, which can be used out of the box or customized:
- Simple Moving Average (SMA)
- Exponential Moving Average (EMA)
- Relative Strength Index (RSI)
- Ultimate Oscillator (UO)
- Moving Average Convergence Divergence (MACD)
- Bollinger Bands (BB)
For custom indicators, refer to the examples in the src/pystockfilter/strategy directory.
Installation
To install PyStockFilter, run:
pip install pystockfilter
Quick Start Guide
For detailed examples on setting up strategies, defining parameters, and running the optimizer, please visit the Examples Directory in the PyStockFilter repository.
Issue Tracker
Report issues, request features, or contribute via the GitHub Issue Tracker:
Disclaimer
This software is for educational purposes only. Do not risk money which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.
Metadata
Release files for pystockfilter 2.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pystockfilter-2.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pystockfilter-2.3.1-py3-none-any.whl
| Download URL | pystockfilter-2.3.1-py3-none-any.whl |
|---|---|
| Size | 76.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77142068bfe0f5211707342ae78116f4363cfe48c57e6c196a7e4601ccdefb68
|
|
BLAKE2b-256 checksum How to use checksums |
5f896753ad1b5d670e4d52f27385c876f3f2686dd90debd1cdf2ed431a525626
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for pystockfilter 2.3.1
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.