Strange bug when drawing indicator lines.

Forums ProRealTime English forum ProRealTime platform support Strange bug when drawing indicator lines.

Viewing 6 posts - 1 through 6 (of 6 total)
  • #86338

    I sometimes have a strange bug when drawing lines in an indicator. I just wrote an indicator which draws lots of lines. With this code I get the strange results shown in the image.

    Screenshot_1

    If I move the:

    to the beginning of the RETURN line then everything is drawn normally but the zero line is not drawn at all.

    I have tried making the value 0 a variable a = 0 but the results are the same.

    I will send a report.

    1 user thanked author for this post.
    #86354

    …and another bug. This indicator draws a red line on zero when it should be a blue line.

    Screenshot_2-1

    #86389

    Are you sure that any of the other line are not returning 0 as value? Easy to know with all values displayed at once with the cursor details window (CTRL+D).

    #86395

    Are you sure that any of the other line are not returning 0 as value?

    I don’t think that is the the reason for the incorrect colour as I don’t have any red lines in the code. I will add a zero line externally to overcome this though.

    The filled out area just from where ever the zero line code is placed in the RETURN line is not explained by this theory either.

    I sent a report so hopefully PRT will sort that problem one day – although it is very low priority as an externally applied zero line fixes that issue too!

    #86409

    128,0,0 is a red color and I see a lot of them in your RETURN instruction 🙂

    So the “strange bug” is the black filling area coming from nowhere?

    It sometimes happen that variables contained in the RETURN instruction take settings of previous deleted ones, when these ones have been changed manually in the settings window.

    If you copy/paste the complete code into a new indicator, do the bug still happen?

    #86416

    128,0,0 is a red color and I see a lot of them in your RETURN instruction

    Well spotted. I am confusing myself as I wrote one indicator with both red and green lines in it but then late last night split it into six separate indicators that are either just green or just red and so tiredness made me assume it was one of those that the images were from. At least that is that bit solved – the line is red because I am stupid and tired and I had some zero value red lines!

    I have just re-loaded the indicator this morning that was giving the filled out area problem and today it is working fine with the zero line code at either end of the RETURN line.

    I’ll mark it resolved as ‘switch it off and switch it back on again’ seems to be a work around for this bug.

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