Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer runs only on strategies built with strategy builder ?

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

    Strategy Analyzer runs only on strategies built with strategy builder ?

    Hi,
    Will the strategy analyzer run only on strategy builder built strategies. Is it supposed to run on ninjascript strategies that I code myself ? Does not seem to work for me.

    Thanks.

    #2
    Hello gchan,

    Thanks for your post.

    Yes, the strategy analyzer will run on all strategies, however, strategies with run-time errors will not run on the strategy analyzer. A run time error is an error that is outside the scope of the compiler so even though a strategy may compile fine when it is applied to dynamic conditions error can occur. An example of this would be calculating a bars ago that does not exist.

    When you apply your strategy to the strategy analyzer and do not see results, please check the NinjaTrader Control Center's 'Log" tab for any related error messages. Any run-time errors would need to be corrected.

    One other possibility would be that there is no data for the analysis period, a quick way to test/verify this is to run the strategy SampleMACrossover which is an always-in-type strategy so if there is data available you should see results.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hello Paul,
      The problem seems somehow related to my self generated script. I can run my script using live (SIM) or historical data and have no problems but the strategy analyzer gives no results. It returns almost immediately after I hit the RUN button. There are no errors in the log. The SampleMACrossover works fine in the strategy analyzer, so does nother simple strategy I created with the Strategy Builder.
      Aything else to look at ?

      Thanks.

      Comment


        #4
        Hello gchan,

        Thanks for your reply.

        Okay, so no errors in the log tab and SampleMACrossover works on the same data set in the Strategy Analyzer. The Historical data on the sim chart would be the exact same data as the strategy analyzer.

        At this point, the only option would be to debug your strategy builder strategy by using print statements to print out information to help understand what values are being used that are your entry conditions. Here is a short video that should get you started: https://paul-ninjatrader.tinytake.co...NV8xMDk5MDc5Nw


        Paul H.NinjaTrader Customer Service

        Comment


          #5
          OK, thanks.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Realsmooth3, Yesterday, 09:10 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Marco  
          Started by wooofad, 06-15-2020, 01:08 PM
          8 responses
          93 views
          0 likes
          Last Post echoxray  
          Started by bubblegum, Today, 12:00 AM
          0 responses
          2 views
          0 likes
          Last Post bubblegum  
          Started by eseorvuda, Yesterday, 10:28 PM
          0 responses
          2 views
          0 likes
          Last Post eseorvuda  
          Started by ctrent, Yesterday, 09:58 PM
          0 responses
          5 views
          0 likes
          Last Post ctrent
          by ctrent
           
          Working...
          X