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