The PRINT function is used to display the variable value for each candle in a table. Like the GRAPH and GRAPHONPRICE instructions it is intended to help debugging.
The PRINT function is used to display the variable value for each candle in a table. Like the GRAPH and GRAPHONPRICE instructions it is intended to help debugging.
Introduces a remark (not taken into accountby the code).
Syntax:
1 |
REM |
Example:
1 2 3 4 5 |
REM This is a comment // This is anotherway to comment the code REM variable i1 is a simple moving average over 10 periods of high prices i1 = average[10](high) //this is a SMA |
Instruction needed in ProBuilder code for returning the result to draw on chart.
Syntax:
1 |
RETURN |
Example:
1 2 3 |
myIndicatorToDraw = RSI[14](close) RETURN myIndicatorToDraw COLOURED(210,105,30) AS "my RSI" |
Instruction following the first condition of “IF” statement.
Syntax:
1 |
THEN |
Directional instruction in the “FOR” loop.
Syntax:
1 |
TO |
Example:
1 2 3 |
FOR x = 1 TO 20 DO //loop x from 1 TO 20 var = var + close[x]/open[x] NEXT x |
Wend if the ending instruction of the “WHILE” loop.
Syntax:
1 |
WEND |
Example:
1 2 3 4 5 6 7 8 9 10 |
i = 0 Count = 0 WHILE i <> 11 DO i = i + 1 Count = Count +1 WEND RETURN Count |
Launch a “WHILE” loop.
Syntax:
1 |
WHILE |
Example:
1 2 3 4 5 6 7 8 9 |
i = 0 Count = 0 WHILE i <> 11 DO i = i + 1 Count = Count +1 WEND RETURN Count |