How to double a segment thickness?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #170204 quote
    RubberToeRubberToe
    Participant
    Average

    I quite like the Pivot Support/Resistance Zones indicator from the library, but I find the DRAWSEGMENT lines very hard to see.  Is there a way to double the thickness, or draw 2 segments stacked to be more visible?

    DEFPARAM CalculateOnLastBars = 1000
    PivotBAR = 2 //2 bars AFTER pivot
    LookBack = 4 //3 bars BEFORE pivot
    BarLookBack = PivotBAR + 1
    IF low[PivotBAR] < lowest[LookBack](low)[BarLookBack] THEN
    IF low[PivotBAR] = lowest[BarLookBack](low) THEN
    MySupport = BarIndex - PivotBAR
    SupportPrice = low[PivotBAR]
    ENDIF
    ENDIF
    IF high[PivotBAR] > highest[LookBack](high)[BarLookBack] THEN
    IF high[PivotBAR] = highest[BarLookBack](high) THEN
    MyResistance = BarIndex - PivotBAR
    ResistancePrice = high[PivotBAR]//high[BarIndex - MyResistance]
    ENDIF
    ENDIF
    DRAWSEGMENT(MyResistance,ResistancePrice,BarIndex,ResistancePrice) COLOURED(255,0,0,255)
    DRAWSEGMENT(MySupport,SupportPrice,BarIndex,SupportPrice) COLOURED(0,128,0,255)
    RETURN
    #170207 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You can use STYLE https://www.prorealcode.com/documentation/style/.

    DRAWSEGMENT(MyResistance,ResistancePrice,BarIndex,ResistancePrice) COLOURED(255,0,0,255) style(line,2)
    RubberToe thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

How to double a segment thickness?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
RubberToe @rubbertoe Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 4 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/23/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...