Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with Print() not working

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

    Problem with Print() not working

    I'm trying to figure why I can't get a string variable to be used as an order signal name parameter, so I added in a couple Print() statements. No matter what I do, I can't get them to show up in the output window. The odd thing is, I have other Print() statements that do work.

    Now, here's the corker: I added Print("a new bar"); as the very first line in onBarUpdate(), and that doesn't show up either.

    I tried restarting NT, no luck. I feel like I must be doing something really dumb, but I just can't see it.

    #2
    Hi coolmoss,

    Are there any error messages in log tab of control center? I'm happy to give the script a run here on my side as well.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Many thanks Ryan. I called it quits last night, rebooted my computer, and all is okay now. Hopefully it's okay if I tack on an extra question here instead of starting a new thread:

      Is there any limitation on the number of user parameters on a strategy? I'm currently at 26, and my next development task has me almost doubling that.

      Comment


        #4
        Great to hear it's working now. There are no restrictions on number of total inputs. Only related restriction here is cs files can have no more than 65,535 lines.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Was the scroll bar in the output window "locked"?

          If it isn't on the last line, you won't see any new prints.

          I usually cntrl+end in the window to get there.




          Originally posted by coolmoss View Post
          I'm trying to figure why I can't get a string variable to be used as an order signal name parameter, so I added in a couple Print() statements. No matter what I do, I can't get them to show up in the output window. The odd thing is, I have other Print() statements that do work.

          Now, here's the corker: I added Print("a new bar"); as the very first line in onBarUpdate(), and that doesn't show up either.

          I tried restarting NT, no luck. I feel like I must be doing something really dumb, but I just can't see it.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          633 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          364 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          567 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X