Documentation / Instructions

Return the number of bars since the beginning of data loaded (in a chart in the case of a ProBuilder indicator of for a trading system in the case of ProBacktest or ProOrder)

Syntax:

 

Instruction forcing the exit of “FOR” loop or “WHILE” loop.

Syntax:

 

Example:

 

CalculateOnLastBars

ProRealTime v10.3

Purpose of this instruction is to avoid computer memory consumption by limiting the bars quantity use in indicator calculation.
This parameter increases the speed at which an indicator will be calculated by defining the number of bars that will present the result.
Syntax :

“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”.

(more…)

Colors a curve with the color you defined using the RGB convention.

Syntax:

The expression COLOURED must be place just after the value name :

Since the prorealtime version 10.3, it is also now possible to add “alpha” value for transparency purpose:

Syntax (v10.3) :

Alpha value varies from 0 to 255.

 

RGB color samples :

 

(more…)

Boolean Operator checking whether a curve has crossed over another one.

Syntax:

 

Example:

Boolean Operator checking whether a curve has crossed under another one.

Syntax:

Example:

Sums a certain price on the whole data loaded.

Syntax:

 

DivergenceMACD

ProRealTime v11

Return signals of the internal MACD divergences indicator of the platform.

Syntax:

Where:

Shortperiod = Moving Average Convergence Divergence (MACD), fast MA period of calculation, default is 12 periods

SlowPeriod = Moving Average Convergence Divergence (MACD),  slow MA period of calculation, default is 26 periods

SignalPeriod = MACD signal line MA period of calculation, default is 9 periods

Bars = Bars quantity to detect a potential divergences, default is 20

(more…)

Optional instruction in a FOR / NEXT loop and WHILE loop to define the actions to occur in the loop.

Syntax:

Example:

 


Top