indicator
Declares the script as an indicator. Must be the first statement.
indicator(title: const string, shorttitle: const string = na, overlay: const bool = false, precision: const int = na, format: const string = na, max_bars_back: const int = na, max_lines_count: const int = 50, max_boxes_count: const int = 50, max_labels_count: const int = 50, scale: const string = na, explicit_plot_zorder: const bool = false, behind_chart: const bool = false, calc_bars_count: const int = na, max_polylines_count: const int = na, dynamic_requests: const bool = false)
Parameters
titleconst string: The script's name, shown in the legend.shorttitleconst string: A shorter name (default: the title).overlayconst bool: true draws on the price pane, false in a new pane belowprecisionconst int: decimals shown for values; default is the symbol tick precisionformatconst string: Accepted for compatibility; it has no effect yet.max_bars_backconst int: Accepted for compatibility; it has no effect yet (the history limit is fixed, see Limits).max_lines_countconst int: lines kept before the oldest are deleted (1-500)max_boxes_countconst int: boxes kept before the oldest are deleted (1-500)max_labels_countconst int: labels kept before the oldest are deleted (1-500)scaleconst string: Accepted for scripts from Pine and ignored: the script uses the scale of its pane.explicit_plot_zorderconst bool: Accepted for scripts from Pine and ignored: it changes nothing on PROLYNT.behind_chartconst bool: Accepted for scripts from Pine and ignored: plots draw under the candles anyway; tables over them.calc_bars_countconst int: Accepted for scripts from Pine and ignored: the script runs on every loaded bar.max_polylines_countconst int: Accepted for scripts from Pine and ignored: polylines keep their own limit of 100.dynamic_requestsconst bool: Accepted for scripts from Pine and ignored: request.security still needs fixed symbols and timeframes at the top level.
Example
indicator("My indicator", overlay=true)