Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Output Windows: More !

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

    Output Windows: More !

    I often run several strategies at a time. Each of these prints to the Output window. As such, it's nearly impossible to separate which strategy printed what. Really, each strategy should have its own window to print to. Yes, there are two possible Output windows, and that helps, but why can't we have several output windows?
    I'm sure this has been requested before. As such, I ran a search here for that. It produced some 250 hits. I looked at the first several, but none of them seemed to address this issue.
    Anyway, could you provide the status as to having more Output windows?

    #2
    Hello spottysallrite,

    Currently there are only 2 output tabs. If you need each strategy to have a unique output you could write data to file instead of using the output window. You would need to make a uniquely named text file for each strategy and then write data to each file. https://ninjatrader.com/support/help...o_write_to.htm

    Comment


      #3
      Code:
      string s = string.Format("{1}{0}{2}{0}{3}{0}{4}{0}{5}", "   ", this.DisplayName, Instrument.MasterInstrument.Name, BarsPeriod.BarsPeriodType, BarsPeriod.Value, "Some output");
      Print(s);​
      
      Strategy123     NQ    Range    48    Some output

      Comment


        #4
        It is possible to create more "Output" tabs ... but from a NinjaTrader Support perspective, it is "as unsupported as it gets". It requires some significant work to find and develop code that works, and so it is not for the faint of heart, nor for novice coders trying to learn the ropes. And the resulting "Output" tabs are not usable in the same way as the two existing tabs. Essentially, they are custom tabs that can be used to write output using custom methods. They are not any form of "duplication" of the existing tabs. ... ... Enter at your own risk.

        Thanks.
        Multi-Dimensional Managed Trading
        jeronymite
        NinjaTrader Ecosystem Vendor - Mizpah Software

        Comment


          #5
          Originally posted by Leeroy_Jenkins View Post
          Code:
          string s = string.Format("{1}{0}{2}{0}{3}{0}{4}{0}{5}", " ", this.DisplayName, Instrument.MasterInstrument.Name, BarsPeriod.BarsPeriodType, BarsPeriod.Value, "Some output");
          Print(s);​
          
          Strategy123 NQ Range 48 Some output
          LeeRoy, thanks for the suggestion. And, that kinda works. But, still, I have to wade through lots of irrelevant text (that printed by strategies other than the one I'm interested in). And, putting that additional code in with my other code makes the code really messy.

          And, Jesse, thanks for the suggestion regarding having my code write to a text file. I'm very familiar with working with StreamWriter(). However, if I want have that text file open (ie, reading it), then the code then can't write to it. One patch to that is to make a copy of that text file, then read that. But, that means creating even more files that then have to be managed.

          So, really, the cleanest way to accomplish this for NT to provide us with more than two Output windows.

          So, Jesse can you tell us what the status is regarding this issue? Has NT decided that this is simply something they will not do? Could you add my vote to those who have already asked for this modification ?
          Last edited by spottysallrite; 10-01-2023, 11:23 AM.

          Comment


            #6
            Have you tried Notepad++? It has monitoring feature so your strategy can write to a file and you can see new prints instantly.
            If you need to write and read at the same time in your strategy you need a single stream both reading and writing.

            Comment


              #7
              Also you could try to print in second output tab, as far as I'm concerned, NT doesn't use it at all so you will see only your prints.

              Comment


                #8
                Hello spottysallrite,

                You can track the feature request for adding more tabs by using the id SFT-378. We cannot provide any status updates on feature requests, if development decided to add that at some point in the future it would be listed in the changelog.

                Comment


                  #9
                  How can one view feature requests? I'd like to vote for this one.

                  Comment


                    #10
                    Hello GregX999,

                    There is not a way to view feature requests but i have added your vote.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by NullPointStrategies, Today, 05:17 AM
                    0 responses
                    46 views
                    0 likes
                    Last Post NullPointStrategies  
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    126 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    66 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    42 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    46 views
                    0 likes
                    Last Post TheRealMorford  
                    Working...
                    X