Output Window

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Editor >

Output Window

Previous page Return to chapter overview Next page

Show/Hide Hidden Text

The NinjaScript Output is a powerful debugging tool which can be used to further analyze valuable information generated by your NinjaScript files.  The Output window will only display data when other debugging methods such as the Print() or TraceOrders (for strategies) have been configured in a custom script.

 
You can open the NinjaScript Output window by going to the New menu, and selecting NinjaScript Output

tog_minus        Understanding the Output window display

Display Overview

1. Output table

The main component of the Output window, will display any Print or Information message sent from a script

2. Scrollbar

Used to navigate up/down on the output window

3. Output tabs

Two tabs available allowing you to separate the Print information for separate scripts.

4. Line highlight

Left clicking on a line will highlight a particular point of interest and will remain highlighted as the Output window updates or is scrolled up and down

 

Output_1

 

Right click menu

Clear

Clears the current content of the select Output window tab

Find...

Searches for a term in the Output window

Save As...

Saves the current content of the Output window in a text file

Always On Top

Sets the window to always be on top of other windows

Dual View

Enables/Disables the splitting of the Output tabs between the window allowing you to view both tabs at simultaneously

Synchronize Vertical Scrolling

When enabled, both tabs will scroll up/down at the same time and pace

Print

Displays options for printing the current window content to your printer

Share

Displays the Share options

Properties

Sets the Output window properties

tog_minus        Understanding the dual tab view

Dual view

You can optionally split the Output window tab's into a dual view which will allow you to view both outputs windows at the same time.  To enable this feature, simply right click on the Output window and select Dual view

 

Output_3

 

In the image above, we have enabled the dual view mode where we can see the output from two separate indicators. MyCustomIndicator is programmed to print to the Output 1 tab, while MyCustomIndicator1 is programmed to print to the Output 2 tab.  (Please see the Help Guide article on the PrintTo() method for more information on programming a custom script to print to a second output tab)

 

Synchronized Scrolling

While the Output window is in Dual view mode, each output window will have an independent scroll bar which allows you to navigate each output tab separately.  However if desired, you can synchronize the vertical scrolling between these two windows which will allow you to easily compare the output from two difference scripts where both tabs will scroll up/down equally at the same time.

 

To enable this feature, right click on the Output window and select the Synchronized Vertical Scrolling menu item.

tog_minus        Searching and highlighting

Using the Find Tool

If you would like to search for a specific value or text displayed in your Output window, you can use the Find tool to both highlight and navigate any terms that match your search.

 
To bring up the Find menu, right click on the Output window and select Find (or use CTRL + F as a keyboard shortcut).

 

To search for a specific term:

1.  Enter the text/value you wish to search for

2.  Specify which Output tab you would like to search

3.  Optionally check Match case to only look for terms which contain the exact text case of your term (i.e., Close would not be the same as close)

4.  Select the Find button which will navigate to and highlight the next matching term (indicated by the green arrow in the image below)

5.  The search will also highlight any other matches in the output window that match the search

 

Selecting the Find button again will continue to search through the Output window and will highlight the next match.

 

Output_4
 

Tip: Without the Find tool, you can also highlight terms simply by double clicking on the text in the output window.  Doing so will automatically search the highlighted term and highlight all results.

tog_minus        Clearing and saving output information

Clearing Output Information

After some time, you may feel the need to erase all the current information in the current output tab.  To do so, simply right click on the current output tab and select "Clear".

 
Tip: You can also use the ClearOutputWindow() method in directly your script to automatically clear the output content at a specific event or interval

 

Saving Output Information

If you would like to save the current results of your output, you can right mouse click on the desired output tab and select "Save As". Doing so will provide you with a Save As dialog window which will allow you to save your output in a Text (.txt) file at any location on your computer.

tog_minus        Output window properties

The following properties are available for configuration within the NinjaScript Output properties window:

Output_5

 

Window


Always on top

Sets the Output window to be on top of other windows

Dual view

Enables/Disables the splitting of the Output tabs between the window allowing you to view both tabs at simultaneously

Font - Output 1

Sets the font display for the Output 1 tab

Font - Output 2

Sets the font display for the Output 2 tab

Synchronize vertical scrolling

Enables/Disables where both tabs will scroll up/down at the same time and pace