Hi,
I have this indicator that draws a line, but I would need it to be thicker, is that possible?
Drawsegment(MyBar,a,barindex+1,a) coloured(148,0,211)
Thanks
Hi,
You posted in French forum, please see rules in yellow box at bottom of this page, in particular here the rule about having forum of choice and language used aligned, thanks. I’ll move your post to the English probuilder forum.
As for the answer to your query, assuming you’re in v11, just add style(line,2) at the end of your drawsegment line (1 is default value you see, 2 is slightly bigger, other choices are 3, 4 or 5 only):
Drawsegment(MyBar,a,barindex+1,a) coloured(148,0,211) style(line,2)
Désolé, je pensais que c’était le forum en anglais.
Je suis toujours sur la version 10.3 et votre suggestion ne semble pas marcher.
Auriez-vous un code pour la version 10.3?
Merci d’avance
Sorry, I thought this was the English forum.
I’m still on version 10.3 and your suggestion doesn’t seem to work.
Do you have a code for version 10.3?
thank you in advance
Style won’t work with drawsegment in v10.3
However, your segment seems to be horizontal (height “a” for both points), and a zero width rectangle would appear horizontally and slightly thicker than a segment, you could try this as a workaround to replace only horizontal segments, and see if it’s thicker enough for your needs, until your broker switches to v11:
DRAWRECTANGLE(MyBar,a,barindex+1,a)