Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer - Time Out

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

    Strategy Analyzer - Time Out

    I am struggling a bit with the Strategy Analyzer.

    My strategy works fine on a chart, but when I run it through the Analyzer I end up with "Indicator 'MyIndicator': Error on calling 'OnBarUpdate' method on bar 5: Object reference not set to an instance of an object."

    I started to debug the issue and tracked to what I thought was the "Time[0]" call, which was the cause. Then I removed the line and it got stuck at other objects. I compiled under the debug and captured a "Time Out" operation error. Looks like these values were not create (Time for example) due to the time out in the analyzer.

    I also debug it further to know it isn't the first round of parameters tested. That is the first run of the strategy per thread. That run is fine (7 or 8 threads on my system), but the very next group of parameters fail with this error. Certainly NT8 could give better error guidance from the get go and might be good feedback, but what is causing the time-out in the analyzer.

    I know the Strategy Analyzer will work with the Simple MA Crossover strategy so it if something it doesn't like about my strategy.

    Any hints?
    Attached Files
    Last edited by NJA_MC; 06-19-2015, 06:06 PM. Reason: Solved the problem

    #2
    Solved

    Wow,

    Figured it out by comparing against the Sample MA Crossover.

    The difference was the STATE at which I loaded my indicators. Sample loaded in Configuration state, I was loading them in the DataLoaded state. This was the problem, Strategy Analyzer runs fine now.

    Comment


      #3
      Hello NJA_MC,

      Thank you for your update on this matter.

      Glad you were able to find the resolution.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      672 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      379 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      575 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      582 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X