Multiple Orders and how to manage partial closing

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #151433 quote
    gfx
    Participant
    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.

    #151436 quote
    Vonasi
    Moderator
    Master

    The last read SET order in any code will overrule any previous ones and that will be the order that gets sent to market.

    #151438 quote
    Nicolas
    Keymaster
    Master

    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.

    #151439 quote
    gfx
    Participant
    Average

    I’ll try. Thks

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Multiple Orders and how to manage partial closing


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
gfx @gfx Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by gfx
5 years, 3 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/24/2020
Status: Active
Attachments: No files
Logo Logo
Loading...