# ta4j/ta4j

A Java library for technical analysis.

Repository: https://github.com/ta4j/ta4j
Canonical: https://ross.abutalabs.com/products/ta4j
Homepage: http://www.ta4j.com
Language: Java
License: NOASSERTION
License Family: other
Topics: java-library, stocks, forex, bitcoin, ethereum, trading-algorithms, trading-strategies, trading, java, ta4j, technical-analysis
Last push: 2026-08-26T21:48:31+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 97, longevity 100
- inputs: {"age_days": 3275, "days_push": 7, "days_rel": 23, "gap_med": 13, "n_releases_24m": 16}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2482, forks 803 (observed 2026-08-28T04:06:55.309021+00:00)

## What it is
ta4j is an open-source Java library for technical analysis of financial time series. It provides a typed, composable model of bars, indicators, rules, and strategies, plus backtesting with realistic execution costs and reusable live-trading logic.

## Use cases
- backtest trading strategies in Java
- compute technical indicators like moving averages and RSI
- detect candlestick patterns in OHLCV data
- rank and tune many candidate trading strategies
- research walk-forward and parameter-optimized strategies
- reuse strategy logic in a live trading application
- analyze risk and return of trading rules

## When to choose
- you are building trading or market-analysis tooling on the JVM
- you want reproducible backtests with explicit cost and execution assumptions
- you prefer a typed, composable Java API over Python or a proprietary DSL
- you need a broad catalog of indicators and candlestick patterns

## When to avoid
- you need built-in broker connectivity or market data feeds
- your stack is Python or another non-JVM language
- you want a turnkey trading bot rather than a research library
- you require a license other than MIT for strict compliance review

## Facets
- artifact type: library
- maturity: active
- function: trading, math, data-science, charts
- domain: fintech, developer-tools
- platform: jvm, cross-platform
- tags: technical-analysis, backtesting, trading-strategies, indicators, stocks, forex, ohlcv, cryptocurrency, algorithms

## Member repositories
- ta4j/ta4j (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:55.309021+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:28:13.377237+00:00, confidence not recorded.
  - readme: https://github.com/ta4j/ta4j (fetched 2026-08-28T04:06:55.309021+00:00, sha ec5b5cdef3e8)
  - homepage: http://www.ta4j.com (fetched 2026-08-29T10:10:04.288319+00:00, sha d9624e2be72e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
