• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Unsuitable, Today, 07:26 AM
    0 responses
    1 view
    0 likes
    Last Post Unsuitable  
    Started by Exceptionalk, Today, 07:25 AM
    0 responses
    1 view
    0 likes
    Last Post Exceptionalk  
    Started by bumbledbee, Today, 04:28 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by Tmaninc, Today, 02:13 AM
    3 responses
    12 views
    0 likes
    Last Post Tmaninc
    by Tmaninc
     
    Started by rexmie888, Yesterday, 09:37 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Working...
    X