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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        55 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        142 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X