runtime.error
Stops the script with this error message (shown on the chart legend).
runtime.error(message: string)
Parameters
messagestring: The text shown on the chart legend; na shows "runtime.error".
Example
if timeframe.in_seconds > 1800
runtime.error("Use a timeframe of 30 minutes or less")