• 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 thgamey, Yesterday, 08:38 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by stredtity, Today, 01:21 AM
    0 responses
    4 views
    0 likes
    Last Post stredtity  
    Started by superg3, Yesterday, 10:12 PM
    0 responses
    8 views
    0 likes
    Last Post superg3
    by superg3
     
    Started by johnnybegoode, Yesterday, 07:02 PM
    0 responses
    10 views
    0 likes
    Last Post johnnybegoode  
    Started by YevhenShynkarenko, Yesterday, 05:02 PM
    1 response
    16 views
    0 likes
    Last Post YevhenShynkarenko  
    Working...
    X