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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    129 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    74 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    116 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    110 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    89 views
    0 likes
    Last Post CarlTrading  
    Working...
    X