ProRealTime documentation

Size of a pip (or point), PipSize=PointSize.

Syntax:

 

Value in €/$ of one pip (or one point) in the currency of the instrument. PipValue=PointValue.

Syntax:

 

Indicates the percent of gain or loss of the Nth previous position.

The instruction POSITIONPERF(n) returns: The performance (ratio gain/cost of the position) of the n-th last position closed if n>0 (not including brokerage fees) The performance (ratio gains/cost of the position) of the currently open position if n=0 (not including brokerage fees)

If n is not specified, we suppose that n=0. PositionPerf=PositionPerf(0).

Syntax:

 

Indicates the current average position price of the whole opened orders.

If you open 3 positions, respectively at 5$, 10$ and 15$, POSITIONPRICE is : (5+10+15)/3 = 10€.

Syntax :

POSITIONPRICE can also be used to get the previous average position price in the last candle period with offset :

 

Example :

Floating profit of the whole opened orders

 

Averaging down simple trading strategy example :

 

Give the positive volume index value, also known as PVI technical indicator of selected price. Near volumes informations of the instrument.

Syntax:

Calculation :

If today’s Volume > yesterday’s Volume then PVI = yesterday’s PVI + (today’s close – yesterday’s close) / [yesterday’s close * yesterday’s PVI]

 

If today’s Volume < yesterday’s Volume then PVI = yesterday’s PVI.

(more…)

Power function, value the base value, power the power to apply.

(more…)

Set a target profit of x points/pips of the current instrument.

Price unit is equal to POINTSIZE

(more…)

Sets the maximum amount of bars preloaded for the calculation of indicators used in a trading system.

Syntax:

This instruction is very useful if you plan to use indicators that need previous bar to compute before you can rely on them to make trading decisions in your code.

(more…)

The PRICE statement is used in both SET STOP and SET TARGET, to set respectively the stoploss or takeprofit at a defined price level.

(more…)

Return value of the Price Oscillator technical indicator of momentum for selected price.

The S parameter is the short term moving average and L as the long term one.

Syntax:

Calculation :

The price oscillator is calculated by subtracting a short moving average by a long one. In its percentage form, the result is divided by the short moving average and multiplied by 100. The parameters are the number of days of both moving averages.

Interpretation :

Buy/Sell opportunities occur when the oscillator crosses the 0 level.

 


Top