Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to manage a certain trade

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

    How to manage a certain trade

    Hi,
    Suppose I want to go long with 2 contracts at 2010.
    I want, for example, to set a target on one of the contracts at 2012 and the other to 2014.

    When the 2012 target is filled, I want to immediately move the stop of the second contract to 2012.

    Is there a way to do this using managed trades or do I have to go to unmanaged?

    Any examples would be great!
    Thanks ... Ed

    #2
    Hello Ed,

    Thank you for your post.

    Using separate entrySignalNames for each of the Entry() methods used for your two entries you can then use separate SetProfitTarget() methods, and then use separaete SetStopLoss() methods and adjust the second SetStopLoss() to breakeven when the first SetProfitTarget() is filled.

    An example of adjusting the SetStopLoss() method in OnBarUpdate() can be found at the following link: http://www.ninjatrader.com/support/f...ead.php?t=3222

    Comment


      #3
      Hi,
      What event do I catch to know when a SetProfitTarget() gets filled?
      Thanks ... Ed

      Comment


        #4
        Hi Ed, the Set()'s would not have a native IOrder return, but you could check into the contents of this sample to see an alternative technique used - http://www.ninjatrader.com/support/f...ead.php?t=5790

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X