Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

output window

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

    #16
    as I mentioned
    The code works perfectly well.
    I have tested this a number of times.
    What is happening is simple.
    Ninja Software quits performing calculations after 70 -80 bars.

    I feel this is some bug in the software.

    Comment


      #17
      I could send you the output to prove to you that my code works.

      Comment


        #18
        rjngh2005,

        No, NinjaTrader does not just stop processing code after 70-80 bars. I can guarantee you that. What we have been saying is you need to debug your code and your entry conditions. Very simply you can just add a Print() statement at the very beginning of your OnBarUpdate() to see that every single bar is indeed continuing to be processed even if the strategy is not trading. You need to find the logic gap and figure out what your code is doing and why it is doing what it is doing. Unfortunately we will not be able to debug your strategy for you.
        Josh P.NinjaTrader Customer Service

        Comment


          #19
          Originally posted by NinjaTrader_Josh View Post
          rjngh2005,

          No, NinjaTrader does not just stop processing code after 70-80 bars. I can guarantee you that. What we have been saying is you need to debug your code and your entry conditions. Very simply you can just add a Print() statement at the very beginning of your OnBarUpdate() to see that every single bar is indeed continuing to be processed even if the strategy is not trading. You need to find the logic gap and figure out what your code is doing and why it is doing what it is doing. Unfortunately we will not be able to debug your strategy for you.

          I have already done this...
          I have put print statements in the code.
          You can see that print statements are in a number of sections

          The problem is Ninja Software just quits computations

          Your associate claims that there is no output at all.
          This is incorrect
          I can run the script myself and produce output.
          However the output just stops after 70-80 bars though the chart clearly shows that bars are being generated.

          Please do not make claims that there is no output.

          Josh, I request you to read all the messages in this thread.

          Comment


            #20
            rjngh2005,

            I have already read all messages. My associate said there is no output and we have already identified to you why there was no output, because you were using if (Historical ) return;. Then you came back to us saying you were using Market Replay which would be understandable why you say there is output and why he said there wasn't.

            But that does not address your code. Your print statements are all within if-statements which would be in the same logical block of your trades. Putting it there is not useful for debugging. The same reason that your strategy stopped trading is the same reason you stop getting print outs. The only reason your strategy would stop trading is if the entry conditions are no longer true. This means you need to figure out why your entry conditions are no longer true and the way to do that is by putting print statements outside of the if-statements. Please debug your strategy. I can 100% guarantee you NinjaTrader does not just "stop" processing the strategy.
            Josh P.NinjaTrader Customer Service

            Comment


              #21
              I shall give this another try.
              I shall put print statements in the section where the
              if (BarsInProgress == 1) section
              I was trying to avoid doing this because this would result in a lot of output.
              I shall do this at end of day and report my findings.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              649 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              574 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              576 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X