Indicator: Syntax error on COLOURED

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #59356 quote
    Chris H
    Participant
    New

    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 quote
    Nicolas
    Keymaster
    Master

    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 quote
    Chris H
    Participant
    New

    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 quote
    Nicolas
    Keymaster
    Master

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

Indicator: Syntax error on COLOURED


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Chris H @chris-h Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Nicolas
8 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/13/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...