Documentation / ProBacktest

Counts the number of open long shares or lots.

Syntax:

 

Example :

 

Counts the number of open shares or lots.

COUNTOFPOSITION returns negative value for short orders.

Syntax:

 

Example :

 

Counts the number of open short shares or lots.

Syntax:

 

Example :

 

When set to false, prohibits a code from reinforcing positions and setting multiple orders to enter the market in the same direction.

Syntax:

 

Instruction to close a short position.

Syntax:

 

Example :

 

Closes positions, cancels pending orders and prevents placement of additional orders after the time of day specified (in hours, minutes and seconds) in the user’s time zone.

Syntax:

 

Closes positions, cancels pending orders and prevents placement of additional orders before the time of day specified (in hours, minutes and seconds) in the user’s time zone.

Syntax:

 

GRAPH

ProRealTime v10.2

Instruction to display the historical values of ProBacktest variables on charts. It can be use many times on the same ProBacktest strategy, all values will be displayed on the same window chart.

Syntax :

GRAPH instructions can also be ‘coloured(R,G,B)’ like any other variable returned as a graphical object.

(more…)

GRAPHONPRICE

ProRealTime v10.2

The GRAPHONPRICE instruction lets you display the values of variables you use in your ProBacktest program (“myvariable” in the example below) at the close of each bar on the price chart.

Syntax:

(more…)

Instruction introducing a limit order in x units. Pending orders must be re-placed at each new bar.

Syntax:

 

Example :

 


Top