Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Double entry in automated strategy

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

    Double entry in automated strategy

    Hello, I have acquired a strategy that can close an order and at the same time send another one in the opposite direction, for example, I can be short and I want to close the position at the close of a bar higher than the open one but at the same time. enters long in that same close, and every time it does so, it gets an error message "Cancellation rejected by the Order Management System" and what it does is open the position twice in the opposite direction to that new order, in the same example, you can be short with 1 contract and the moment you close the position, you open a long one, but for 2 contracts, but nevertheless it seems that the first short does not close.
    Could you help me figure out how to properly close the original position so that I don't open twice as many contracts on the reverse?
    attached images
    Attached Files

    #2
    Hello Agustinvitalee,

    When you say 'can close an order' do you mean can close a position? Or do you mean can cancel an order?

    This is the unmanaged approach correct?
    (The managed approach would result in an overfill or double the quantity in the opposite direction if you try and exit a position and reverse at the same time. You have to just call the entry in the other direction or you have to use the unmanaged approach.
    https://ninjatrader.com/support/foru...16#post1036616)

    Is this a live order or a Sim101 order?

    If this is a live order, have you contacted your broker to inquire why the order cancellation was rejected?
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X