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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    61 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    39 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    21 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    23 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X