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 rhyminkevin, Today, 04:58 PM
            4 responses
            52 views
            0 likes
            Last Post dp8282
            by dp8282
             
            Started by iceman2018, Today, 05:07 PM
            0 responses
            5 views
            0 likes
            Last Post iceman2018  
            Started by lightsun47, Today, 03:51 PM
            0 responses
            7 views
            0 likes
            Last Post lightsun47  
            Started by 00nevest, Today, 02:27 PM
            1 response
            14 views
            0 likes
            Last Post 00nevest  
            Started by futtrader, 04-21-2024, 01:50 AM
            4 responses
            50 views
            0 likes
            Last Post futtrader  
            Working...
            X