Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple orders

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

    Multiple orders

    Hi my order is supposed to be

    if market is flat= do XYZ

    today, when this condition was true (market was flat) my order was sent to buy XYZ, but before my XYZ order was filled, another order was sent within a millisecond because the buy condition was still true (market was still flat).

    how can i add another condition that says

    if market is flat
    && no pending orders= do XYZ

    and my entries per direction is 2; and i need it to be two. bc after my first order is filled and later on when i am not flat anymore and XYZ happens i want to do ABC
    Last edited by staycool3_a; 11-05-2014, 08:41 PM.

    #2
    Hello Calhawk01,

    Thank you for your post.

    You can use a bool variable to set when the first time the condition it true to set it to false. You would need a reset condition for when you have completely exited the market and there are no pending orders.

    If you can to check for pending orders, you would need to use IOrder objects to have the ability to check the Order State of the orders being submitted.
    http://www.ninjatrader.com/support/h...tml?iorder.htm
    Cal H.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
    368 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
    571 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