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 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