Color the Relative Volume Histogram

Forums ProRealTime English forum ProBuilder support Color the Relative Volume Histogram

  • This topic has 5 replies, 2 voices, and was last updated 1 year ago by avatarJS.
Viewing 6 posts - 1 through 6 (of 6 total)
  • #225168

    Hi, Some how I cannot manage to color the histogram of the intraday Relative Volume indicator by Nicolas below, into blue for positive and red for negative (attached picture).

    Does anybody know which line must be added to the code for this?

     

     

     

    #225178
    JS

    Hi Marcel

    The values of the indicator are always greater than zero (no negative values) so you can only set the color of the positive values manually.

    Here is the code to color the histogram:

    1 user thanked author for this post.
    #225182
    JS

    into blue for positive and red for negative 🙂

    1 user thanked author for this post.
    #225241

    Thanks JS,

    I have adjusted your idea for the code slightly to my original idea, so that the colors now correspond to the colors of the candles. This works a bit easier for me because I have built a screener that selects American stocks with RVol >2.

     

    1 user thanked author for this post.
    avatar JS
    #225276

    Hi,

    Here’s the next hurdle.

    It appears that the horizontal line (image) is not held by the indicator as an added indicator or loose line.

    This means that every time I open the graph the line has disappeared.

    Does anyone know how I can add a solid horizontal line (at 1.5) to the indicator?

     

    #225290
    JS

    Hi Marcel,

    If you only want a permanent horizontal line in the indicator, you can add the following line in your code (before “Return”):

    DrawHLine(1.5) Coloured(“Red”)

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login