Skip to main content

PyStockFilter

Release Build CI Build PyPI - Downloads Coverage Status Codacy Badge

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:

PyStockFilter 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.

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)

Table of built distributions (wheels) for pystockfilter 2.3.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.3.1 This release

1 release file

2.3.0

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.1.3

1 release file

2.1.2

1 release file

1.0.9

2 release files

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page