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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #95700 quote
    Vonasi
    Moderator
    Master

    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:

    [attachment file=95701]

    Screenshot_1-1.png Screenshot_1-1.png
    #95709 quote
    Vonasi
    Moderator
    Master

    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)
  • You must be logged in to reply to this topic.

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


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
Vonasi @vonasi Moderator
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by Vonasi
6 years, 10 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 04/08/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...