Sums the selected price over the last N periods.
Syntax:
1 |
summation[N](price) |
Example:
1 2 3 4 |
i1 = summation[10](open) i2 = summation[10](close) RETURN ABS(i1-i2) |
Sums the selected price over the last N periods.
Syntax:
1 |
summation[N](price) |
Example:
1 2 3 4 |
i1 = summation[10](open) i2 = summation[10](close) RETURN ABS(i1-i2) |
Return value of the Supertrend indicator over the last N periods.
Syntax:
1 |
Supertrend[multiplier,N] |
Mathematical function “Tangent” of “a”.
Syntax:
1 |
TAN(a) |
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:
1 |
SET TARGET PROFIT x |
Example :
1 2 3 4 5 6 7 8 9 10 |
myMACD = MACD[12,26,9](close) long = myMACD crosses over 0 IF NOT LongOnMarket AND long THEN BUY 1 CONTRACTS AT MARKET ENDIF //set target of positions at 20 points SET TARGET PROFIT 20 |
Return value of the Triple Exponential Moving Average indicator over the last N periods for selected price.
Syntax:
1 |
TEMA[N](price) |
Calculation :
We calculate three exponential moving average with p period.
MA1 = exponential moving average of close over p period.
MA2 = exponential moving average of MA1 over p period.
MA3 = exponential moving average of MA2.
TEMA = 3 * (MA1-MA2)+MA3
Returns the TenkanSen value (component of the “ichimoku kinko hyo” indicator).
Syntax:
1 |
TenkanSen[9,26,52] |
Tenkan Sen represents the highest and lowest average over the last 9 periods. It is therefore a question of adding the highest point of the last 9 candlesticks with the lowest point and dividing by two.
Instruction following the first condition of “IF” statement.
Syntax:
1 |
THEN |
Ticksize of the instrument (smallest possible variation of price).
Syntax:
1 |
TICKSIZE |
Represents the time of each bar loaded in the chart (24h format). Value may be divided by 10.000 to get the human reading : 131.500 / 10.000 = 13:15 (example of a N bar selected on the 15 minutes timeframe).
Syntax:
1 |
Time[N] |
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:
1 |
timeframe(5 minutes,updateonclose) |