Define the number of lots to buy or sell (equivalent to “SHARE”).
Syntax:
1 |
LOT |
Example :
1 2 3 4 |
IF NOT ONMARKET AND validsetup THEN BUY 1 LOT AT MARKET NextBarOpen ENDIF |
Define the number of lots to buy or sell (equivalent to “SHARE”).
Syntax:
1 |
LOT |
Example :
1 2 3 4 |
IF NOT ONMARKET AND validsetup THEN BUY 1 LOT AT MARKET NextBarOpen ENDIF |
Low of the current bar or of the last N one.
Syntax:
1 |
Low[N] |
Return the value of the lowest price over a number of N bars of the defined price.
Syntax:
1 |
lowest[N](price) |
Example:
1 2 3 4 5 6 7 |
if(Low<Lowest[30](close)) THEN bandL = Low ELSE bandL = Lowest[30](close) ENDIF RETURN bandL |
Returns the offset of the candlestick with the lowest value. (more…)
Return the value of the MACD histogram value over S,L and Si periods of price selected.
Syntax:
1 |
MACD[S,L,Si](price) |
Calculation:
The first value of the MACD is obtained by substracting the y days exponential moving average from the x days exponential moving average
The second value of the MACD is obtained by calculating a z days exponential moving average of the first one.
x, y and z are the MACD parameters, typically equal respectively to 12, 26 and 9.
The MACD histogram is obtained by substracting the second value from the first one. (more…)
Return value of the MACD line indicator over S and L period of selected price.
Syntax:
1 |
MACDLine[S,L,Si](price) |
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
i1 = MACD[12,26,9](close) i2 = MACDLine[12,26,9](close) if(i1<i2 AND i1[1]>i2[1]) THEN bullishSignal = 1 bearishSignal = 0 ELSIF (i1>i2 AND i1[1]<i2[1]) THEN bullishSignal = 0 bearishSignal = -1 ELSE bullishSignal = 0 bearishSignal = 0 ENDIF RETURN bullishSignal, bearishSignal |
Return the MACD signal line value.
Syntax:
1 |
MACDSignal[fastPeriod,SlowPeriod,SignalPeriod](price) |
Where:
Designates an order to be launch directly at market price.
Syntax :
1 |
MARKET |
Example :
1 |
BUY 2 SHARES AT MARKET |
Return value of the Mass Index technical indicator over N periods.
Syntax:
1 |
MassIndex[N] |
Calculation:
MassIndex = Summation[N](ExponentialAverage[N](high – low) / ExponentialAverage[N](ExponentialAverage[N](high-low))) (more…)
Mathematical function “Maximum”. Return the maximal value between two variables a and b.
Syntax:
1 |
MAX(a,b) |
Example:
1 2 3 4 5 6 |
mmA = average[20](high) mmB = average[50](high) result = MAX(mmA,mmB) RETURN result |