Set a target profit x% from the average position price.
Note: the % profit is calculated and placed individually for each order with IG or PRT-CFD.
SET TARGET %PROFIT x
myMACD = MACD[12,26,9](close)
long = myMACD crosses over 0
IF NOT LongOnMarket AND long THEN
BUY 1 CONTRACTS AT MARKET
//set a target profit at 2% from the average position price
SET TARGET %PROFIT 2