“CALL” is an instruction made for calling value of user indicator. Add under brackets as many parameters the personal indicator have.

Syntax:

If the personal indicator returns more than one value from its RETURN instruction, the CALL function should be coded like this:

(case of an indicator that return 3 values)

3 variables are set from the the 3 returns variables of the custom indicator “myIndicator”.

Every defined variables must be used while programming with ProBuilder. So if your called indicator has 3 variables and you don’t want/need to use the second one, this value must be “ignored” by the CALL instruction:

The “ignored” word will be interpreted by ProBacktest/ProOrder as a null variable that will not be used by the program.

In the case where the indicator that is called uses a price constant of type ‘CustomClose’, the CALL statement must specify it in parenthesis like this:

The price constant specified in parentheses will of course have to be the same as that used by the called indicator to obtain the same results (e.g: Close, MedianPrice, TotalPrice, High, Low, ..).

 

Example:

 

Share this