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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X