# 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:

(more…)

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. (more…)

## AdaptiveAverage ProRealTime v11

Returns the Adaptive Moving Average (AMA) indicator.

Syntax:

Where:

• MAperiod: calculation period of the Adaptive Moving Average (default period is 9)
• fastSC: fast moving constants period used by the adaptive function
• slowSC: slow moving constants period used by the adaptive function
• price: applied price

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 :

(more…)

Top