• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cant start after Crash SIM101 Not Connected

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

    Cant start after Crash SIM101 Not Connected

    NT8 crashed and I had to abort as I was changing some chart settings. I will see if I can reproduce later. But the main issue is when I restarted, I got an Assertion Failed: "Account 'Sim101' is not Connected".

    I don't seem to be able to get by this error and restart NT8, keeps crashing when I try to ignore/Retry/Abort. Attached is the Error and a short of the Control Center (could not select window, needed to dump screen an crop this out). As best I can tell, the strategies are trying to come up as Enabled but the connection has not been made.

    I am going to try an recover by removing the strategy from the bin directory to see if that fails and comes up without needing to delete my DB file again.
    Attached Files

    #2
    I added @@ in front of the file name to disable it. On restart this didn't take effect (probably already compiled from last run).

    I then removed the "NinjaTrader.Custom.dll" to force it to loose its custom scripts. NT8 started up at this point, I then recompiled and everything is back to normal.

    Comment


      #3
      From your screenshot it looks like your strategies are enabled, however you're not connected to any account.

      Are you trying to auto start the strategy through it's constructor or through SetDefaults?
      MatthewNinjaTrader Product Management

      Comment


        #4
        Hi Matt,

        The enable is in the OnStateChange():
        Code:
         protected override void OnStateChange()
         {
         if (State == State.SetDefaults)
         {
         IsEnabled=true;
        To be clear, normally NT8 disables these strategies upon startup (of NT8 as this was). This was me simply starting NT8 after a crash, something mush have been left bad in the DB or something for this to be enabled while NT8 was starting.

        Comment


          #5
          I think I save the DB file, I have it zipped if you want it.

          Comment


            #6
            Originally posted by NJA_MC View Post
            I think I save the DB file, I have it zipped if you want it.
            No worries, I can reproduce. It's not related to the crash, but simply that it's attempting to enable when there is not an account. I'm not sure why you've experience that it simply disables the strategy as you said...

            So we're on the same page, can you try the following:

            - Ensure you have Connect on Startup unchecked
            - Setup your strategy with IsEnabled = true from SetDefaults on a chart
            - Restart NinjaTrader 8

            Do you end up with the same assertion? If you check the strategies grid, are the strategies "enabled" (but grayed out)?

            Or do they simply "disabled' as you said (can you clarify what happens here exactly, because this has not been my experience).

            I will check with development on expectations in this scenario.
            MatthewNinjaTrader Product Management

            Comment


              #7
              Okay, followed the instructions as stated and NT8 did give the same exception error so it is reproducable and not related to the prior crash.

              Comment


                #8
                I spoke with development and setting IsEnabled in SetDefaults is not something we can currently support. From my testing, as long as you have an account connected, it will work, but as you can see there are issues if there is not currently an account connected.

                To clarify, are you looking to just have the strategy enabled as soon as you have added to the chart? Or are you seeking some sort of "Auto start strategy" behavior which would make sure the strategy is setup and configured to run as soon as you start NinjaTrader?
                MatthewNinjaTrader Product Management

                Comment


                  #9
                  My goal was just to enable once added to a chart. I was still expecting to enable the strategy once NT8 started.

                  I am seeing other "issues" that might be related to this pesky flag and I have stopped using it for now. I would put this as a low priority, maybe even disable this setting in future revisions until you can revisit its implementation.

                  Comment


                    #10
                    Actually for me, if you can have the "Enabled" flag in the strategy box default to some system setting (or ENABLED). That would be great. If I open the Strategy dialog, I generally want to enable the strategy. But for consistancy with NT7 you may want to make this a system default which defaults to "disabled".

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Birdseye, Today, 04:52 AM
                    0 responses
                    3 views
                    0 likes
                    Last Post Birdseye  
                    Started by U0000999, Today, 03:43 AM
                    0 responses
                    4 views
                    0 likes
                    Last Post U0000999  
                    Started by NinjaCustomer, Today, 03:22 AM
                    1 response
                    7 views
                    0 likes
                    Last Post NinjaTrader_Marco  
                    Started by MarianApalaghiei, Today, 01:26 AM
                    0 responses
                    9 views
                    0 likes
                    Last Post MarianApalaghiei  
                    Started by seagraph, Yesterday, 03:27 PM
                    0 responses
                    14 views
                    0 likes
                    Last Post seagraph  
                    Working...
                    X