Graphics bug with COLOURED(r,g,b,0)

Forums ProRealTime English forum ProRealTime platform support Graphics bug with COLOURED(r,g,b,0)

Viewing 2 posts - 1 through 2 (of 2 total)
  • #95700

    I have written an indicator that draws past OHLC values on a chart. I have allowed the user to turn off or on different lines by setting c = 0 in the COLOURED(r,g,b,c) command. However if any are set to zero/turned off then when you hover over the chart to get the values large sections of the chart are blanked out by semi-visible labels.

    I will send a report from the platform with a link to here.

    Here is an image of the problem:

    Screenshot_1-1

    #95709

    An off forum discussion with Nicolas provided me with a workaround. I had forgotten that you can declare variable values as UNDEFINED. So instead of switching the value of c in COLOURED(r,g,b,c) from 1 to 0 I simply declared all values as undefined unless the user selected them.

Viewing 2 posts - 1 through 2 (of 2 total)

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