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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    627 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    359 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    562 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    567 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X