Skip to content
ChartDeck ChartScript docs Account Open the terminal

runtime

Stopping the script with an error.

#Functions

#runtime.errorfunction

Stops the script with this message.

runtime.error(message: string)
ParameterTypeDescription
messagestringThe text.

Example

ChartScriptFragmentOpen in editor
if (close < 0) {
    runtime.error("negative price")
}

Since ChartScript 1

The ChartScript documentation is in English for now; translations will follow.