/Stock.Indicators

Stock indicator technical analysis library package for .NET. Send in stock quote history and get back the desired technical indicators. Nothing more. It can be used in any kind of stock analysis software. We had private trading algorithms, machine learning, and charts in mind when originally creating this open library. Current indicators include: Accumulation Distribution Line (ADL), Aroon, Average Directional Index (ADX), Average True Range (ATR), Beta Coefficient, Bollinger Bands, Chaikin Money Flow (CMF), Chaikin Oscillator, Chandelier Exit, ConnorsRSI, Commodity Channel Index (CCI), Correlation Coefficient, Donchian Channel, Double EMA, Exponential Moving Average, Heikin-Ashi, Hull Moving Average, Ichimoku Cloud, Keltner Channel, Linear Regression and Slope, Money Flow Index (MFI), Momentum Oscillator, Moving Average Convergence/Divergence (MACD), On-balance Volume (OBV), Parabolic SAR, Price Momentum Oscillator (PMO), Price [Comparative] Relative Strength, Rate of Change (ROC), Relative Strength Index (RSI), R-Squared, Simple Moving Average, Standard Deviation, Stochastic Oscillator, Stochastic RSI, Triple Exponential Moving Average (TEMA), Trix, Ulcer Index, Ultimate Oscillator, Linear Weighted Moving Average (WMA / LWMA), William %R, Zig Zag

Primary LanguageC#OtherNOASSERTION

Stock Indicators

NuGet package Nuget build status code coverage CodeQL

Skender.Stock.Indicators is a .NET library that produces stock indicators. Send in historical stock price quotes and get back desired technical indicators (such as moving average, relative strength, stochastic oscillator, parabolic SAR, etc). Nothing more.

It can be used in any kind of stock analysis software. We had private trading algorithms and charts in mind when originally creating this open library.

Explore more information:

Samples

image

See full list of indicators and overlays for more information.

Getting started

Installation and setup

Find and install the Skender.Stock.Indicators NuGet package into your Project. See more help for installing packages.

# dotnet CLI example
dotnet add package Skender.Stock.Indicators

# package manager example
Install-Package Skender.Stock.Indicators

Example usage

using Skender.Stock.Indicators;

[..]  // prerequisite: acquire quote history from your own source

// example: get 20-period simple moving average
IEnumerable<SmaResult> results = Indicator.GetSma(history,20);

See individual indicator pages for specific guidance.

Frameworks targeted

  • .NET 5.0
  • .NET Core 3.1
  • .NET Standard 2.0, 2.1
  • .NET Framework 4.6.1

Contributing

board status

This NuGet package is an open-source project. If you want to report bugs or contribute fixes, new indicators, or new features, please review our contributing guidelines.

Contact us

Contact us through the NuGet Contact Owners method or submit an Issue with your question if it is publicly relevant. You can also direct message @daveskender.