Ta4j Wiki

Documentation, examples and further information of the ta4j project

View the Wiki On GitHub

This project is maintained by ta4j Organization

Ta4 main chart

Welcome to the ta4j Wiki

ta4j gives you the building blocks for technical-analysis-driven systems in Java: bar series, indicators, rules, strategies, reports, and a unified trading-record model that now spans backtests, paper trading, and live execution.

What’s Newer On Current Master

Start Here

  1. Install ta4j - Follow Getting Started to build from the current branch or wire the latest release into your project.
  2. Learn the building blocks - Read Bar Series & Bars, Num, and Technical Indicators.
  3. Build your first strategy - Use the walkthrough in Getting Started.
  4. Choose the right execution path - Use Backtesting for BarSeriesManager and BacktestExecutor, then Live Trading for event-driven loops.

Unified Trading Stack At A Glance

Scenario Recommended path Core classes
Quick historical validation BarSeriesManager BarSeriesManager, BaseTradingRecord, TradeExecutionModel
Parameter sweeps and leaderboards BacktestExecutor BacktestExecutor, WeightedCriterion, BacktestRuntimeReport
Deterministic replay with a preconfigured record BarSeriesManager.run(..., tradingRecord, ...) BaseTradingRecord, ExecutionMatchPolicy
Live or paper execution with asynchronous fills Manual loop Strategy, TradingRecord, TradeFill, Trade.fromFills(...), ConcurrentBarSeries
Older live adapter compatibility Temporary bridge only LiveTradingRecord, ExecutionFill

The key change is simple: new code no longer needs a split “backtest record” versus “live record” mental model. BaseTradingRecord already supports classic enter / exit operations, fill-aware updates, open-lot views, recorded fees, and open-position criteria.

Where To Go Next

Community