Appearance

Personalize your experience

Mode
Accent Color
Direction
All Docs/QuaScript//
QuaScript logo

QuaScript Documentation

Language guide, engine API, 601 builtins and the preset library · v3.0.0-phase1

Diagnostics

The compiler reports every problem it finds (up to 50), each with a stable code, the exact source range and, when the fix is mechanical, a replacement the editor offers as a quick fix. Errors stop the script from running; warnings do not.

Errors

CodeMeaningTypical fix
E_SYNTAXthe text does not parsecheck braces, commas, = in header settings
E_UNKNOWN_NAMEno variable, function or builtin of that namespelling; the message suggests the closest name
E_UNKNOWN_DIRECTIVEunknown header kindanalysis, strategy, bot or library
E_RETIRED_SYNTAXan old form, e.g. a //@strategy comment headerapply the fix: it rewrites it as a header block
E_DIRECTIVE_ARGa header setting is unknown, duplicated or out of range, or the header is not firstthe message lists the valid values
E_ARITYmissing or extra arguments
E_ARG_NAMEunknown or repeated named argument
E_ARG_ORDERpositional argument after a named one
E_KINDa value of the wrong kind (text where a number is needed, a void call used as a value, ...)
E_NOT_CONSTan argument must be a constant (titles, shapes, profile rows ...)use a literal or a parameter where allowed
E_TUPLE_IN_VALUEa call returning several values used as one value(a, b) = f(...)
E_RECURSIONa function calls itself, directly or through othersrewrite as a loop
E_STATE_IN_LOOPa stateful call inside a runtime loopa constant list / range (unrolled), or move the call out
E_LOOP_CONTROLbreak / continue outside a loop
E_PARAM_DUPtwo parameters with the same idset id = ...
E_ORDER_IN_ANALYSISan order or exit in an analysis scriptuse a strategy or bot header
E_RESERVED_NAME / E_RESERVED_DOMAINa keyword or builtin domain used as a namerename
E_DUPLICATE_SYMBOLthe same name declared twice
E_LIBRARY_NOT_FOUND / E_LIBRARY_NAME_MISMATCH / E_LIBRARY_CYCLElibrary problemssee Libraries
E_STACK_DEPTHan expression too deep for the VMsplit it into variables

Warnings

CodeMeaning
W_STATE_IN_BRANCHa stateful call inside if / match / ?: only advances on some bars

Runtime warnings

Reported once per call site in meta.runtimeWarnings:

CodeMeaning
W_HOST_DATAhost data (order book, fundamentals, ...) is not supplied by this chart
W_FEED_MISSINGan external feed was not supplied
W_INDEX_RANGEread outside a collection (the result is na)
W_DRAW_IDa drawing id that does not exist (deleted or never created)
W_TIMEZONE / W_SESSION / W_INTERVALan invalid time zone, session or interval value (UTC / no session / na is used)

Runtime errors

LIMIT_EXCEEDED with the limit's name (loop, instructions, memory, collection) stops the run; see Execution model.


© 2026 Quatick Technologies. All rights reserved.