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 |