Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error on running optimizer. Object reference not set to an instance of an object.

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

    Error on running optimizer. Object reference not set to an instance of an object.

    Following are the conditions where I get this error message.

    Running strategy optimization with two variables

    variable1 1;500;30
    variable2 0.001;0.999;0.03

    If I use smaller numbers (search area becomes bigger) such as 20, 0.02 instead of 30, 0.03 as above, this error message comes on after running for a long time and the optimization is terminated with no results. It seems to be that the arrays become too big. I am running NT latest version 6.5.1000.8 with XP service pack 3 and my .net installation shows .net 2.0, .net 3.0, .net framework 3.5 sp1. I have 2gb of memory.

    #2
    Hello,

    Thank you for your post.

    This error is usually an indication of corrupt data in the database.

    Try repairing the database: Tools --> Options --> Misc --> Repair DB.
    Ray S.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the prompt response. I did that numerous times to no avail. I followed the instructions I saw in the forum. Repaired and restarted ninjatrader and even rebooted the pc. Then again results I get are quite good for smaller number of iterations with the same data.

      Comment


        #4
        It seems the optimization requests too much resources when using smaller numbers.

        I suggest to increase the search area step by step in relation to the initial optimization and check where the border lies.
        JasonNinjaTrader Customer Service

        Comment


          #5
          That's exactly what I thought also. I have been doing what you suggested.

          I ran this optimization with 1gb memory and 2gb memory on the same computer. The results are the same. I guess there are some built in limitations and additional memory does not help. Is there a way to allow NT to have access to more resources? Will I have more resources in version 7 ?

          Comment


            #6
            vasily20011,

            Your optimization request is of a quite large sample. Please decrease your optimization request or decrease the amount of data to optimize on. NT7 will have improvements in memory usage.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by wzgy0920, Yesterday, 09:53 PM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by Rapine Heihei, Yesterday, 07:51 PM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by kaywai, Today, 06:26 AM
            1 response
            6 views
            0 likes
            Last Post kaywai
            by kaywai
             
            Started by ct, 05-07-2023, 12:31 PM
            6 responses
            206 views
            0 likes
            Last Post wisconsinpat  
            Started by kevinenergy, 02-17-2023, 12:42 PM
            118 responses
            2,780 views
            1 like
            Last Post kevinenergy  
            Working...
            X