Errors

The interpreter reports 81 distinct diagnostics. Each is raised with the position in your script that caused it, so the editor can point at the line. Where a message contains a placeholder, the interpreter substitutes the name or type from your script.

Search this page for the text of the message you were shown.

  • Arguments of input functions cannot be 'na'.
  • Both default value and default variable cannot be set
  • Break statement can only be used inside a loop.
  • Cannot assign a non-tuple value to a tuple. The expression right of the assignment operator must be a tuple.
  • Cannot assign a tuple value '%s' to variable '%s'.
  • Cannot assign to built-in variable '%s'
  • Cannot assign to built-in variable '%s'.
  • Cannot assign void value.
  • Cannot find any data for 'h1'.
  • Cannot find any data for 'h2'.
  • Cannot find any data for 'p1'.
  • Cannot find any data for 'p2'.
  • Cannot modify global variable '%s' in function.
  • Continue statement can only be used inside a loop.
  • Could not find any function '%s' in namespace '%s'.
  • Could not find any type function '%s' for '%s'.
  • Could not find function or function reference '%s'.
  • Display type is required for variable function param with multiple types
  • Enum '%s' has no member '%s'.
  • Enum member '%s' already exists.
  • Error reading documentation description: %v
  • Error storing documentation description: %v
  • Error storing documentation: %v
  • Exchange information not set
  • Field '%s' already exists.
  • Function %s have duplicated parameters: %s.
  • Function %s is a builtin function. Cannot override
  • Function with variable args should not have default values
  • Functions that accept a variable number of arguments cannot accept named arguments.
  • History Index must be a number. Got %s.
  • History Index must be number >= 0. Got %d.
  • History Indexing cannot be used on literal or built-in non series values.
  • Index out of range
  • Interval not set
  • Invalid argument passed to Subsctring
  • Invalid plot details type: %v
  • Min args should be atleast 1
  • More than one '%s' arguments are supplied.
  • Nested tuples are not allowed. Got %s.
  • No function arguments to pop
  • No value assigned to '%s' parameter.
  • No variable with name '%s' found.
  • Number of variables on the left side of the assignment operator does not match the number of elements in the tuple on the right side. Expected: %d, Got: %d.
  • Object has no property '%s'.
  • Only one 'default' case is allowed in a switch statement.
  • Pushed nil value to stack
  • Return statement can only be used inside a function.
  • Shadowing variable '%s' which exists in parent scope. Did you want to use the ':=' operator instead of '=' ?
  • Symbol information not set
  • The '%s()' function does not support type arguments.
  • The '%s()' function is missing return statement.
  • The '%s()' function requires %d type arguments but %d were provided.
  • The '%s()' function requires %d type arguments. Example: %s<%s>().
  • The end value of a 'for' loop must be a number.
  • The start value of a 'for' loop must be a number.
  • Trying to access property '%s' of an undefined object.
  • Type Function should have at least one parameter.
  • Type Not Implemented
  • Type functions must have at least one parameter
  • TypedValue is not a NA
  • TypedValue is not a bool
  • TypedValue is not a color
  • TypedValue is not a float
  • TypedValue is not a string
  • TypedValue is not a valid type
  • TypedValue is not an enum
  • TypedValue is not an int
  • TypedValue is not an object
  • Undeclared variable '%s'.
  • Unknown named argument '%s'.
  • Unknown type: %v
  • Unsupported type: %T
  • UserFunction: Execute not implemented
  • Value should be a absolute value not a IPrimaryValue
  • Value with NA type cannot be assigned to a variable that was defined without type keyword.
  • Variable args should be the last parameter
  • Void Expression cannot be used in return statement.
  • Wrong argument value: 'na'.
  • '%s()' must be called in the global scope.
  • 'if' conditional expression must be of a bool type!
  • 'while' conditional expression must be of a bool type!
Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade