TechnicalAnalysis.Net.Util 3.0.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.0.0
                    
NuGet\Install-Package TechnicalAnalysis.Net.Util -Version 3.0.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.0.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.0.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.0.0
                    
#r "nuget: TechnicalAnalysis.Net.Util, 3.0.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.0.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.0.0
                    
Install as a Cake Addin
#tool nuget:?package=TechnicalAnalysis.Net.Util&version=3.0.0
                    
Install as a Cake Tool

TechnicalAnalysis.Net.Util

The utility package provides calculation methods and output-series helpers for TechnicalAnalysis.NET. It targets .NET 10, uses the official C# TA-Lib package for calculations, and depends on TechnicalAnalysis.Net.Contracts.

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

Most consumers should install TechnicalAnalysis.Net, the main package that provides the TANet.Core.Indicators API. It references this package automatically, so its extension methods are also available.

Checking an output series

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

using System;
using TANet.Util.Extensions;

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

bool latestIsFinite = values.HasValidData(); // true
int finiteCount = 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 is finite. It does not imply that older values are finite. CountValidData() counts all finite values in the array; those values are not necessarily consecutive. Pass a non-null array to CountValidData().

Calculation contract

TANet.Util.StaticClasses.Indicators exposes the lower-level calculation methods used by the main API. Provide input arrays newest first; index 0 is the latest observation. Multiple input arrays must have equal lengths and corresponding observations at the same index.

On success, each output series has the input length and uses the same ordering. Positions without enough history contain double.NaN. Success indicates whether calculation completed, not whether the latest value is finite. When the current output required by a signal is not finite, the signal is Stay and a custom signal callback is not invoked.

The main project README has complete examples, supported indicators, and migration guidance.

License

See the 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