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 bortz, 11-06-2023, 08:04 AM
            47 responses
            1,603 views
            0 likes
            Last Post aligator  
            Started by jaybedreamin, Today, 05:56 PM
            0 responses
            8 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            4 views
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            12 views
            0 likes
            Last Post Javierw.ok  
            Working...
            X