Ta4j Wiki

Documentation, examples and further information of the ta4j project

View the Wiki On GitHub

This project is maintained by ta4j Organization

Migration and Version Compatibility

This page summarizes preferred APIs and compatibility guidance for current ta4j usage.

Preferred APIs for new code

Capability Preferred API Compatibility API
Trading record BaseTradingRecord LiveTradingRecord (migration only)
Fill recording TradeFill + TradingRecord.operate(fill) ExecutionFill (migration only)
Backtest single strategy BarSeriesManager legacy custom loops where not needed
Backtest strategy batches BacktestExecutor custom batch wrappers without telemetry

Migration lane

  1. Keep existing adapter interfaces stable.
  2. Replace execution events with TradeFill.
  3. Route record updates through TradingRecord.operate(fill) or grouped Trade.fromFills(...).
  4. Validate parity with TradingRecordParityBacktest and TradeFillRecordingExample.
  5. Remove compatibility APIs once downstream consumers are migrated.

Compatibility notes