Ta4j Wiki

Documentation, examples and further information of the ta4j project

View the Wiki On GitHub

This project is maintained by ta4j Organization

Live Trading Runbook

This runbook documents the minimum production operating model for ta4j-based live systems.

Scope and ownership

ta4j provides:

Your system still owns:

Standard control loop

  1. Ingest bars/trades into series
  2. Evaluate strategy on close (or your chosen deterministic checkpoint)
  3. Emit order intent
  4. Update trading record from broker-confirmed fills
  5. Publish metrics and risk snapshots

Reference docs:

Startup checklist

Runtime controls

Data integrity

Execution integrity

Risk integrity

Persistence model

Persist at minimum:

Persist before marking events as durable in downstream systems.

Recovery and reconciliation procedure

  1. Pause new strategy-triggered submissions
  2. Reload series and trading record from durable state
  3. Fetch broker open positions and open orders
  4. Reconcile differences:
    • missing local fills -> backfill into TradingRecord
    • unknown broker orders -> quarantine and investigate
  5. Recompute open-position metrics (getCurrentPosition, getOpenPositions)
  6. Resume signal evaluation only after state convergence

Incident playbook

Stale or missing bars

Repeated order rejects

Divergent position state (local vs broker)

Observability minimum

Track and alert on:

References