Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entering stop loss individual positions

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

    Entering stop loss individual positions

    Hello,
    I want to modify my automated strategy so that it does the following.

    Enter two long ES positions both at an initial stop loss of 9 points.

    If the market goes higher by 9 points, I want the first position to continue to have 9 points of stop loss, but want the second position's to stop loss to move to 5 points above my enter prices.

    Is it possible to do so? I am trying to have different stop losses for the different contracts that I am trading as a part of the same trade.

    Very much appreciate your help in advance,
    Thanks!

    #2
    Hello pandyav,

    Thank you for your note.

    Yes, you would need to use two separate SetStopLoss() with unique signal names for both entry orders and the StopLoss order but you can modify them in the OnBarUpdate method with the sample below -
    http://www.ninjatrader.com/support/f...ead.php?t=3222

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    56 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    37 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    17 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    19 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    49 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X