Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

stop market order unmanaged true

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

    stop market order unmanaged true

    Hi, I would like to confirm the following;

    Using unmanaged = true and ChangeOrder().

    I am attempting to modify a stop market order which is set to a price of which I would like to update to a market order, essentially this it intended to be a variation of ExitOnClose().

    What is standard practice to ensure that this order is sent as a market order, to be filled at any price. Currently when using the following does not work and in fact cancels the order;
    ChangeOrder(StopOrder1, 1, 0, 0);

    However if I set a price of which works some kind of offset is required to ensure the order gets filled although I would prefer to send the order for this strategy to exit immediately at whatever price, if that is my only option I will work with that instead.
    ChangeOrder(StopOrder1, 1, GetCurrentBid()+3*TickSize);

    Regards, suprsnipes.
    Last edited by suprsnipes; 07-13-2020, 08:31 PM.

    #2
    Hello suprsnipes,

    Thanks for your post.

    ChangeOrder would be used to move an order and would not be used to replace an order with a different order type.

    In this case, I would suggest cancelling the order with CancelOrder, checking for the cancellation in OnOrderUpfdate when that order's OrderState is OrderState.Cancelled, and then to submit your market order with SubmitOrderUnmanaged.

    CancelOrder - https://ninjatrader.com/support/help...ancelorder.htm

    OnOrderUpdate - https://ninjatrader.com/support/help...rderupdate.htm

    We look forward to assisting.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    553 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    100 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    543 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    546 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X