Trying to plot a normal serie line but with the V4 of pine script I can't find how to set the style?
This gives me an error :
plot(my_serie, color=color.blue,linewidth=2, style=line.style_dashed)
Any help appreciated.
There is no dashed style for plot()
. This turns the color on and off to achieve the effect:
plot(my_serie, color=bar_index % 2 == 0 ? color.blue : #00000000, linewidth=2)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With