Skip to main content
TradaraScript is the language you write in Script Studio in the Tradara terminal. Source looks like Pine Script. v1 charts run a native indicator family. v2 charts run your compiled formula.
tradarascript-v1 does not execute your formula. It matches source to a registered native indicator family (for example SMA or RSI). The chart then streams that family’s hand-written implementation.tradarascript-v2 compiles source to bytecode and evaluates it on bar close. Opt in with //@version=tradarascript-v2. The VM covers the compiler manifest, not full Pine.

What you can do

  • Open Script Studio, compile a study, save it, and add it to a chart.
  • Use built-in indicator families with input.* values the terminal already understands.
  • Ask the TradaraScript assistant to draft source or translate Pine, then compile before you save.
  • Check composed expressions, function signatures, types, and bounded history references against the compiler manifest.
  • Run composed ta.* studies on a chart when you save them as tradarascript-v2.
  • Use indented if / else, constant bounded for, and chart-rendered plotshape output in v2.
  • Create persistent labels and boxes with label.new and box.new.
  • Build v2 signal strategies with strategy.signal_long, strategy.signal_short, and strategy.signal_flat. Signals appear as chart markers and publish for downstream consumers. They never place orders.

What you cannot do yet

  • Treat v1 ta.* as a callable library. On v1, ta.sma selects the SMA family.
  • Place orders from a script. Strategies emit signals; they do not call the broker.
  • Use dynamic loops, while, request.security against another symbol, or strategy order APIs.
See Limits and Coming from Pine.

How a script reaches the chart

Evaluation is bar-close on futures and crypto. Tick-by-tick script evaluation is not available.

Studies and strategies

Choose Study for scripts that draw with plot() or plotshape(). A study cannot call strategy.*. Choose Strategy for v2 scripts that describe entry and exit conditions. A strategy must emit at least one open signal with strategy.signal_long() or strategy.signal_short(), plus a close signal with strategy.signal_flat().
Script Studio checks this distinction as you edit. The server repeats the same validation before it saves or deploys a bundle.

Language version

Use this header in new studies:
The v1 compiler ignores the version comment for dispatch. Keep it so source stays consistent. To execute composed source, use: