Besides the toolbar there are also several other features that are accessible through the menu items in the PowerLanguage .NET Editor. Let’s examine what we can use them for.

The File menu of the PowerLanguage .NET Editor

The first menu in the PowerLanguage .NET Editor is the ‘File’ menu, and this contains the following items:

File menu in the PowerLanguage .NET Editor

File ⇒ New: creating a new MultiCharts .NET script

The first item, New, creates a new script and has three sub-items, one for each type of MultiCharts .NET script as shown in the image above: New Function, New Indicator, and New Signal (meaning, a new trading strategy).

For more on creating new scripts in the PowerLanguage .NET Editor, see creating an indicator, making a MultiCharts .NET trading strategy, and programming a function.

File ⇒ Open: open existing scripts

The Open menu item (Ctrl + O) brings up the ‘Open Study’ window for locating and opening a script:

Open Study window in the PowerLanguage .NET Editor

By the way, studies is the collective term that MultiCharts .NET uses for indicators, signals (which are trading strategies), and functions (MultiCharts Wiki, 2013). A more common name for these is scripts.

File ⇒ Close: close the script being worked on

The third item in the ‘File’ menu, Close (Ctrl + F4), closes the script currently being edited in the code editor. It’s the equivalent of the small ‘Close’ button in the top right of the script currently in view:

Closing a script in the PowerLanguage .NET Editor

File ⇒ Save and Save As: saving MultiCharts .NET code

The Save (Ctrl + S) item saves the current script file. The Save As option brings up the ‘Save As’ window to save the current script under a different name:

Save As window in the PowerLanguage .NET Editor

File ⇒ Properties: setting a script’s options

The Properties menu item opens the script’s properties window where several settings (like the script’s name) can be changed. The settings available in this window depend on the script’s type. Indicators, for example, have the following settings in the ‘Indicator Properties’ window:

Indicator Properties window

We take a closer look at these settings in creating a MultiCharts .NET indicator.

Functions are characterised by the following options in their ‘Function Properties’ window. We look at these options more closely in coding a MultiCharts .NET function.

Function Properties window in the PowerLanguage .NET Editor

A trading strategy’s ‘Signal Properties’ window consists out of four tabs with following settings:

Signal Properties window - Entries tab Signal Properties window - Exits tab Signal Properties window - Connecting tab Signal Properties window - Properties tab

In creating a MultiCharts .NET trading strategy we take a closer look at working with strategies in the PowerLanguage .NET Editor.

File ⇒ Import: adding existing scripts to the PowerLanguage .NET Editor

Indicators, strategies, and functions can be imported with the Import (Ctrl + I) menu option. This item opens a file browser window where we can select the .pln (PowerLanguage .NET Archive) file with the scripts to import:

The Import Studies file browser window

See the importing scripts in the PowerLanguage .NET Editor tutorial to learn more.

File ⇒ Export: output files in a PowerLanguage .NET archive

With the Export (Ctrl + E) menu item we export scripts in a PowerLanguage .NET archive (.pln) file. This menu item brings up the ‘Export Studies’ window where we can select the scripts to export:

Export Studies window

The exporting MultiCharts .NET scripts tutorial contains more information about exporting.

File ⇒ Print: printing a script’s source code

The Print (Ctrl + P) item opens the ‘Print’ window that allows printing the source code of the script that’s currently being edited:

Print window
Tip: An environmental-friendly and cost-effective option is printing to a PDF file, which is possible with free applications like doPDF.

File ⇒ Print Preview: examining the code before printing

The Print Preview menu item opens a window in which we can check the layout before printing:

Print Preview window in the PowerLanguage .NET Editor

File ⇒ Page Setup: specifying print settings

And with the Page Setup menu item we can check or set the print settings:

Page Setup window

File ⇒ Exit: closing the PowerLanguage .NET Editor

Exit (Alt + X or Alt + F4) is the last item in the ‘File’ menu and closes the PowerLanguage .NET Editor.

The Edit menu of the PowerLanguage .NET Editor

The ‘Edit’ menu contains several helpful features when writing code. It looks as follows:

Edit menu in the PowerLanguage .NET Editor

Most of these are also accessible through the toolbar’s icons. The menu items work as follows:

  • Undo (Ctrl + Z) corrects code editing actions in the code editor while Redo (Ctrl + Y) repeats them.
  • Cut (Ctrl + X), Copy (Ctrl + C), and Paste (Ctrl + V) place or retrieve selected text in the computer’s memory for further manipulation. They work just like any other text editor.
  • Delete (Del) will removed selected text or otherwise the character to the right of the text cursor.
  • Select All (Ctrl + A) selects all code in the PowerLanguage .NET Editor’s code editor.

The last item in the ‘Edit’ menu is Find/Replace (Ctrl + F) and this opens the ‘Find/Replace’ window to search for or replace text:

Find/Replace window in the PowerLanguage .NET Editor

The View menu of the PowerLanguage .NET Editor

With the ‘View’ menu we can enable or disable certain components of the PowerLanguage .NET Editor. It looks like this when all windows are enabled:

