Background colour horizontal

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

    Hi there,

     

    Any way to change the background colour to display horizontal instead of vertical?

     

    Thanks

    #201994 quote
    robertogozzi
    Moderator
    Master

    No, as the background colour is set for each bar, so it’s plotted only vertically, as bars have just a fixed horizontal span (the TF).

    #202313 quote
    ZeroCafeine
    Participant
    Senior

    Hi there,

    Any way to change the background colour to display horizontal instead of vertical?

    Thanks

    maybe this answer of Nicola for my background problem can help you or give some idea, you have to use the rectangle

    robertogozzi thanked this post
    #202319 quote
    robertogozzi
    Moderator
    Master

    @ZeroCafeine

    that’s a very interesting solution, 1 single (or more, to have separate price level highlighted horizontally) rectangle from BarIndex 0 to the current one.

    #202337 quote
    Nicolas
    Keymaster
    Master

    If you want to set the background horizontally and extend it to the infinite on the right, you use a DATETOBARINDEX with a date in the future: (example to draw the rectangle until the 1st January 2100).

    defparam drawonlastbaronly=true
    
    drawrectangle(0,highest[10](high),datetobarindex(21000101),lowest[10](low)) coloured("crimson",150) bordercolor("crimson",0)
    
    return
    robertogozzi thanked this post
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Background colour horizontal


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by Nicolas
3 years, 4 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/06/2022
Status: Active
Attachments: 1 files
Logo Logo
Loading...