Home
Softono
Stock.Indicators

Stock.Indicators

Open source Apache-2.0 C#
1.2K
Stars
268
Forks
66
Issues
42
Watchers
1 week
Last Commit

About Stock.Indicators

Stock Indicators for .NET is a C NuGet package that converts raw historical price quotes for stocks, commodities, forex, and cryptocurrencies into technical indicators and trading insights. This library serves as a foundational tool for building algorithmic trading systems, conducting technical analysis, developing machine learning models, and creating visual charting applications. It supports standard indicators including Moving Averages, Relative Strength Index, Stochastic Oscillator, and Parabolic SAR. The latest v3 release introduces comprehensive streaming capabilities for real-time data processing through three calculation styles: Series for batch historical processing, BufferList for efficient incremental updates, and StreamHub for real-time observable patterns with state management. Users can subscribe indicators to a QuoteHub, stream incoming quotes, and instantly access updated results. The package works seamlessly with user-provided OHLCV data sources across various financial markets. It is designe

Platforms

Web Self-hosted Windows

Languages

C#

image

GitHub Stars NuGet package NuGet

[!IMPORTANT] This branch contains vNext (v3) code that is under development. For the currently released stable version (v2), please see the main branch. After v3.0 stable ships, the v2 branch becomes the long-term netstandard2.0/netstandard2.1 maintenance line on the Skender.Stock.Indicators package — security and compatibility patches only, no new features. See branching-strategy.plan.md for details.

Stock Indicators for .NET

Stock Indicators for .NET is a C# 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.

Build your technical analysis, trading algorithms, machine learning, charting, or other intelligent market software with this library and your own OHLCV price quotes sources for equities, commodities, forex, cryptocurrencies, and others. Stock Indicators for Python is also available.

Streaming Support

v3 introduces comprehensive streaming capabilities for real-time and incremental data processing. Most indicators now support three calculation styles:

  • Series - Traditional batch processing for complete historical datasets
  • BufferList - Incremental calculations with efficient buffer management
  • StreamHub - Real-time processing with observable patterns and state management

Quick example using streaming:

// Create a quote hub for streaming quotes
QuoteHub quoteHub = new();

// Subscribe indicators to the hub
EmaHub emaHub = quoteHub.ToEma(20);
RsiHub rsiHub = quoteHub.ToRsi(14);

// Stream quotes as they arrive
foreach (Quote quote in liveQuotes)
{
    quoteHub.Add(quote);

    // Access real-time results
    EmaResult emaResult = emaHub.Results[^1];
    RsiResult rsiResult = rsiHub.Results[^1];
}

Visit our project site for more information: