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 NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        93 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        152 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        80 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        53 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        64 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X