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 thesource(...)declarationdata-sources.*— Data-source declarations and thetracer.*endpoint catalogta.*— Technical-analysis primitiveschart.*— Chart context and metadatamath.*— Pure math utilitiestypes.*— Runtime type definitions