Set a stop loss of x €,$ (in the currency of the instrument).
Syntax:
1 |
SET STOP $LOSS 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 200$ loss SET STOP $LOSS 200 |
usefull