Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

beta17 strategies not running

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

    beta17 strategies not running

    I ran a strategy overnight and then made some changes to the code, recompiled it and after that, NT won't run it.

    When I enable the strategy, the status in the Control Centre says it's downloading data from IB, but then that's as much activity as I get.

    The logging to the Output window which I coded in my strategy doesn't appear, not even a line in the Start-up event.

    If I try to disable and re-enable the strategy, it achieves nothing, in fact not even the warning about trade submission re-appears.

    The enabled / disabled status then become irrelevant and clicking on the 'Enabled' checkbox for instance doesn't enable it and it doesn't change status color. Despite making it checked or unchecked.

    If I look in the log, I see it has contacted IB but I can't see what the problem is, there's no visible error.

    I've included the log and the trace file.
    Attached Files

    #2
    adamus, is it the TrendFollower 8 one you're having issues with?

    23/06/2010 15:22:03|3|4|Unable to restore strategy 'NinjaTrader.Strategy.TrendFollower008' with ID '65bd6e03308a4867bba625f9c2acbaf8'. Most likely this strategy no longer is supported by the custom assemblies.

    Please try recompiling all NinjaScript's and then reapply the strategy fresh.

    Comment


      #3
      I saw that in the log. No, I'm onto TrendFollower009 now, and I thought I had deleted TrendFollower008. I even deleted the workspace and created a new one but that log statement keeps cropping up.

      Comment


        #4
        One thing I forgot to mention, this is on my production machine with Windows 7 Pro. In case it has any bearing on the matter.

        And I also tried repairing the database, and deleting and re-adding the strategy, and rebooting.

        Comment


          #5
          For the 009 one, I see this in your trace -

          2010-06-23 14:37:12:522 Strategy.StrategyGridDisplay.EnableStrategy: ERROR: System.IndexOutOfRangeException: Index was outside the bounds of the array.
          at NinjaTrader.Strategy.StrategyBase.SetInput(Bars[] newBarsArray)
          at NinjaTrader.Strategy.StrategyBase.Sync2Live()
          at NinjaTrader.Strategy.StrategyBase.set_Running(Bool ean value)
          at NinjaTrader.Strategy.StrategyGridDisplay.EnableStr ategy(StrategyBase strategy)

          Does this occur reproducibly if you enable it?

          Is there any way I could run this on my end to check into?

          Comment


            #6
            There's only 1 of those errors logged. That's strange. The situation wouldn't go away despite rebooting and restarting NT a few times.

            I didn't recompile, I didn't read your message until later, but the situation resolved itself after 1/2 hour - just at the point I was wondering whether to re-install.

            I found these in the c:/Users/Adam directory:

            -rwx------+ 1 Adam None 786432 2010-06-23 18:31 NTUSER.DAT
            -rwx------+ 1 SYSTEM SYSTEM 65536 2010-06-08 14:50 NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TM.blf
            -rwx------+ 1 SYSTEM SYSTEM 524288 2010-06-08 14:50 NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TMContainer00000000000000000001.re
            gtrans-ms
            -rwx------+ 1 SYSTEM SYSTEM 524288 2010-06-08 14:50 NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TMContainer00000000000000000002.re
            gtrans-ms

            They have timestamps from around the time of the disturbance.

            Comment


              #7
              Thanks for the feedback adamus, however we would still need some kind of reprocible scenario under which this would occur, so I would suggest to monitor your custom strategy behavior (I assume it's working as you expect at this point) and please let me know within this thread here should this resurface.

              Thanks

              Comment


                #8
                Hi Bertrand,

                what does that error mean? I guess it's not the cause since I would expect to see at least 3 or 4 from that situation, equal to the number of times I restarted NT and enabled the strategy.

                And also, what is the best way to re-enable NT went this type of situation happens again? I mean I was not so worried now because I am still in the testing phase, but when I go live and have several strategies running, I want to get back to normal ASAP.

                Also, what are those files with the long names in my user directory? Are they core dumps of some sort?

                Thanks

                Comment


                  #9
                  adamus,

                  Unfortunately there is no analysis we can give you at this point in time without a reproducible scenario. The message means something happened when you were enabling your strategy.

                  To start up again I would recommend restarting NT and then just enabling your strategies again.

                  The files you mentioned in your directory are irrelevant. NTUSER.DAT is a Windows file and not a NinjaTrader file.
                  Josh P.NinjaTrader Customer Service

                  Comment


                    #10
                    Originally posted by NinjaTrader_Bertrand View Post
                    adamus, is it the TrendFollower 8 one you're having issues with?

                    23/06/2010 15:22:03|3|4|Unable to restore strategy 'NinjaTrader.Strategy.TrendFollower008' with ID '65bd6e03308a4867bba625f9c2acbaf8'. Most likely this strategy no longer is supported by the custom assemblies.

                    Please try recompiling all NinjaScript's and then reapply the strategy fresh.
                    Hi Bertrand,

                    how can I get rid of this message that continually reappears?

                    I have no TrendFollower008 on this machine anymore and there's no .cs file for it in the bin/Custom/Strategy folder.

                    I don't know what it means by the reference to 'supported by custom assemblies'.

                    Thanks

                    Comment


                      #11
                      adamus, is the 'parked' strategy perhaps still being attempted to load from one of your workspaces or charts? Did you follow my suggestion to do a fresh of recompile of all present scipts?

                      Comment


                        #12
                        Do you mean opening all strategy scripts and hitting F5, or is there a "compile all" command somewhere?

                        I only have 2 strategies and 4 partial class strategies in my strategies folder.

                        Comment


                          #13
                          adamus, since all NinjaScript is compiled into one assembly the single compile you start in one script is always a 'compile all'.

                          Comment


                            #14
                            Originally posted by NinjaTrader_Bertrand View Post
                            Did you follow my suggestion to do a fresh of recompile of all present scipts?
                            Then my answer to this is "Yes".

                            The strategy TrendFollower008 that is mentioned in the log files doesn't exist as a strategy script file on the harddrive, and it doesn't exist in the Strategy Analyzer window's Strategies tree lists.

                            Comment


                              #15
                              Ok, thanks for confirming this step is done - have you set any strategy templates for this particular one perhaps that are being checked? Please close NT down and delete related templates from the MyDocuments\NinjaTrader 7\templates\Strategy folder, then restart fresh.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              624 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              359 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              105 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              562 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              567 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X