plot

Syntax

plot <plot_name>=<expression>;

or

plot <plot_name>;

<plot_name>=<expression>;

Description

Renders the data you are working with on the chart.

Example

plot SMA = Average(close, 12);

This example draws a simple moving average study plot.

You can separate the plot definition from its value assignment. Consider the following example:

plot First;

plot Second;

Second = Average(close, 10);
First = Second[10];

Here, the plots are declared first, and their values are defined afterwards. This notation can be useful when you need to plot a value that depends on another while keeping the reverse order of plots.