Tinet
Tulip Indicators bindings for .NET (Technical Analysis)
Install / Use
/learn @TulipCharts/TinetREADME
TINet (Tulip Indicators .NET Wrapper)
Introduction
TINet is a .NET wrapper for Tulip Indicators that provides access to all the technical analysis functions from the Tulip Indicators library.
Example Usage
In Visual Studio, create a new C# console application.
Add a reference to tinet.dll.
All TINet indicators have the same interface. They take an array of inputs, an array of options, and an array of outputs.
Simple Moving Average example:
//Run SMA on close prices using a smoothing period of 4 bars.
double[] close_prices = new double[] {5, 4, 5, 4, 4, 6, 5, 4, 5, 2, 5, 5, 5, 4, 4, 3};
double[] options = new double[] {4};
//Find output size and allocate output space.
int output_length = close_prices.Length - tinet.indicators.sma.start(options);
double[] output = new double[output_length];
double[][] inputs = { close_prices };
double[][] outputs = { output };
int success = tinet.indicators.sma.run(inputs, options, outputs);
Console.WriteLine("Input bars:");
Console.WriteLine(string.Join(",", close_prices));
Console.WriteLine("SMA Output:");
Console.WriteLine(string.Join(",", output));
Console.WriteLine("Press any key to continue.");
Console.ReadKey();
Indicators that take more inputs, options, or outputs have exactly the same interface. You simply need to pass in the extra parameters.
You can find the expected parameters at https://tulipindicators.org or you can see them programatically like so:
Console.WriteLine(string.Join(", ", tinet.indicators.stoch.inputs())); // high, low, close
Console.WriteLine(string.Join(", ", tinet.indicators.stoch.options())); // %k period, %k slowing period, %d period
Console.WriteLine(string.Join(", ", tinet.indicators.stoch.outputs())); // stoch_k, stoch_d
//Call Stochastic Oscillator, taking 3 inputs, 3 options, and 2 outputs.
//Assuming high, low, and close are input arrays.
double[] options = new double[] {5, 3, 3};
int output_length = close.Length - tinet.indicators.stoch.start(options);
double[] stoch_k = new double[output_length];
double[] stoch_d = new double[output_length];
double[][] inputs = {high, low, close};
double[][] outputs = {stoch_k, stoch_d};
int success = tinet.indicators.stoch.run(inputs, options, outputs);
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
