Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetStopLoss on Multi-Instrument strategy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SetStopLoss on Multi-Instrument strategy

    Hi,

    I'm developing a multi-Instrument strategy and I want to have a unique StopLoss for each instrument with different percentages.
    For example:
    Code:
    EnterLong(BIP1, 1000, "Long " + Inst1); //Inst1 is the name of the instrument
    EnterLong(BIP2, 1000, "Long " + Inst2); //Inst2 is the name of the instrument
    ....
    Now I want to set for each order a StopLoss
    SetStopLoss("Long " + Inst1, CalculationMode.Percent, 0.02)//2% StopLoss for instrument 1
    SetStopLoss("Long " + Inst2, CalculationMode.Percent, 0.04)//4% StopLoss for instrument 2
    Is this the way to use the SetStopLoss?

    TX,
    Roy

    #2
    Hello,

    Yes, that would be correct. You are assigning a unique fromEntrySignal tag for each stop and will be tied to the respective entry order.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Thanks Matthew and the use of the percentile is also correct?

      Comment


        #4
        Yes, that is correct.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        648 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X