display

The display namespace provides constants that control where plotted values and inputs appear in the TradingView chart interface. These constants are used as arguments to the display parameter of plot*() and input*() functions.

Quick Example

from pynecore.lib import script, close, ta, plot, display

@script.indicator(title="Display Example", overlay=False)
def main():
    sma: float = ta.sma(close, 20)
    # Show only in the chart pane, hide from price scale and status line
    plot(sma, title="SMA20", display=display.pane)

Constants

ConstantDescription
display.allShow in all available locations (chart pane, price scale, status line, and Data Window).
display.noneHide entirely — the value is not shown anywhere in the UI.
display.paneShow only in the chart pane where the script is rendered.
display.price_scaleShow the plot’s label and value on the price scale (if the chart settings allow it).
display.status_lineShow the value in the status line next to the script title.
display.data_windowShow the value in the Data Window panel.

Constants can be combined using the + operator:

plot(close, display=display.pane + display.status_line)