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 fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,404 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      95 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      8 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      159 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      8 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X