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 sidlercom80, 10-28-2023, 08:49 AM
            166 responses
            2,234 views
            0 likes
            Last Post sidlercom80  
            Started by thread, Yesterday, 11:58 PM
            0 responses
            1 view
            0 likes
            Last Post thread
            by thread
             
            Started by jclose, Yesterday, 09:37 PM
            0 responses
            6 views
            0 likes
            Last Post jclose
            by jclose
             
            Started by WeyldFalcon, 08-07-2020, 06:13 AM
            10 responses
            1,414 views
            0 likes
            Last Post Traderontheroad  
            Started by firefoxforum12, Yesterday, 08:53 PM
            0 responses
            11 views
            0 likes
            Last Post firefoxforum12  
            Working...
            X