• 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

CancelOrder for Market order. Is it effective?

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

    CancelOrder for Market order. Is it effective?

    I am testing an Unmanaged strategy that may 'change its mind' about market direction between submitting a Market order and it being filled. But I find that CancelOrder (at least on IB) seems to be ineffective on Market orders.
    Example sequence experienced:
    • Market Buy submitted ie entryOrder=SubmitOrder(0,OrderAction.Buy,OrderType .Market...);
    • One second later OrderState is PendingSubmit.
    • After a further 3 seconds CancelOrder(entryOrder) is used (on entryOrder which is still PendingSubmit).
    • "Cancelled custom managed order" message logged.
    • After another 4 seconds OrderState is Accepted.
    • After another 1 second OrderState is Filled.

    So the CancelOrder() has effectively been ignored.

    CancelOrder() works fine on other orders (such as Limit).
    But can anyone tell me if they have been able to use CancelOrder on Market order on IB (and have it actually prevent the fill)?

    #2
    Hello DaveE,

    Thank you for your post.

    Unfortunately, this would not be possible in the majority of the markets actively traded. It may be possible in very lightly traded or small volatility instruments, but in general it is not something that is possible.

    Please let me know if I maybe of further assistance.
    Patrick H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ralett, Today, 06:20 PM
    0 responses
    2 views
    0 likes
    Last Post ralett
    by ralett
     
    Started by grizzlytrader, Today, 06:24 AM
    1 response
    19 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by andrewtrades, Today, 01:43 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by FuturesRon, Today, 03:09 AM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Ivantr, Today, 05:24 PM
    0 responses
    7 views
    0 likes
    Last Post Ivantr
    by Ivantr
     
    Working...
    X