plot
Draw a line on the chart. show is the same word.
plot series as "Title" color
Title is optional. Color is one of the named colors (see colors). Without a color the line is blue. Alias: show ema(9) as "Fast" blue. Prefer plot in new scripts (show still works). Custom / derived indicators are just assignments: momentum = rsi(close, 14) - rsi(close, 28) then plot momentum.
Return value
—
Also accepted: show.
Note
- Use oscillator at the top of the script to put plots in a separate pane.
Example
fast = ema(9) slow = ema(21) plot fast as "Fast" blue plot slow as "Slow" orange