Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Interesting Error

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

    Interesting Error

    I am having an issue with the Strategy Analyser. I have a strategy that compiles well and runs in real time well. In the Strategy tab of the Control Centre, I can right click on a strategy and get the performance from there. However, when I use the Strategy Analyser and try to back test on any symbol (even one that I just saw work in Control Centre) the Summary report is all zeros.

    #2
    Hi yimbot,

    Do you get any errors in your Log tab then?

    Are you disconnected from your datafeed while trying the Strategy Analyzer backtest?

    Comment


      #3
      Thanks Bertrand,

      No errors in the log and I am connected...

      Comment


        #4
        Not sure I follow. When you right click and get performance from a chart you are getting the performance of real-time trades. Your strategy is likely just a real-time strategy. Please try with SampleMACrossOver.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I get data with SampleMACrossOver no problem.

          Comment


            #6
            Right. I am suspecting it is your strategy. You may have some lines like
            Code:
            if (Historical)
                 return;
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              I commented that out previously, but I do have a

              #if !TESTBED
              ...

              is this a likely culprit?

              Comment


                #8
                Not sure what you have there yimbot. The point is if you are preventing your strategy from historical calculations for sure you will not see backtest results in the Strategy Analyzer.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  thanks, I will try and track it down...

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Mindset, 04-21-2026, 06:46 AM
                  0 responses
                  101 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by M4ndoo, 04-20-2026, 05:21 PM
                  0 responses
                  144 views
                  0 likes
                  Last Post M4ndoo
                  by M4ndoo
                   
                  Started by M4ndoo, 04-19-2026, 05:54 PM
                  0 responses
                  71 views
                  0 likes
                  Last Post M4ndoo
                  by M4ndoo
                   
                  Started by cmoran13, 04-16-2026, 01:02 PM
                  0 responses
                  125 views
                  0 likes
                  Last Post cmoran13  
                  Started by PaulMohn, 04-10-2026, 11:11 AM
                  0 responses
                  79 views
                  0 likes
                  Last Post PaulMohn  
                  Working...
                  X