runtime.error

Stops the script with this error message (shown on the chart legend).

runtime.error(message: string)

Parameters

Example

if timeframe.in_seconds > 1800
    runtime.error("Use a timeframe of 30 minutes or less")