Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Objective Optimizer Problems

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

    Multi Objective Optimizer Problems


    NT Support Dudes:


    When I attempt a Multi Objective Optimizer run, I get "Error on calling 'OnStateChange' method: Object reference not set to an instance of the object." When I run the same strategy through the Optimizer, no problem. Googling this issue, there's all sorts of ways this error can occur, and possible resolutions as well.

    Your thoughts on how to resolve? Thanks,


    #2
    Hello timmbbo,

    Thank you for your post.

    The error message "Object reference not set to the instance of an object" means that something in the script is returning null at the time you are accessing it. Debugging using prints would be necessary to determine what exactly is returning null in the script. Below is a Help Guide page that explains in detail.



    Are you perhaps calling AddDataSeries() dynamically in the script? Where / how are your strategy's properties defined in OnStateChange()?

    Please let us know if you need further assistance.

    Comment


      #3

      Gaby, thanks. I was eventually able to isolate the section of code causing grief, and IsInStrategyAnalyzer to leave it out of a run.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      87 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      128 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      65 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      117 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X