Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to modify this pinescript v5 code to plot dotted line?

I would like to plot dotted line. How can I modify the code below to plot dotted line?

plot(series=test_series,color=Color,linewidth=3,title="testplot")

I am using pinescript 5.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

plot does not have a dotted style.

style (input plot_style) Type of plot. Possible values are:
plot.style_line, plot.style_stepline, plot.style_stepline_diamond,
plot.style_histogram, plot.style_cross, plot.style_area,
plot.style_columns, plot.style_circles, plot.style_linebr,
plot.style_areabr. Default value is plot.style_line.

You can try plot.style_circles for a similar effect.

Or use line which has a dotted style.

style (series string) Line style. Possible values: line.style_solid,
line.style_dotted, line.style_dashed, line.style_arrow_left,
line.style_arrow_right, line.style_arrow_both.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading