Documentation, examples and further information of the ta4j project
This project is maintained by ta4j Organization
The ta4j-examples module is the runnable companion to this wiki. Each example is a standalone main program you can open in your IDE or run with Maven.
ChartWorkflow guideWeightedCriterion.of(...), getTopStrategiesWeighted(...))BaseTradingRecord runsTradingRecord.operate(fill), group batches with Trade.fromFills(...), and compare FIFO, LIFO, AVG_COST, and SPECIFIC_ID exit matchingBacktestExecutorIf you are learning the current execution stack, start with Quickstart, then TradingRecordParityBacktest, then TradeFillRecordingExample, and finally SimpleMovingAverageRangeBacktest.
BaseTradingRecordConcurrentBarSeries, fill-driven record updates, and recoveryFor new live code:
BaseTradingRecord as the record typeTradingRecord.operate(fill) or batch one logical order with Trade.fromFills(...)ConcurrentBarSeries when feed ingestion and strategy evaluation happen on different threadsLiveTradingRecord and ExecutionFill as compatibility-only APIs during migrationThe examples module also contains data-source adapters, charting helpers, Elliott Wave demos, and indicator showcases. If a workflow is documented in the wiki but missing a runnable example, contributions are welcome.