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 argusthome, Yesterday, 10:06 AM
    0 responses
    14 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    11 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    8 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    4 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    31 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X