Syntax Limitations
Current restrictions in kScript syntax and expression support.
kScript currently only supports single-line comments using //
. Multi-line block comments with /* */
are not yet supported.
String literals must use double quotes ("
). Single quotes ('
) are not supported and will cause syntax errors.
Function calls must use either all keyword arguments or all positional arguments. Mixing both styles in the same function call is not supported and will cause errors.
kScript only supports the var
keyword for variable declarations. Modern JavaScript keywords like let
and const
are not supported.
var
for all variable declarations, timeseries
for time series data sources Feature Limitations
Language features that are currently not available or have restrictions.
kScript does not support importing code from other files. All code must be written in a single file.
kScript only supports if/else
conditionals. The switch/case
statement is not available.
Function parameters cannot have default values. All parameters must be provided when calling the function.
input()
function for user-configurable defaults Functions must have a fixed number of parameters. Variable-length argument lists (rest parameters) are not supported.
kScript has a restricted set of data types compared to general-purpose programming languages. Supported types include numbers, strings, booleans, and timeseries.
number
, string
, boolean
, timeseries
, array
(v2.0) kScript is still expanding its standard library. Some functions available in other scripting languages may not yet be available.
Data Processing Limitations
Constraints when working with historical and timeseries data.
Historical data availability depends on the data source. Accessing data too far back may return NaN
or undefined values.
NaN
values and validate barIndex
before accessing historical data We're Here to Help
Encountered a limitation not listed here? Have a feature request?
Report bugs and share feedback in 🐞bugs-kscript or reach out to the development team. Your input helps us prioritize improvements!