gfxParticipant
Average
Hi everyone,
I remembered that PRT would not allow partial closing of orders so I guessed that I simply had to place several different orders and manage them idependently.
I tried this …
IF C1 AND C2 AND C3 THEN
BUY 1 CONTRACTS AT MARKET
SET STOP LOSS 10
SET TARGET PROFIT 10
BUY 1 CONTRACTS AT MARKET
SET STOP LOSS 10
SET TARGET PROFIT 50
ENDIF
What happens is that TARGET PROFIT ends up by being set to 50 for both orders.
Any suggestion ?
Thks.
The last read SET order in any code will overrule any previous ones and that will be the order that gets sent to market.
Partial closing of positions should work now with IG in v11. Now that V11 demo accounts is available, you could give a try with a paper trading test to SELL/EXIT SHORT x CONTRACTS of a running order.