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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        134 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        75 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        119 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        114 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        90 views
        0 likes
        Last Post CarlTrading  
        Working...
        X