Search found 1 match

Go to advanced search

by benjaminbarch
Tue Dec 06, 2022 5:21 pm
Forum: Pine Script Q&A
Topic: How do you code "dotted lines"?
Replies: 4
Views: 5939
 
Jump to post

Re: How do you code "dotted lines"?

The plot.style_circles seems to plot as a dotted line ok. Try something like this.

Code: Select all

//@version=5
indicator("Dotted EMA5")


inputColor = input.color(title="My Colored Line", defval = color.blue)
whatImPlotting = ta.ema(close, 5)

plot(whatImPlotting, style=plot.style_circles, color=inputColor)

Go to advanced search