runtime
Stopping the script with an error.
#Functions
#runtime.errorfunction
Stops the script with this message.
runtime.error(message: string)| Parameter | Type | Description |
|---|---|---|
message | string | The text. |
Example
if (close < 0) {
runtime.error("negative price")
}Since ChartScript 1