Before we can edit a MultiCharts .NET script in the PowerLanguage .NET Editor, we first need to open it. We do that with the ‘Open Study’ window. But what are the different features of this window?

Opening a script in the PowerLanguage .NET Editor

Indicators, strategies, and functions are created in the PowerLanguage .NET Editor (MultiCharts, 2014). We also use this editor for compiling scripts, removing scripts, and adding DLL references. To do those things we first need to open a script’s source code.

To open a script, we launch the PowerLanguage .NET Editor and then click on the ‘Open’ button ( ) on the toolbar (we can also use the Ctrl + O keyboard shortcut):

The Open button in the PowerLanguage .NET Editor

This brings up the ‘Open Study’ window (see next image). A study can be classified in one of three types: an indicator, signal (that is, trading strategy), or function (MultiCharts Wiki, 2013). Studies are also known as scripts.

Open Study window

We select a script by clicking on its row and then press ‘OK’:

Selecting a MultiCharts .NET script in the Open Study window

That opens the script in the PowerLanguage .NET Editor, ready to be edited:

MultiCharts .NET script opened

Now, let’s examine the other features of the ‘Open Study’ window and how we can quickly find a specific script with it.

Exploring the ‘Open Study’ window in the PowerLanguage .NET Editor

All C# and Visual Basic MultiCharts .NET scripts are listed in the ‘Open Study’ window. At the top of this window we can filter on the type of scripts to display. For example, checking all three boxes lists all the scripts:

All MultiCharts .NET scripts selected

If we’re looking for an indicator, we can find it more easily by hiding the other script types like so:

Only MultiCharts .NET indicators selected

Two numbers are listed behind each script type. The first is the number of scripts of that type (here we have 327 indicators, for example). The second is the number of compiled scripts. Here we have 327 indicators compiled and ready to use in MultiCharts .NET.

Looking for scripts in the ‘Open Study’ window

Each script type has its own icon in the ‘Open Study’ window. Indicators have a blue icon ( ), strategies an orange one ( ), and a green icon ( ) is placed before functions.

We can also look in the ‘Type’ column to see the type of script:

Example of the Type column in the PowerLanguage .NET Editor

There are four columns in the ‘Open Study’ window: ‘Name’, ‘Type’, ‘Status’, and ‘Modified’. We can click on the column’s title to sort the scripts in ascending or descending order. Sorting scripts in different ways can help to find a specific script quickly.

We can, for example, sort the script list alphabetically with the ‘Name’ column:

Sorting scripts with the Name column

Or by ‘Type’ of script:

Sorting scripts with the Type column

Sorting with the ‘Status’ column allows us to quickly see which scripts are still uncompiled:

Sorting scripts on the Status column

There’s also a ‘Modified’ column, but this one is the least useful because it often shows the same time for a lot of files:

Sorting scripts with the Modified column

Editing and deleting scripts in the ‘Open Study’ window

We can also right-click any script in the ‘Open Study’ window to bring up a context menu:

Right-click menu in the Open Study window

The ‘Open’ menu item opens the selected script and so behaves in the same way as double-clicking on a script or pressing the ‘OK’ button.

The ‘Edit’ menu item brings up a script’s specific settings. When a function is selected, it brings up the ‘Function Properties’ window and with a strategy the ‘Signal Properties’ window is displayed. When an indicator is selected, ‘Edit’ shows the ‘Indicator Properties’ window:

Indicator Properties window

The ‘Delete’ menu item deletes the MultiCharts .NET script after we confirm its removal:

Confirm MultiCharts .NET script removal

And the ‘Select All’ menu item selects all scripts that are currently displayed in the ‘Open Study’ window.

Searching scripts in the ‘Open Study’ window by typing

Another helpful feature of the ‘Open Study’ window is searching for a specific script by typing in the first letter(s) of the script name. For example, if we type ‘r’ in the ‘Open Study’ window, the first script that starts with an ‘r’ is selected:

Searching for a script with its letter

We can also type in the first letters of a script’s name to search for that script. And so when we type ‘rsi’, the selected row jumps to the first script that with those three letters:

Typing to search a script

Opening multiple scripts with the ‘Open Study’ window

Opening a single script in the ‘Open Study’ window requires selecting a script and pressing ‘OK’ or double-clicking on a script’s name. We can open multiple scripts at once by holding down the Control key while clicking on the scripts’ rows, followed by pressing ‘OK’:

Selecting multiple scripts with Control

If we click on a script once, then hold down the Shift key and click on another script, all scripts between those two are also selected:

Selecting multiple scripts with Shift

If we then click on ‘OK’ all of those scripts are opened:

Opening multiple MultiCharts .NET scripts

To learn more about working with scripts in MultiCharts .NET, see editing a script’s options, exporting scripts and importing scripts.

Summary

We open MultiCharts .NET scripts (indicators, strategies, and functions) in the PowerLanguage .NET Editor with the ‘Open Study’ window. In this window we can filter scripts, sort them with one of the columns, and edit the settings of individual scripts. By using the Shift or Control key we can also open multiple scripts at once. Searching for specific scripts is also possible by typing in the first letter(s) of the script’s name.


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