Multiple Orders and how to manage partial closing

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #151433 quote
    gfxgfx
    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
    VonasiVonasi
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    gfxgfx
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 gfxgfx
5 years, 10 months ago.

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