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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        47 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X