Skip to main content
These limits are the product today. They are not undocumented bugs.

Execution

  • tradarascript-v1 is not interpreted. Only a registered indicator kind runs.
  • On v1, ta.* in source is a detection token, not a composable library.
  • tradarascript-v2 executes composed ta.*, math, inputs, plots, shapes, labels, boxes, strategy signals, var, bounded control flow, and constant history within the compiler manifest.
  • Evaluation is bar-close. There is no tick script mode. varip is accepted as var.
  • On v1, one script maps to one kind. Combining markers does not merge math.

Language

  • User-defined functions execute on v2 by inlining, including indented bodies and tuple returns ([a, b] = get_range()). They do not on v1
  • v2 supports indented if / else and switch expressions
  • v2 supports for loops with numeric bounds. Constant bounds over 256 iterations still error
  • v2 supports for [index, value] in array and user-defined types
  • No while
  • plotshape emits script.output.v2 shape events and renders them on the matching terminal chart bar. style, color, location, and size are per-declaration; dynamic per-bar styling is not available yet
  • No hline, fill, bgcolor, or dynamic plot colors
  • plot accepts a constant linewidth from 1 through 10
  • plotcandle emits overlay candles
  • input.session, input.color, and input.timeframe are live v2 inputs. input.source is not a live control yet

Chart and data

  • label.new and box.new support persistent handles, setters, and deletion
  • Each script instance keeps at most 50 labels and 50 boxes. Creating another object evicts the oldest object of that type.
  • xloc.bar_index and xloc.bar_time are supported for labels, boxes, and lines
  • line.new, polyline.new, linefill.new, and table.* render on the chart
  • display.* bitflags, format.volume, and position.* table corners are constants
  • array.* and map.* run on bar close. matrix.* does not
  • chart.point.new and drawing point setters run on bar close
  • request.security resamples the current symbol. lookahead=barmerge.lookahead_on is accepted. Other symbols return na
  • time(timeframe, session, timezone) accepts runtime-constructed timezone strings and syminfo.timezone. dayofweek / hour / minute / last_bar_time / last_bar_index / timeframe.isdaily are available. session.ismarket and other session.* helpers are not a script API yet
  • alert and alertcondition emit bar events; they do not place orders

Strategy signals

  • Scripts do not place, modify, or cancel orders
  • No broker emulator or live order placement
  • Strategies emit long, short, and flat signals on bar close
  • strategy.entry / strategy.order emit open signals; strategy.close / strategy.exit / strategy.cancel emit flat
  • Every strategy must include at least one open call and one close call
  • Strategy position state and backtesting are not available yet

Editor

  • Plain textarea, not Monaco
  • Script Studio marks validation failures in the gutter and bottom status strip
  • Study/strategy mismatches are checked immediately in the editor and again by the service

Assist

The assistant can draft executable v2 source from the compiler manifest or map v1 source to an existing native family. It compile-checks before returning source and must not hide unsupported behavior behind an SMA wrapper. See AI assist.