Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChangeOrder with Unmanaged approach

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

    ChangeOrder with Unmanaged approach

    Hi,

    I try to increase my contract number on certain conditions.

    Is it possible to use ChangeOrder ... witt my already saved entryOrder-Object for tthis?

    Code:
    ChangeOrder(entryOrder, entryOrder.Quantity +1,  0, 0);
    In my backtest this has no effect to current number of contracts.

    In case the method doesn't work, what would be the correct way to achieve this?

    Thx
    DT

    #2
    Hello,

    Thanks for your forum post.

    The ChangeOrder() method is only used to change an active order. For example a limit order or stop order that is on the exchange waiting to be filled. Once an order is accepted or filled it is no longer and order and as thus ChangeOrder() will have no affect here.

    If you want to double or scale into a position you would need to submit a second order and then manage its exit as you would the original order. You would use SubmitOrder() for this.


    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    65 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Working...
    X