A small Python library with most common stock market indicators
A small Python library with most the common stock market indicators.
Clone or download the indicators.py file into your project directory.
Import the module: import indicators
The functions in this library accept the data in Pandas DataFrame format. The data should contain OPEN, HIGH, LOW, CLOSE and VOLUME columns. See the comments for each function for the list of required columns. Their default names are hardcoded in functions' params, however you may supply your own column names, if they are different. Sometimes you would also need to provide periods over which to calculate the indicator values. However, for all of them the default (recommended) values are pre-assigned.
GNU General Public License