Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

facioquo/stock-indicators-python

Open more actions menu

image

PyPI PyPI - Downloads

Stock Indicators for Python

Stock Indicators for Python is a PyPI library package that produces financial market technical indicators. Send in historical price quotes and get back desired indicators such as moving averages, Relative Strength Index, Stochastic Oscillator, Parabolic SAR, etc. Nothing more.

It can be used in any market analysis software using standard OHLCV price quotes for equities, commodities, forex, cryptocurrencies, and others. We had trading algorithms, machine learning, and charting systems in mind when originally creating this community library. Stock Indicators for .NET is also available.

Visit our project site for more information:

Getting started

Windows

  1. Install .NET SDK (8.0 or newer):

  2. Install the package:

    pip install stock-indicators

macOS

  1. Install .NET SDK (8.0 or newer):

    brew install dotnet-sdk
    dotnet --info  # Verify installation
  2. Install the package:

    pip install stock-indicators

Example usage

from stock_indicators import indicators

# fetch your data
quotes = get_history("MSFT")

# calculate 20-period SMA
results = indicators.get_sma(quotes, 20)

Note: This is a simple example. For a step-by-step guide, see the QuickStart Guide or our documentation site.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.