oguzkirman / pystockfilter

Financial technical and fundamental analysis indicator library for pystockdb.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pystockfilter

Build Status PyPI - Downloads Coverage Status Codacy Badge

Create your own fundamental or chart based stock filter. All you need is a database set up with pystockdb.

built-in filters

technical filters

  • ADX
  • RSI
  • StockIsHot: Simple trend indicator
  • StockIsHotSecure: improved StockIsHot version.

fundamental filters

  • Lervermann
  • Piotroski F-Score
  • Price Target Score: analysts price targets compared with actual price

install

pip install pystockfilter

quick start

Build internal filters:

import logging
from pystockdb.db.schema.stocks import db

from pystockfilter.tool.build_internal_filters import BuildInternalFilters

# connect to database
arguments = {'db_args': {
    'provider': 'sqlite',
    'filename': db_path_test,
    'create_db': False
    }
}
db.bind(**arguments["db_args"])
db.generate_mapping()
# create internal filters for Adidas AG and Infineon
arguments = {'symbols': ['ADS.F', 'IFX.F']}
builder = BuildInternalFilters(arguments, logger)
builder.build()
# create internal filters for all stocks in database
arguments = {'symbols': ['ALL']}
builder = BuildInternalFilters(arguments, logger)
builder.build()

issue tracker

https://github.com/portfolioplus/pystockfilter/issuese

About

Financial technical and fundamental analysis indicator library for pystockdb.

License:MIT License


Languages

Language:Python 100.0%