Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Double identical stop orders ERROR, how can this be?

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

    Double identical stop orders ERROR, how can this be?

    Hi,

    I got the weirdest error. Somehow when I enter a trade and a stop order is being placed (using NT code), NT transmits 2 stop-loss orders with the same price and same name.

    How can this be?

    I have to mention that this is not happening consistently, but it does repeat itself.
    I know that when I transmit (using code) a stop order with the same name and the same price, if a stop order like this exists, he ignores it, as happens 95% of correct functioning,
    the other 5% I get this bug, which I can't explain.

    I am using Interactive broker if it makes any difference.

    #2
    Hello zoharcho,

    You will need to provide information.

    Print the time of the bar and all values used in the conditions that submit the order. Add labels for each value, add labels for each comparison operator.
    Print the order object in OnOrderUpdate().
    Enable TraceOrders.
    Run the script and save the output to a text file and include this with your next post.

    Below is a link to a forum post that demonstrates with videos using prints to understand behavior.


    We will be happy to assist with analyzing the output.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      ok, thanks, It will take me some time to generate that. Will follow up when I have it.

      Comment


        #4
        I override it by making a script that will do error check. when this error or bug will appear it will detect it and correct it. It works well, so will leave it at that for now. Thanks.

        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