company logo

Help center

Go to Tradara
Terminal
All collectionsLearn the TerminalTradaraScriptDiagnose TradaraScript errors

Diagnose TradaraScript errors

Resolve empty source, missing names, unsupported-family compile errors, save failures, and chart-add problems.

Script Studio reports a validation, compile, save, loading, or Add to chart failure through notifications and the Compile section. The message text tells you which stage failed; a minimal supported example isolates everything else.

Before you change the source

Keep Script Studio wide enough to display the right-hand side rail, and know which indicator family you expect Tradara to detect.

Copy your current source somewhere outside Script Studio before you make large troubleshooting edits.

Read the compile status

  • Idle — no compile has run for the current session or new-script state.

  • Ready — a supported family was detected.

  • Errors — compilation or the compile request failed.

The error list under Compile contains the details returned by the service. Script Studio does not underline the affected source or attach line numbers to diagnostics.

Source code is empty

The editor contains no non-whitespace source.

  1. Enter source.

  2. Start with a minimal supported example.

  3. Click Compile again.

Script name and source are required

Saving requires both a non-empty Name and non-empty source.

  1. Enter a name.

  2. Confirm source is present.

  3. Click Save script.

compile error: script must reference a supported ta.\* primitive or builtin\_indicator("...")

The compiler did not find a supported `ta.*` marker or supported internal built-in marker.

Try this minimal source:

length = input.int(20, "Length") plot(ta.sma(close, length), "SMA")

A minimal supported source changes the Compile badge to Ready and displays its detected family. If it compiles, reintroduce your changes gradually. A plain `plot(close)` is not sufficient in the current release. `builtin_indicator("...")` is used by Tradara-authored built-ins and is not a customer API.

Compile request failed

The terminal could not complete the compile request.

  1. Check that the terminal is connected.

  2. Retry Compile.

  3. Refresh the terminal if the request continues to fail.

  4. If other authenticated features also fail, sign in again.

Saved, but compile failed

Tradara saved the source as a failed version, but did not create a compiled bundle for it.

  1. Read the first notification and the full error list.

  2. Correct the source.

  3. Compile again.

  4. Save the corrected script.

Failed to load scripts or Failed to load script source

The personal script list or latest version could not be retrieved.

  1. Refresh the terminal.

  2. Select the script again.

  3. Avoid editing while a selected script's loading indicator is visible.

Save or select a script first

Add to chart only works with a saved, selected script. Save the source or choose an item under Your scripts. Once saved, a script can be selected and added to a supported time-based chart.

What compilation does not check

Fixing compile errors does not change account risk rules or place orders.

  • Compilation is family detection, not full syntax or Pine validation.

  • Errors may not identify a line or column.

  • Multiple supported markers can make family detection less obvious. Use a minimal source to isolate the intended family.

  • Script Studio has no runtime-error history view.

  • Strategy backtest and order-execution errors are not applicable, because those customer features are not available.

When to contact Support

Contact Tradara Support if:

  • the untouched starter source fails repeatedly;

  • a successfully saved script disappears after refresh;

  • Add to chart fails on a supported time resolution with a valid instrument;

  • built-in indicators and personal scripts both stop loading.

Include the script name, expected family, exact error text, chart instrument, resolution, and a screenshot. Remove source you do not want to share. Support cannot import a script file for you through a customer share workflow, because that workflow is not available.

Related topics

  • TradaraScript overview and limits

  • Create and add a TradaraScript

  • TradaraScript language and syntax