How to change line thickness

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #159858 quote
    darko
    Participant
    Junior

    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

    #159859 quote
    JC_Bywan
    Moderator
    Master

    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)
    #159863 quote
    darko
    Participant
    Junior

    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

    #159873 quote
    JC_Bywan
    Moderator
    Master

    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)
    #159874 quote
    darko
    Participant
    Junior

    Thanks, much appreciated

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

How to change line thickness


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
darko @darko Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by darko
5 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/29/2021
Status: Active
Attachments: No files
Logo Logo
Loading...