error message with line keyword

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29093 quote
    balance
    Participant
    Junior

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

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

error message with line keyword


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
balance @balance Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
8 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/19/2017
Status: Active
Attachments: No files
Logo Logo
Loading...