Documentation / Instructions

FOR loop (processes all the values with an ascending “TO” or a descending order “DOWNTO”)

Syntax:

 

Example 1:

Example 2:

Build a moving average fishnet (guppy) dynamically with 2 loops:

 

Returns the offset of the candlestick with the highest value. (more…)

Instruction used for building conditionnal statement.

Syntax:

 

Example:

 

Counts how many bars are displayed in one day on the whole data loaded within N shifting. Count start from O.

Syntax:

 

Example:

intradaybarindex

IsLastBarUpdate

ProRealTime v11

On an indicator, this function returns 1 on candlesticks updated in real-time (or the last candlestick on a closed instrument), otherwise it returns 0.

On a backtest, this function returns 1 starting at the date the backtest was started. It is equal to 0 on the historical data preloaded by the backtest (PreLoadBars).

(more…)

IsSet

ProRealTime v11

Returns 1 if the index of the array has already been set in the code, otherwise returns 0.

Syntax:

where $MyArray is the variable array name and “Index” the index number to check.

LastSet

ProRealTime v11

Returns the last index of the array defined by the code. If no index was previously defined, the function returns -1.

Syntax:

where $var is the name of the variable array.

Returns the offset of the candlestick with the lowest value. (more…)

Ending instruction of FOR loop.

Syntax:

 

Example:

 

Introduces a definition statement which will be processed only once.

Syntax:

 

Example:

 


Top