Set a target profit of x points/pips of the current instrument.
Price unit is equal to POINTSIZE
Syntax:
1 |
SET TARGET PPROFIT 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 points SET TARGET PPROFIT 50 |