• 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

Order rejected-reason: Cannot cancel the field order affected Order

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

    Order rejected-reason: Cannot cancel the field order affected Order

    Hi everyone,

    My strategy has a condition to close all the position at certain point. Also the sync and immediately submit option is enabled in the strategy. It is connected with Gateway to Interactive broker.
    After my strategy closed all the 76 shares buy positions by ExitShort(); with opening buy order for 76 shares.
    Then this error Occurred:
    Order rejected-reason: Cannot cancel the field order affected Order: Buy to cover 76 Market
    Then another Buy order has been submitted and executed for 76 shares.
    I had to close them all manually.
    Question is why it happens? to prevent it in future.
    If the logs and traces are needed I can provide them.

    Any comment would be appreciated.
    Thanks in advance.

    Godric

    #2
    Hello gordic,

    Thanks for your post.

    We would want to see the log and trace files to note exactly what the strategy did to encounter the rejection.

    Could you send me a message at platformsupport [at] ninjatrader [dot] com with the text "Attn Jim" and when this happened so I can look into this further?

    Steps for finding and attaching log and trace are included below.
    • Open Windows File Explorer (hotkey = Windows key + E) Then navigate to Documents > 'NinjaTrader 8' folder
    • Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
    • Send the 2 compressed folders as attachments to our support email address.
    • Once complete, you can delete these compressed folders.
    Thanks in advance; I look forward to resolving this item.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by dukeoferl, Today, 03:26 AM
    0 responses
    1 view
    0 likes
    Last Post dukeoferl  
    Started by Titelluvifa, Today, 02:49 AM
    0 responses
    2 views
    0 likes
    Last Post Titelluvifa  
    Started by rehagen, Today, 01:44 AM
    0 responses
    2 views
    0 likes
    Last Post rehagen
    by rehagen
     
    Started by bouncetherubble, Yesterday, 07:33 PM
    0 responses
    7 views
    0 likes
    Last Post bouncetherubble  
    Started by gmachine, Yesterday, 07:15 PM
    0 responses
    7 views
    0 likes
    Last Post gmachine  
    Working...
    X