Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 geddyisodin, Yesterday, 05:20 AM
        8 responses
        49 views
        0 likes
        Last Post geddyisodin  
        Started by DayTradingDEMON, Today, 09:28 AM
        3 responses
        19 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Stanfillirenfro, Today, 07:23 AM
        9 responses
        23 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by George21, Today, 10:07 AM
        0 responses
        8 views
        0 likes
        Last Post George21  
        Started by navyguy06, Today, 09:28 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X