Opening minute of the current bar in the user’s time zone.
Syntax:
1 |
OpenMinute |
Opening minute of the current bar in the user’s time zone.
Syntax:
1 |
OpenMinute |
Opening month of the current bar.
Syntax:
1 |
OpenMonth |
Returns the number of seconds of the opening hour of the candlestick
Opening time of the current bar in the format HHMMSS in the user’s time zone.
Syntax:
1 |
OpenTime |
Year of the open of the current bar.
Syntax:
1 |
OpenYear |
Logical operator “OR”. Used for testing different conditions on the same statement.
Syntax:
1 |
OR |
Example:
1 2 3 4 5 6 7 8 9 |
i1 = lowest[10](close) IF (close[1]<i1 OR low[1]<i1) THEN result = 1 ELSE result = 0 ENDIF RETURN result |
Size of a pip (or point), PipSize=PointSize.
Syntax:
1 |
PipSize |
Value in €/$ of one pip (or one point) in the currency of the instrument. PipValue=PointValue.
Syntax:
1 |
PipValue |
Set a stop loss x points from the average position price.
Points of the current instrument is equal to POINTSIZE
Syntax:
1 |
Set STOP PLOSS x |
Example :
1 2 3 4 5 6 7 8 9 |
myMACD = MACD[12,26,9](close) long = myMACD crosses over 0 IF NOT LongOnMarket AND long THEN BUY 1 CONTRACTS AT MARKET ENDIF //set stop loss at 50 pips/points from the average position price SET STOP PLOSS 50 |