Repolode
mihakralj

mihakralj/QuanTAlib

A C# and Python library of 447 technical analysis indicators with O(1) streaming and SIMD batch modes, cross-checked against TA-Lib and others.

Open-source alternative to:TradingView

Stars
129
Forks
29
Open issues
12
Last commit
last month

Repolode describes open-source projects and does not give investment advice. Trading and investing can lose money: assess the risk yourself and follow the laws where you live before using this project.

What is it?

QuanTAlib is a technical analysis library that implements 447 indicators across C#, Python and PineScript. Each indicator is cross-checked against TA-Lib, Tulip, Skender and pandas-ta, and the same indicator is intended to produce the same results in all three languages.

The C# API offers two modes. Streaming mode updates an indicator value by value with fixed memory and internal state, which suits real-time feeds. Batch mode works on contiguous Span<double> buffers with SIMD vectorization and no heap allocation. Bars can also be corrected mid-stream without a full recalculation.

The Python package ships as a compiled native wheel for Windows, Linux and macOS, and works with NumPy, pandas, polars and PyArrow. Each indicator is also provided as a standalone PineScript file for TradingView.

Key features

  • 01Provides 447 indicators spanning trends, oscillators, volatility, volume, and more.
  • 02Offers O(1) per-update streaming calculation with internal state.
  • 03Offers SIMD-vectorized batch calculation over Span<double> with zero heap allocation.
  • 04Ships Python wheels for Windows, Linux x64/arm64, and macOS.
  • 05Supplies PineScript v6 versions of indicators for TradingView.

Use cases

  • Building real-time trading signals from streaming tick or bar data in C#.
  • Backtesting strategies over large historical price series in Python with NumPy or pandas.
  • Porting an indicator from TradingView scripts to a C# or Python codebase while checking results match.
  • Comparing indicator outputs across several technical analysis libraries.

Quick start

  1. 1

    Install the .NET package

    dotnet add package QuanTAlib
  2. 2

    Install the Python package

    pip install quantalib

Things to know

  • Python wheels are published only for Windows x64, Linux x64/arm64 and macOS x64/arm64.

Topics

FAQ

What is QuanTAlib?
A C# and Python library of 447 technical analysis indicators with O(1) streaming and SIMD batch modes, cross-checked against TA-Lib and others. QuanTAlib is a technical analysis library that implements 447 indicators across C#, Python and PineScript. Each indicator is cross-checked against TA-Lib, Tulip, Skender and pandas-ta, and the same indicator is intended to produce the same results in all three languages.
Is QuanTAlib free to use? What license does it have?
QuanTAlib is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is QuanTAlib still maintained?
Updated within 6 months. The last commit to QuanTAlib was on Sep 28, 2026.
What can I use QuanTAlib for?
Building real-time trading signals from streaming tick or bar data in C#. Backtesting strategies over large historical price series in Python with NumPy or pandas. Porting an indicator from TradingView scripts to a C# or Python codebase while checking results match. Comparing indicator outputs across several technical analysis libraries.
How do I install QuanTAlib?
Install the .NET package: dotnet add package QuanTAlib Install the Python package: pip install quantalib
Where can I get QuanTAlib?
The source code and installation instructions are on GitHub: https://github.com/mihakralj/QuanTAlib

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects