Background colour horizontal

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

    Hi there,

     

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

     

    Thanks

    #201994 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    ZeroCafeineZeroCafeine
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    @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
    NicolasNicolas
    Keymaster
    Legend

    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
    background-color-horizontally.png background-color-horizontally.png
Viewing 5 posts - 1 through 5 (of 5 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

Background colour horizontal


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

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

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