Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Print() to debug

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

    #16
    error

    Not all code paths return a value?

    Comment


      #17
      You would need to comment out until you find the line causing error. No ideas off top of my head without going through it and removing it until finding the part the doesnt compile.
      BrettNinjaTrader Product Management

      Comment


        #18
        Answer to my own question

        public void Print1(string s)
        {
        if (s.Length>1)//Edit strictly speaking you don't need this
        Print(Time[0] + " " + s);
        }
        Last edited by Mindset; 06-16-2011, 10:06 AM.

        Comment


          #19
          Originally posted by Mindset View Post
          Please put that forward as a suggestion then thanks.
          Thanks Mindset, this is now tracked as enhancement suggestion under # 1056.

          Comment


            #20
            Originally posted by Mindset View Post
            Here is my sample line in OnBarUPdate()
            if(FirstTickOfBar)
            PrintWithTimeStamp("Hello");

            does not exist in the current context??
            I would like an answer too. I get the same compilation error. Has the command been removed in NT 7.0.1000.6 ?

            Comment


              #21
              Hello,

              This command is unsupported in NT7 since it is not in the help guide. Therefor it is possible that something has been removed or changed with it in this case Unfortunately.
              BrettNinjaTrader Product Management

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by charlesugo_1, 05-26-2026, 05:03 PM
              0 responses
              60 views
              0 likes
              Last Post charlesugo_1  
              Started by DannyP96, 05-18-2026, 02:38 PM
              1 response
              145 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 05-11-2026, 05:56 AM
              0 responses
              161 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 05-10-2026, 08:12 PM
              0 responses
              97 views
              0 likes
              Last Post CarlTrading  
              Started by Hwop38, 05-04-2026, 07:02 PM
              0 responses
              283 views
              0 likes
              Last Post Hwop38
              by Hwop38
               
              Working...
              X