Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Print output disappears

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

    Print output disappears

    Hi,
    I am not able to keep the printed information visible on the Ninja Script Output window.
    Just as example, the attached indicator contains only the instruction

    Print("CurrentBar= " + CurrentBar);

    calculated OnBarUpdate with Calculate.OnBarClose.

    Putting that into e.g. a 15 min ES chart, clicking "apply", the bar numbers are correctly printed on the Output window.
    When then clicking OK, all printed data are canceled and only live data on real-time closing bars are afterwards written.

    How do I keep historical information on the Output Window without getting them to be canceled?

    Thank you
    Martin


    Attached Files

    #2
    martin70 I have just tested your code and it works exactly as I would expect: all output (historical and real-time) remains in the Output 1 Tab; nothing disappears. I tested on a Forex pair, but I doubt that would make any difference ... but ya never know.

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

    Comment


      #3
      Hello martin70,

      Thanks for your post.

      I have tested your script on my end and see that it is working as expected. All prints remain in the Output window.

      It could be possible that other scripts are overloading the window or clearing it.

      Something you could do is test the script in a clean environment.

      Creating a clean environment can be done by following the steps below:
      1. Close NinjaTrader 8, and rename the "NinjaTrader 8" folder in My Documents to something like: "NinjaTrader 8 OLD"
      2. Uninstall NinjaTrader from the Windows Control Panel and reinstall using the installer from http://ninjatrader.com/PlatformDirect
      3. Add the required indicator and test
      If you ever need to switch back to your original platform, you may do so by closing NinjaTrader and swapping the platform folder names.
      For example, Close NinjaTrader and rename the new "NinjaTrader 8" folder to "NinjaTrader 8 NEW" and the "NinjaTrader 8 OLD" folder to "NinjaTrader 8." Then restart the platform. Simply put: NinjaTrader 8 will always load the "NinjaTrader 8" folder in My Documents.

      Let us know if we may assist further.
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment


        #4
        Thank you very much for your reply. I've been following your instructions and in fact the result is correct.
        Now, although everything is closed and I have only one chart and the test indicator open on it, something evidently is running and causing this inconvenience.
        I see two ways:
        A) I disinstall completely NT and reinstall step by step all indicators, strategies etc. until I discover which is the script killer
        B) there is a way to discover what script is running even if not launched actively
        Any suggestion on B) ?
        Thank you very much
        Martin

        Comment


          #5
          Hello martin70,

          Thanks for your note.

          To see what (if any) NinjaScript items may be contributing to the symptoms, you could use the NinjaScript Utilization Monitor:
          • Control Center > New > NinjaScript Output
          • Right-click within the NinjaScript output window > Select 'NinjaScript Utilization Monitor...
          • This window will begin to populate with NinjaScript items in order of time spent processing
          Let us know if we may assist further.
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment


            #6
            Hallo Bradon, here the only info I get is chart style /candlestick, what does not help. I reinstall everything. Thank you again for your support

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            627 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            359 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
            562 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            567 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X