TechnicalAnalysis.Net.Util
3.0.0
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
<PackageReference Include="TechnicalAnalysis.Net.Util" Version="3.0.0" />
<PackageVersion Include="TechnicalAnalysis.Net.Util" Version="3.0.0" />
<PackageReference Include="TechnicalAnalysis.Net.Util" />
paket add TechnicalAnalysis.Net.Util --version 3.0.0
#r "nuget: TechnicalAnalysis.Net.Util, 3.0.0"
#:package TechnicalAnalysis.Net.Util@3.0.0
#addin nuget:?package=TechnicalAnalysis.Net.Util&version=3.0.0
#tool nuget:?package=TechnicalAnalysis.Net.Util&version=3.0.0
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 | Versions 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. |
-
net10.0
- TA-Lib (>= 0.8.3)
- TechnicalAnalysis.Net.Contracts (>= 3.0.0)
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.