Documentation / ProBacktest

Round down quantities to buy or sell (used for stocks with the instruction to buy an amount in cash).

Syntax:

 

Round up quantities to buy or sell (used for stocks with the instruction to buy an amount in cash).

Syntax:

 

Instruction to close a long position.

Syntax:

 

Example :

 

Instruction to open a short position.

Syntax:

 

Example :

 

Determines the type of order: either target or stop.

You should look at the “SET TARGET” and “SET STOP” function in the documentation:

“SET”‘ is an instruction used to set TARGET and STOP LOSS:

http://www.prorealcode.com/documentation/target/

http://www.prorealcode.com/documentation/stop/

 

Allows you to place a stop at X points / % / € / unit above the entry price of the position (for a buy order or below for a sellshort order).

SET STOP can be used with any of the PROFIT variation, such as:

Set Stop pProfit/%Profit/$Profit/Profit X

Example: 

Put the order stoploss in profit at 10 points above the entry price:

Allows you to place a target at X points / % / € / unit below the entry price of the position (in case of a buy order or above in case of a sellshort order), to limit your loosing position.

SET TARGET can be used with any of the LOSS variation, such as:

Set target ploss/%loss/$loss/loss X

Example: 

Put the order takeprofit in loss at 10 points below the entry price (buy order case):

Designates the number of shares to buy or sell.

Syntax:

 

Example :

 

Indicates whether there are short positions or not already open.

Syntax:

 

Example :

 

Allows to know if a Short position has been opened on the candlestick N (N optional by default at 0). (more…)


Top