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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    89 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    92 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    70 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    64 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X