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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        65 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Working...
        X