Indicator: Syntax error on COLOURED

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #59356 quote
    Chris HChris 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

    Knipsel.jpg Knipsel.jpg
    #59360 quote
    NicolasNicolas
    Keymaster
    Legend

    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 HChris 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
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
8 years, 8 months ago.

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