Indicator: Syntax error on COLOURED

Forums ProRealTime English forum ProBuilder support Indicator: Syntax error on COLOURED

Viewing 4 posts - 1 through 4 (of 4 total)
  • #59356

    I recieve the following error message: The variable R is rejected and should be a colorvalue (0 – 255). The variable gets a value from 0 or 255

    Anybody has an idea wat is wrong with: RETURN hoogte COLOURED(R, G, B) AS “Collar PVO”

    tx for your help

    Chris

    #59360

    Are you sure your “R” variable is not set elsewhere in your code with another value? Sometimes we give the same name to variables for very different assignment.

    If you have copy/paste your code from somewhere on internet, try to retype the quotation marks with your own keyboard (or delete AS “Collar PVO” from your code).

    #59363

    Tx Nicolas.

    No the R is not used elsewhere. I wrote the code myself and the indicator is working in prorealtime 10.3 (free end of day).

    But is not working in de version 10.2 realtime of my broker. Binck.

    #59367

    Ok, this kind of code will not work with PRT version previous 10.3. RGB values as variables are not recognized by the programming language, that’s why you get this syntax error.

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

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