Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Modifying Stop orders with unique parameters

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

    Modifying Stop orders with unique parameters

    Lets say I have a strategy that allows for 10 entries per direction
    Each entry is triggered by the same condition

    for example : Close[1] < Open[1]
    && Close[0] < Open[0])


    Now as the market moves in my favor I want to modify the stoploss orders
    But I want different parameters for each order entered

    for example : entry1 , stop will be set at breakeven if 10ticks in profit
    entry2 , stop will be set at breakeven if 25ticks in profit
    entry3 , stop will be a trailingstop at x-ticks
    .....

    I have been going though the sample strategies, but here I find that managing the stop orders is done by Position.AvgPrice
    in this case this will not give the right results as each entry has a different fill price and different parameters attached

    Could you please point me where to look, in order to get this done

    Thank you

    Nico

    #2
    You would need to specify unique signal names for each entry and then call SetStopLoss() with different parameters for each signal name.

    Then make sure you set entries per direction to 1 but set EntryHandling to UniqueEntries.
    RayNinjaTrader Customer Service

    Comment


      #3
      ok, but this confuses me, wouldn't "set entries per direction to 1 but set EntryHandling to UniqueEntries" restrict me to only 1 entry instead off the max limit of 10 trades per direction ?

      Comment


        #4
        Restrict you to one entry for each unique entry (signal name). So if you have 10 unique signal names, you would get 10 entries.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        635 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        106 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        567 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        569 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X