Skip to main content

Tracer AI Scripting Reference#

You write Tracer Terminal indicators in Tracer Script, a JavaScript dialect that runs against your chart. This reference lists every function, helper, and data source you can call, grouped by namespace.

Each function page shows its syntax, arguments, return value, and a runnable example. For a walkthrough of writing an indicator from scratch, see Building Indicators. To have the AI write one for you, see the TracerAI Overview.

Namespaces#

  • indicator.* — Runtime hooks (onBar, plot, getSettings, entity.*)
  • data.* — OHLCV accessors and the source(...) declaration
  • data-sources.* — Data-source declarations and the tracer.* endpoint catalog
  • ta.* — Technical-analysis primitives
  • chart.* — Chart context and metadata
  • math.* — Pure math utilities
  • types.* — Runtime type definitions