Skip to content

v0.8.4

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 20:34

Installation docs: https://ta-lib.org/install/

Just re-install to upgrade. Older versions are automatically removed.

See github commits for complete list of changes

[0.8.4] 2026-12-04

Added

  • TypeScript: New ta-lib package on npm (npm install ta-lib). WebAssembly-accelerated, with automatic TypeScript fallback. (#574)

  • Go: New native ta-lib.github.io/go module (go get ta-lib.github.io/go), batch and streaming. See https://ta-lib.org/api/go/ (#573)

  • EMA variant setting: TA_SetEMAVariation(TA_EMAVariation_FIRST_BAR_SEED) starts EMA from the first element of the input array. The default behavior (using SMA as first value) is still the default TA-Lib behavior. See https://ta-lib.org/api/ema-variant-settings/ (#622)

  • Abstract API: TA_GetFuncAttributes and new output flags tell a charting app more about
    an output, e.g. an oscillator's reference levels. See https://ta-lib.org/api/abstract/ (#585)

  • Abstract API: each input says which signs it admits, with TA_IN_POSITIVE, TA_IN_NEGATIVE and TA_IN_ZERO e.g. SQRT's supports positive and zero only. See https://ta-lib.org/spec/abstract/#input-signs (#631)

  • New TA Functions:

    • ALLIGATOR: Williams Alligator, three smoothed moving averages of the median price (#584)
    • CE: Chandelier Exit, the highest high and lowest low offset by a multiple of the ATR (#568)
    • CPR: Central Pivot Range, the previous bar's central pivot and the two lines straddling it (#626)
    • GATOR: Gator Oscillator, the gaps between the Alligator's lines as two histograms (#583)
    • MACDV: MACD-V, Spiroglou's volatility-normalised MACD, the EMA spread over the ATR (#570)
    • MAENV: Moving Average Envelope, ma with fixed percentage bands (#610)
    • PSY: Psychological Line, percentage of bars that closed higher than the previous bar (#625) Thanks @Nimesh-0000 !
    • SHARPE: Rolling Sharpe Ratio, annualized mean excess return over its standard deviation (#571)
    • SKEW: Rolling Skewness, the adjusted Fisher-Pearson coefficient (#569)
    • SORTINO: Rolling Sortino Ratio, annualized mean excess return over its downside deviation (#572)
    • SSF: Ehlers SuperSmoother Filter, a two-pole low-pass smoother with a zero at Nyquist (#609)
    • ULCER: Ulcer Index, Peter Martin's root mean square of percent drawdowns from each window's running peak (#627) Thanks @Kartikmaheshwari080205 !
    • ULCER_ROLL: Ulcer Index, the root mean square of percent drawdowns from a rolling high (#628)
  • New MAType (for MA, BBANDS, STOCH etc...):

    • TA_MAType_SSF SuperSmoother Filter (#609)

Faster

  • ~2x to 5x, up to 7x in batch: most candlestick patterns, batch and streaming. Pre-check,
    default-settings and branch-free optimizations (#566, #580). Thanks @Yvictor !
  • WCLPRICE: faster in Rust and TypeScript (#598)
  • Rust: faster when built as a dependency with cargo's default release profile,
    e.g. HMA ~2x, STC ~40%, and EMA, DEMA, TEMA, PPO and TRIX 10% to 25% on x86-64.
  • C and Rust: Ehlers' SWAK filters (HP, GAUSS, BUTTER, 2PHP) 10% to 20% faster on Intel
    x86-64, and MAVP up to 21%.

Changed

  • (#560) CCI optimization with some floating-point re-ordering. Values move in the last digits.
  • Opening a stream on an empty history returns TA_INSUFFICIENT_HISTORY, instead of
    TA_OUT_OF_RANGE_START_INDEX.
  • A period that feeds a moving average type (MA, BBANDS, STOCH, MACDEXT etc...) is now at most
    10000, the limit of TA_MAType_SSF. A larger one returns TA_BAD_PARAM. (#632)
  • Abstract API: candlestick outputs no longer carry TA_OUT_LINE, AVGDEV is no longer
    flagged as an overlap, and BETA is flagged as needing positive input. (#585)
  • Abstract API: sign flags adjusted for several functions. Output values are unchanged. (#631)
  • CMake: BUILD_DEV_TOOLS is deprecated, use BUILD_TESTING (best practice)
  • C#: InputInfo.Components is replaced by InputInfo.Flags (InputFlags), which carries an input's
    price components and its sign flags (TA_IN_POSITIVE, TA_IN_NEGATIVE, TA_IN_ZERO). (#631)

Fixed

  • (#588) VORTEX and ULTOSC no longer go negative after a bar far larger than its neighbours. Thanks @kevinlincg !

Also thanks to: @jjohnnystwsss (#612), @AskXD (#659), @omarelshamy25x (#658) and @nagibatorz (#603).

TypeScript

First release on npm: npm install ta-lib. Thanks to Christopher Supnig (supnig.com) for the npm name.