indicator() declaration

The optional first line declares where the indicator is placed and how its Y axis behaves. It must appear before any input.* line. Without it the indicator lands in a sub-pane with a shared, auto-scaled axis.

indicator('RSI', overlay=false, scale=scale.none, min=0, max=100, ticks=5)
ArgumentMeaning
'Name'First positional argument — the indicator name shown in the legend. Also accepted as title=.
overlay=true | falsetrue draws on the main price pane; false creates a sub-pane. Default false.
scale=scale.sharedDefault. Shares the Y axis with the pane it sits on.
scale=scale.noneNo axis scaling of its own — pair with min / max for a fixed range such as an oscillator.
scale=scale.independentOwn independent axis, auto-scaled separately from the rest of the pane.
min= / max=Fixed axis range. Both must be given together and max must exceed min, otherwise compilation fails.
ticks=NNumber of gridline divisions on the axis. Must be 2 or more. Default 5.