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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        50 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        16 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X