Skip to main content
The default compile-and-save path is tradarascript-v2. It compiles source through the compiler and runs the VM. plot(close) and composed ta.* studies execute directly. Explicit legacy tradarascript-v1 scripts use kind inference. That compatibility path scans source and selects one registered indicatorKind; extra formulas are not executed. The compiler-front-end check is available for both versions. On v1, passing the check does not change which native family runs.

Rule

Your source must contain at least one of:
  • A supported ta.* token (for example ta.sma, ta.ema, ta.rsi)
  • A recognized study("...") title used by a seeded built-in
  • builtin_indicator("kind") — Tradara-authored built-ins only, not a customer API
If none match, compile returns:

What “Ready” means

Ready means a family was detected, not that every line of your source will run. Extra comments, unused inputs, and extra plots are ignored. The chart uses the native implementation for the detected kind and the subscription’s input_values. Example: this compiles as SMA. Changing the plot title does not change the math.

What does not compile

On v1 there is no ta.* marker and no builtin_indicator, so the service cannot choose a family. On v2 that source compiles and plots close. Combining two families in one script does not create a hybrid. The longest matching marker wins. The other family is not executed. A composed script such as an EMA spread can pass the compiler check. On v1 it still maps to only the native EMA family when saved. On v2 the composition runs.

Detection order

  1. builtin_indicator("kind") if present
  2. Otherwise the longest matching substring in the marker table (ta.sma, study("hull moving average", fragments such as ta.ema(ta.ema(m, long), short), and a few legacy ema( / sma( calls)
Prefer an explicit ta.* call that matches the family you want. Do not rely on accidental substring hits.

Inputs

input.int and input.float in source are authoring. The live values come from the indicator settings on the subscription, using the metadata for that kind. Adding an input the kind does not declare will not create a new control.