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