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 CarlTrading, 03-31-2026, 09:41 PM
              1 response
              67 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              36 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              59 views
              1 like
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              62 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              53 views
              0 likes
              Last Post CarlTrading  
              Working...
              X