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
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).
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.
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.