> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# Output Window

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.

## Understanding the Output window display

### Display Overview

| Name              | Description                                                                                                                                               |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/9dbdb658cc781ccc8edc765b7b0ba159ab4414bd81991dd0f10cc25d1c145246/docs/assets/developer/desktop-sdk/guides/output-window-output-1.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T070511Z&X-Amz-Expires=604800&X-Amz-Signature=2120c1d73c081cb785f0a249bc22fa276265b6411738360778e08a18e1844e8a&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

### Right click menu

| Name                            | Description                                                                                                           |
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| 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                                                 |
| NinjaScript Utilization Monitor | Opens the NinjaScript Utilization Monitor window                                                                      |
| Print                           | Displays options for printing the current window content to your printer                                              |
| Share                           | Displays the Share options                                                                                            |
| Properties                      | Sets the Output window properties                                                                                     |

## 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](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/5b1ce2894a618b881e638cb67e69f63f7dfa2f8e7f76a6a29852a09ca45453f3/docs/assets/developer/desktop-sdk/guides/output-window-output-3.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T070511Z&X-Amz-Expires=604800&X-Amz-Signature=5e7ed53d5b36b8073972ec4c98e346ebf0c0a8a3691c678e8278e7243fc16fec&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

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 different 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.

## 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](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/081742bf6a5ca884702b61900689bbd14fd0b4c2b0af2cbc3255af0e7d6cba07/docs/assets/developer/desktop-sdk/guides/output-window-output-4.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T070511Z&X-Amz-Expires=604800&X-Amz-Signature=38fa2164a99bfb057951e7d4765989bc2c896653a0769b5075b0c617f13ec4aa&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

Tip: With 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.

## 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.

## Output window properties

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

![output\_5.png](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/decb8ddd0a1e216346afb7455f775f2413a98c446d45e55c25414306eb706e8b/docs/assets/developer/desktop-sdk/guides/output-window-output-5.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T070511Z&X-Amz-Expires=604800&X-Amz-Signature=e82b44b884a2adb2419b37893c911bd299339d04b9fe908431af77033108d072&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

* Window
*

| Property                       | Description                                                                                                           |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| 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                                        |

## NinjaScript Utilization Monitor

The NinjaScript Utilization monitor is opened via a right click in the NinjaScript Output window and will be mainly used as a diagnostic tool for performance issues.

It will track any NinjaScript objects total resource time from the moment the window was opened:

* NinjaScript Utilization monitor window will not be saved in any workspace file
* NinjaScript Utilization monitor window works across all workspaces using a single window instance
* NinjaScript Utilization monitor window will work even if hidden / non-visible

When using it as debugging aid, it's recommended to focus on the top resource using NinjaScript's, while absolute total time is negligible.

Also it's important to understand that a resource heavy NinjaScript could be meaning:

a) the NinjaScript may not be coded as efficiently as possible and would be worthwhile to review if everything has been done to achieve optimal performance

b) it could be doing intense / steady calculations by design and a higher than average resource use therefore could likely not be avoided.

It should be thought of a gauge to see where likely performance / code optimization time is likely most wisely spent if the overall performance footprint is to be reduced.

Our support team is trained with this process and is available to assist.

![ninjascriptutilizationmonitor.png](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/3b06ea3652975f5d89403f22d20dda736fd4f8a188184a607cc0e798c28fe15f/docs/assets/developer/desktop-sdk/guides/output-window-ninjascriptutilizationmonitor.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T070511Z&X-Amz-Expires=604800&X-Amz-Signature=691630c13e521d7a2451e763e674efb23a67b590e2f9ea6415332926dde0f87b&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)