View menu in the PowerLanguage .NET Editor

The images below show the different windows, but they may look different than yours depending on how you arranged the window panels.

View ⇒ Toolbar: toggle the PowerLanguage .NET Editor icons

The Toolbar menu item displays or hides the toolbar, which is the horizontal row of icons and pull-down menus:

Toolbar in the PowerLanguage .NET Editor

View ⇒ Status Bar: enable or disable the status bar

With the Status Bar menu option we turn the status bar on or off. This PowerLanguage .NET Editor component looks like:

Example of status bar in the PowerLanguage .NET Editor

View ⇒ Error List: display or hide the list of errors

The error list displays all programming errors in the MultiCharts .NET scripts. It can be enabled or disabled with the Error List menu item.

Errors window in the PowerLanguage .NET Editor

View ⇒ Navigator: display the Studies pane

The Navigator option corresponds to the Studies pane where we can browse through the scripts. This window looks like:

Studies window in the PowerLanguage .NET Editor

View ⇒ Help Contents Bar: show or hide the help pages

With the Help Contents Bar item we can show or hide the window pane that holds the contents of the PowerLanguage .NET help file:

Help window in the PowerLanguage .NET Editor

Note that, when nothing is selected in the related ‘Help Bar’ window (see next image), the ‘Help Contents Bar’ window is empty. See working with the help window in the PowerLanguage .NET Editor for more.

View ⇒ Help Bar: displaying the help contents

The Help Bar menu item displays (or hides) the indexes of the help file. It looks like:

Help Contents window in the PowerLanguage .NET Editor

View ⇒ Output Window: show output from scripts

The last option in the ‘View’ menu is Output Window, which toggles the display of the ‘Output’ window pane. Scripts can output text to this window with the Output.Write() and Output.WriteLine() methods (MultiCharts, 2014), and this window’s contents can be programmatically cleared with Output.Clear() (see PowerLanguage .NET Help, n.d.).

Output window in the PowerLanguage .NET Editor

The Compile menu of the PowerLanguage .NET Editor

The Compile menu contains the following two items:

Compile menu in the PowerLanguage .NET Editor

The Compile menu item (F7) will compile all the changed, uncompiled MultiCharts .NET scripts. And Recompile All (Ctrl + F7) will recompile all scripts. For more on this, see compiling scripts in the PowerLanguage .NET Editor.

The Windows menu of the PowerLanguage .NET Editor

The Windows menu displays a list of all currently open scripts:

Windows menu in the PowerLanguage .NET Editor

Clicking on a script’s name will switch to its window. The Close All item will close all open scripts. When there are more then 9 open windows, the More Windows menu item appears:

Windows menu with multiple open windows

Selecting More Windows brings up the ‘Select Window’ window where we can select a specific script to switch to:

The Select Window to switch between windows

We can also switch to an open script with the downward pointing arrow in the code editor’s top right:

Switching between open code files

The Tool menu of the PowerLanguage .NET Editor

The Tool menu includes one item:

Tool menu in the PowerLanguage .NET Editor

The Editor Options menu item opens the ‘Highlighting Style Editor’ where the code editor’s visual appearance can be changed:

Highlighting Style Editor window

See changing the code syntax highlighting for more.

The Help menu of the PowerLanguage .NET Editor

The Help menu consists out of the following items:

Help menu in the PowerLanguage .NET Editor

Clicking on the PowerLanguage .NET Help item opens the ‘PowerLanguage .NET Help’ window:

PowerLanguage .NET Help file

See the working with the help contents in the PowerLanguage .NET Editor for more.

The About PowerLanguage .NET Editor menu item shows the editor’s version, which can be helpful when reporting an issue to MultiCharts Support.

Version info about the PowerLanguage .NET Editor

To learn more about working with the PowerLanguage .NET Editor, see changing script settings and working with the IntelliSense code completion tool. See moving the window panes and formatting the code syntax highlighting for how to change the appearance of the PowerLanguage .NET Editor.

Summary

All of the PowerLanguage .NET Editor’s features are accessible through the menu items. These include the ‘File’ menu for managing scripts and the ‘Edit’ menu for editing indicators, strategies, and functions. With the ‘View’ menu we enable or disable window panels, while the ‘Compile’ menu gets our script ready to use in MultiCharts .NET. Quickly switching to another script is done with the ‘Windows’ menu and through the ‘Tool’ menu we change the editor’s options. The PowerLanguage .NET help is accessible in the ‘Help’ menu.


References

MultiCharts (2014). MultiCharts .NET Programming Guide (version 1.1). Retrieved from http://www.multicharts.com/downloads/MultiCharts.NET-ProgrammingGuide-v1.1.pdf

MultiCharts Wiki (2013, May 6). Using Studies (PowerLanguage Editor). Retrieved on July 16, 2015, from https://www.multicharts.com/trading-software/index.php/Using_Studies_%28PowerLanguage_Editor%29

PowerLanguage .NET Help (n.d.). Retrieved on November 18, 2014, from http://www.multicharts.com/downloads/PowerLanguage.NET.chm