Skip to content

Stock Indicators for .NET is a C# NuGet package that transforms raw equity, commodity, forex, or cryptocurrency financial market price quotes into technical indicators and trading insights. You'll need this essential data in the investment tools that you're building for algorithmic trading, technical analysis, machine learning, or visual charting.

License

Notifications You must be signed in to change notification settings

DaveSkender/Stock.Indicators

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.

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<Quote> quoteHub = new();

// Subscribe indicators to the hub
EmaHub<Quote> emaHub = quoteHub.ToEma(20);
RsiHub<Quote> 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.LastOrDefault();
    RsiResult rsiResult = rsiHub.Results.LastOrDefault();
}

Visit our project site for more information:

About

Stock Indicators for .NET is a C# NuGet package that transforms raw equity, commodity, forex, or cryptocurrency financial market price quotes into technical indicators and trading insights. You'll need this essential data in the investment tools that you're building for algorithmic trading, technical analysis, machine learning, or visual charting.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 25

Languages