Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing Unmanged Order Quantities

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

    Changing Unmanged Order Quantities

    I am trying something new, and have a question regarding changing order quantities using unmanaged orders.

    Suppose I enter into a long trade via myOrder = SubmitOrder(0,OrderAction.Buy,OrderType.Market,5,0 ,0,"","Long");

    So, once myOrder is filled, I am now long 5 units.

    Later, if I do this,

    ChangeOrder(myOrder,10,0,0);

    What will happen? Will NT place a market order for five more units? Even though myOrder is already in a filled state?

    If I do this

    ChangeOrder(myOrder,1,0,0);

    What will happen? NT cannot sell 9 (or 4) units because I have not specified how to sell them.

    Nowhere in the NT documentation does it mention how order quantity affects filled orders. Am I missing something?

    I want to dynamically change the order quantity (either increase or decrease), without having to manage a million unique IOrder orders (which would be fairly complex).

    Thanks!
    Last edited by Serac; 08-18-2014, 11:40 AM. Reason: Typo

    #2
    Hello Serac,

    It is not possible to change an order that has filled or part filled.

    If you try, this will likely result in a rejection message.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    70 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    78 views
    0 likes
    Last Post PaulMohn  
    Working...
    X