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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      88 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      48 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      30 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      34 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      68 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X