TechnicalAnalysis.Net.Util 3.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package TechnicalAnalysis.Net.Util --version 3.2.0
                    
NuGet\Install-Package TechnicalAnalysis.Net.Util -Version 3.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TechnicalAnalysis.Net.Util" Version="3.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TechnicalAnalysis.Net.Util" Version="3.2.0" />
                    
Directory.Packages.props
<PackageReference Include="TechnicalAnalysis.Net.Util" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TechnicalAnalysis.Net.Util --version 3.2.0
                    
#r "nuget: TechnicalAnalysis.Net.Util, 3.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TechnicalAnalysis.Net.Util@3.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TechnicalAnalysis.Net.Util&version=3.2.0
                    
Install as a Cake Addin
#tool nuget:?package=TechnicalAnalysis.Net.Util&version=3.2.0
                    
Install as a Cake Tool

TechnicalAnalysis.Net.Util

Calculation methods and output-series helpers for TechnicalAnalysis.NET. This package targets .NET 10, uses the official C# TA-Lib package, and depends on TechnicalAnalysis.Net.Contracts.

dotnet add package TechnicalAnalysis.Net.Util --version 3.2.0

Most consumers should install the main TechnicalAnalysis.Net package and use its TANet.Core.Indicators API. The main package references Util, so the extension methods below are available there too.

Checking a series

Add using TANet.Util.Extensions; to use the output-series helpers:

using System;
using TANet.Util.Extensions;

double[] values = { 14, 13, 12, double.NaN, double.NaN };

Console.WriteLine(values.HasValidData());   // True
Console.WriteLine(values.CountValidData()); // 3

if (values.Length > 1 && double.IsFinite(values[1]))
{
    Console.WriteLine(values[1]); // Previous value: 13
}

HasValidData() checks that index 0 exists and contains a finite number. It does not imply that older values are finite. CountValidData() counts all finite values, which are not necessarily consecutive; pass it a non-null array.

Calculation contract

TANet.Util.StaticClasses.Indicators provides lower-level calculation methods used by the main API. Input and output series use newest-first ordering. Multi-series inputs must have equal lengths and values at the same index must describe the same observation.

Successful output series have the input length. Values without enough history are double.NaN. Some calculations can also return a non-finite value for other reasons, such as a VWMA window with no volume. Check Success before accessing the output, and check the relevant series before using its values. Custom signal callbacks are not called when the current output required by the signal is non-finite.

For VWAP, TA-Lib returns zero before any volume has traded; this is finite, so HasValidData() returns true even though a weighted average is not yet defined. VWAP and OBV accumulate from the oldest supplied observation and do not reset automatically at session boundaries.

See the project README for the full contract, supported indicators, and usage examples.

License

See the project license.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on TechnicalAnalysis.Net.Util:

Package Downloads
TechnicalAnalysis.Net

Simple use of technical analysis indicators for C#, based on TALib.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.3.0 49 11/21/2026
3.2.0 108 11/12/2026
3.1.0 101 11/8/2026
3.0.0 113 11/7/2026
2.0.0 2,438 10/14/2022
1.0.0 5,972 6/6/2019