error message with line keyword

Forums ProRealTime English forum ProBuilder support error message with line keyword

Viewing 2 posts - 1 through 2 (of 2 total)
  • #29093

    Hi,
    The following example copied from the pro builder guide. (Page 23)

    but When I copy it into the software I get an error message.
    Can you check me why , please ?

    line = 0
    Increase = (Close – Close[1]) > 0
    i = 0
    WHILE Increase[i] DO
    i = i + 1

    // Si high – low, we exit the loop to avoid a division by zero.

    IF (high-low) = 0 then
    BREAK
    ENDIF
    osc = (close – low) / (high – low)
    line = AVERAGE [i] (osc)
    WEND
    RETURN line

    #29102

    The “line” keyword can’t be used in probuilder code to define variables. You need to change this word with another one, for example “myline”.

     

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

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