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