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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    52 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X