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

Strategy keeps disabling

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

    Strategy keeps disabling

    Whats this error message and how do I fix it...everytime I turn a strategy on I get this message then strategy automatically disables
    3/29/2019 12:06:19 PM Default Unable to cancel out live orders. Strategy 'MyCustomStrategys/155874139' was not started.

    #2
    Hello rickyblah12,
    Thanks for your post.

    Are you able to manually cancel the orders from the Orders tab of your Control Center?
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      yes....should I?

      Comment


        #4
        how do I know which of the orders belong to the strategy thats making the errors?

        Comment


          #5
          rickyblah12,

          I am more or less curious if the orders are stuck. Can you confirm that the orders are able to be cancelled manually? I suspect they would be orders on the same instrument you are enabling the strategy on.

          Also, what logic are you using to cancel the orders in your strategy?

          What StartBehavior are you using?
          Last edited by NinjaTrader_JoshG; 03-29-2019, 11:23 AM.
          Josh G.NinjaTrader Customer Service

          Comment


            #6
            Some orders are able to cancel out manually but I dont know if those orders are the ones associated with that strategy...how would I know that

            Im not sure what you mean by what logic...Im using take profit, stop loss and Enter Long and Enter Short Orders

            Im using Wait Until Flat...Is this good?

            Comment


              #7
              Im seeing these orders in the positions tab doesnt let me close them...I dont know if thats what you're reffering to...its on sim101 account

              Comment


                #8
                im pressing X and its not lettting me cancel the orders on the orders tab

                Comment


                  #9
                  rickyblah12,

                  Sounds like the orders are indeed stuck.

                  I suggest resetting the SIM account and then trying again to enable the strategy. Resetting a simulation account will clear all historical trade data from this account. Please follow the instructions below to reset a simulation account.
                  • From the NinjaTrader Control Center window select the Accounts tab
                  • Right click on your simulation account and select 'Edit Account'
                  • Press the "Reset" button

                  Once you reset the SIM account try and enable your strategy.
                  Josh G.NinjaTrader Customer Service

                  Comment


                    #10
                    do I have to leave clear history enabled? cuz everytime I do it gets stuck for days

                    Comment


                      #11
                      I saw you tell someone to rename their db folder...is there anyway to do that and still keep your strategies and workspace?

                      Comment


                        #12
                        rickyblah12,

                        Yes I think it would be ideal to go ahead and clear the history as well.

                        In regards to renaming the database folder, that is certainly the 'nuclear option' but would also solve the issue. You can rename your "db" folder without affecting your automated strategies or your workspaces. This would create a new NinjaTrader database and clear all previously downloaded historical data from the platform.
                        Josh G.NinjaTrader Customer Service

                        Comment


                          #13
                          Originally posted by NinjaTrader_JoshG View Post
                          rickyblah12,

                          In regards to renaming the database folder, that is certainly the 'nuclear option' but would also solve the issue. You can rename your "db" folder without affecting your automated strategies or your workspaces. This would create a new NinjaTrader database and clear all previously downloaded historical data from the platform.
                          I tried this and couldnt find my auto strategies in the strategies tab

                          Comment


                            #14
                            rickyblah12,

                            You will need to re-add them to your strategies tab, but they will persist inside the installation(meaning you can add them back to the strategies tab).
                            Josh G.NinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by algospoke, Yesterday, 06:40 PM
                            2 responses
                            23 views
                            0 likes
                            Last Post algospoke  
                            Started by ghoul, Today, 06:02 PM
                            3 responses
                            14 views
                            0 likes
                            Last Post NinjaTrader_Manfred  
                            Started by jeronymite, 04-12-2024, 04:26 PM
                            3 responses
                            45 views
                            0 likes
                            Last Post jeronymite  
                            Started by Barry Milan, Yesterday, 10:35 PM
                            7 responses
                            22 views
                            0 likes
                            Last Post NinjaTrader_Manfred  
                            Started by AttiM, 02-14-2024, 05:20 PM
                            10 responses
                            181 views
                            0 likes
                            Last Post jeronymite  
                            Working...
                            X