Documentation / ProBacktest

Lets you place a stop for the current position(s).

You may have a look at different kind of “SET STOP LOSS” function in the documentation.

Syntax:

 

 

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

Syntax:


Example :

 

Current profit made by the closed trades of the running strategy.

Syntax:

 

Instruction to set a target order in price format, depending of the point/pip size.

e.g. EURUSD, set a target for 30 pips (point size is 0.0001):

SET TARGET PROFIT 0.0030

Syntax:

 

Example :

 

Ticksize of the instrument (smallest possible variation of price).

Syntax:

 

Allows to write conditions and/or declare variables in the selected timeframe  (description of the ProBacktest command only on this page).

The syntax of the TIMEFRAME statement is TIMEFRAME (TF, mode) which allows you to put the code in a timeframe different from the main TF, or TIMEFRAME (default) to return to the default TF. “mode” is optional (the default is current bar).

Examples:

  • TIMEFRAME(weekly, UpdateOnClose)
  • TIMEFRAME(30 minutes, default)
  • TIMEFRAME(5 minutes)

(more…)

Designates an order to be executed on the open of the next day.

Syntax:

 

Example :

We are buying 1 contract if conditions of long order are met, tomorrow only, at the open of the market (on new bar appear).

 

Bar Index (barindex) of the bar at which the Nth last order was executed.

Syntax:

(more…)

Price level at which the Nth last order was executed.

Syntax:

(more…)

Set a trailing stop x units from average position price.

Syntax:

(more…)


Top