ProRealTime documentation

Set a stop loss of x €,$ (in the currency of the instrument).

Syntax:

 

Example :

 

Set a target profit of x €,$ (in the currency of the instrument).

Syntax:


Example :

 

Set a trailing stop of x €,$ (in the currency of the instrument).

Syntax:

 

Example:

We are setting here a trailing stop at 100$ from the current average price

 

Set a stop loss x% from the average position price.

Note: the % loss is calculated and placed individually for each order with IG or PRT-CFD.

Syntax:

 

Example :

 

Set a target profit x% from the average position price.

Note: the % profit is calculated and placed individually for each order with IG or PRT-CFD.

Syntax:

 

Example :

 

Set a trailing stop x percent from average position price.

Syntax:

Continue reading “%TRAILING” »

ABS is the mathematical function “Absolute Value” of a number.

Example:

Return values are :

 

AccumDistr is the classical Accumulation/Distribution indicator.

Use :

 

The accumulation/distribution of price is calculate that way :

 

The indicator balances volumes using the closing price reported at the extreme points of the trading day.

It must confirm the stock trend in progress by moving in the same direction as the stock trend. A divergence between prices and Accumulation/Distribution is often a signal that the current trend may reverse. Continue reading “AccumDistr” »

Technical indicator Average Directionnal Index, usually known as ADX.

Calculation:

We first calculate +DM and -DM (the directional movement) , the number of points obtained in a direction. We apply a wilder moving average on +DM and -DM to calculate +DI and -DI. Then we calculate DX.

Dx = 100 x ((+DI) – (-DI)) / ((+DI) + (-DI)).

Finally to obtain ADX we apply again a wilder moving average on DX.

 

Syntax :

Continue reading “ADX” »

Indicator Average Directional Index Rate, also known as “ADXR”. Compute with N periods :

ADXR formula : ADXR = (ADX + ADX[n]) / 2

 

Calculation of ADX :

We first calculate +DM and -DM (the directional movement) , the number of points obtained in a direction. We apply a wilder moving average on +DM and -DM to calculate +DI and -DI. Then we calculate DX.

Dx = 100 x ((+DI) – (-DI)) / ((+DI) + (-DI)).

Finally to obtain ADX we apply again a wilder moving average on DX.

Continue reading “ADXR” »


Top