Mathematical function “squared root” of “a” value.
Syntax:
1 |
SQRT(a) |
Mathematical function “squared root” of “a” value.
Syntax:
1 |
SQRT(a) |
Mathematical function “squared” of “a” value.
Syntax:
1 |
SQUARE(a) |
Statistical function “standard deviation” of a time series N of selected price.
Syntax:
1 |
STD[N](price) |
Calculation :
STD = SQUAREROOT[(summation(from d = 1 to n)(Close-Moving average on n days)²]
Statistical function “standard error” of time series of N periods for the selected price.
Syntax:
1 |
STE[N](price) |
Interpretation :
This indicator allows us to know if prices are close to the linear regression line or not. The closer they are, the more the trend is reliable.
On the other hand, the further away they are the less reliable is the trend.
This indicator is often used in relation to R² so as to interpret trend reversales more easily.
We can observe that when the two indicators start from opposite levels and converge, there is usually a change of trend taking place – either a new phase of consolidation and/or possibly a phase of reversal.
Example:
1 2 3 4 |
myseries = range statisticalerror = STE[10](myseries) RETURN statisticalerror |
Return value of the Stochastic oscillator %K line over N periods of the selected price serie.
Syntax:
1 |
Stochastic[N,K](price1,price2,price3) |
Calculation :
The first parameter is the number of days used to calculate %K, the second is the number of days to be considered for the moving average of %K (generally 1 for Fast Stochastic and 3 or 5 for Slow Stochastic), the third is the number of days to be considered for the moving average of %D.
“price1”, “price2” and “price3” are optional. By default the stochastic will be calculated with Close on the High/Low scale (same as the internal platform indicator). But you can adjust it with any other price or data series (e.g. Stochastic[N,K](close,close,close) or Stochastic[N,K](var1,var2,var3) )
Returns the Stochastic D (signal line) from the stochastic oscillator indicator.
Syntax:
1 |
StochasticD[period,%Kperiod,%Dperiod](price1,price2,price3) |
Where:
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:
1 |
SET STOP LOSS |
Instruction introducing a stop order in x units. Pending orders must be re-placed at each new bar.
Syntax:
1 |
BUY AT x STOP |
Example :
1 2 3 4 5 6 |
myMACD = MACD[12,26,9](close) long = myMACD crosses over 0 IF long THEN BUY 1 LOT AT close+10 STOP ENDIF |
Current profit made by the closed trades of the running strategy.
Syntax:
1 |
myCurrentProfit = STRATEGYPROFIT |
The “STYLE” keyword defines the styles of any returned values of an indicator. It is intended to styling programmatically instead of do it manually in the indicator window.
This keyword is located right after the optional keyword “COLOURED” and before the “AS” one.
Syntax:
1 |
RETURN myvariable STYLE(<custom style>,<width>) |
Styling options available :