Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to keep track of entrees?

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

    How to keep track of entrees?

    How do I keep track of entrees in a multiple entree position and then refer to each one so that I can close some of them if a certain condition is met? Code example will be great! Thank you

    #2
    Hello relogical,

    There are two ways to track your orders. The best way is to set the orders to IOrder handles and access them whenever you like.

    The other method is to use the order's signal name to track it. When you have multiple entries and exits that are all working at the same time, you will need to use unique signal names for these.

    Below is a link to a great sample that has multiple entries and exits using signal names.
    http://www.ninjatrader.com/support/f...ead.php?t=3225

    And a link to another great sample that uses IOrder objects to track the orders.
    http://www.ninjatrader.com/support/f...ead.php?t=7499
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    56 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X