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

Unable to cancel unmapped live orders

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

    Unable to cancel unmapped live orders

    Could someone please enlighten me why this would happen?



    I've got IB connected - I received this message after reloading a chart with a strategy running on it.

    Also, it seems like the strategy is running, despite this alert:



    Thanks!

    #2
    Mole, this script should not be started since NT was not able to map / cancel out the live orders from the previous strategy instance - what sync settings are you running it with?



    Is this on a setup with NT7 R15 and IB TWS 938.1?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Mole, this script should not be started since NT was not able to map / cancel out the live orders from the previous strategy instance - what sync settings are you running it with?



      Is this on a setup with NT7 R15 and IB TWS 938.1?
      We had it set to live orders and the sync setting was set to false. Seems like IB somehow got disconnected - we are using the gateway, which I know you are not supporting.


      But I was unaware of the sync setting - never noticed it. So this is very valuable.

      Comment


        #4
        Ok, thanks the follow up and clarification. Gateway support is on our list of feedback and I will make sure your vote is in as well.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          I have a follow up question after reviewing this page:

          Assuming the live setting - am i correct in understanding that the difference in the sync settings are as follows:
          • FALSE: If I have three open short positions in my account and two strategy positions supposedly being short it will attempt to map any of the three account positions to my strategy positions. It will however NOT close my third leftover short account short position.
          • TRUE: If I have three open short positions in my account and two strategy positions supposedly being short it will attempt to map any of the three account positions to my strategy positions. It will also close my third leftover short account short position.


          Otherwise I have a hard time wrapping my mind around the difference between the two settings.

          Comment


            #6
            What you would need to keep in mind that the sync setting is always individual per strategy, so it will not cycle through all strategies and then arrive at an overall strategy position per instrument - that's one thing we're looking into enhancing for our next major update. Also we would not sync any account position in, for NT always the strategy position will be paramount - with the sync false, it will not send any orders to reconciliate to the account and it would not manage any historical strategy position that the script may have coming from historical data.

            With the sync enabled, it will flatten the account if needed to reach the same flat state as your strategy would have with this setting (as any historical position would be virtual only and not managed live).
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Bertrand View Post
              What you would need to keep in mind that the sync setting is always individual per strategy, so it will not cycle through all strategies and then arrive at an overall strategy position per instrument - that's one thing we're looking into enhancing for our next major update. Also we would not sync any account position in, for NT always the strategy position will be paramount - with the sync false, it will not send any orders to reconciliate to the account and it would not manage any historical strategy position that the script may have coming from historical data.

              With the sync enabled, it will flatten the account if needed to reach the same flat state as your strategy would have with this setting (as any historical position would be virtual only and not managed live).
              But per the tutorial it would have flattened my account even with sync disabled. Please elaborate.

              Comment


                #8
                This would not be correct, with the sync disabled your account is not touched, unless there are active orders working from a previous instance. But still only those would be cancelled (as the historical strategy position is always flat in this first option) - the account positions themselves would not be affected.
                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by royhagerman, Today, 04:30 AM
                0 responses
                1 view
                0 likes
                Last Post royhagerman  
                Started by haas88, 03-21-2024, 02:22 AM
                18 responses
                208 views
                0 likes
                Last Post haas88
                by haas88
                 
                Started by Board game geek, Today, 02:20 AM
                0 responses
                6 views
                0 likes
                Last Post Board game geek  
                Started by knighty6508, Today, 01:20 AM
                2 responses
                16 views
                0 likes
                Last Post knighty6508  
                Started by franatas, Today, 01:53 AM
                0 responses
                5 views
                0 likes
                Last Post franatas  
                Working...
                X