Set a target profit of x units of the current instrument.
Price unit is equal to POINTSIZE
Syntax:
1 |
SET TARGET PROFIT 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 profit target at 50 price units SET TARGET PROFIT 50 |