With the PowerLanguage .NET Editor we can create new indicators and trading strategies, and open existing scripts to edit them. But how can we delete MultiCharts .NET scripts?

Removing scripts in the PowerLanguage .NET Editor

The PowerLanguage .NET Editor is the primary tool for creating and editing indicators, trading strategies, and functions in MultiCharts .NET (MultiCharts, 2014). We can also use it to export and import scripts, change script settings, and use keyboard shortcuts to efficiently work with the scripts.

There are two ways in which we can remove scripts in the PowerLanguage .NET Editor: with the ‘Studies’ window panel or with the ‘Open Study’ window that we typically use to open scripts. To clarify, studies is MultiCharts .NET’s collective name for indicators, signals (which are trading strategies), and functions (MultiCharts Wiki, 2013). These studies are more commonly known as scripts, and that’s the term we’ll use.

By the way, a script isn’t removed from the PowerLanguage .NET Editor if we remove its source file, which is located in the “C:\ProgramData\TS Support\MultiCharts .NET64\StudyServer\Techniques\CS” folder (for the 64-bit version of MultiCharts .NET).

Tip: Please note that scripts removed in the PowerLanguage .NET Editor are not recoverable in any way (MultiCharts Support, personal communication, July 17, 2015). Consider making a backup of MultiCharts .NET scripts before removing one or several scripts.

Removing an indicator with the ‘Studies’ window panel

One way to remove a script is with the ‘Studies’ window. First, launch the PowerLanguage .NET Editor and look for this window. If you cannot find it, check if it’s enabled by going to the ‘View’ menu and activating ‘Navigator’:

Enable Studies window in the PowerLanguage .NET Editor

By default, there are three folders in the ‘Studies’ window: ‘Functions’, ‘Indicators’, and ‘Signals’:

Folders in the Studies window

Now, let’s navigate to the ‘AdvanceDecl_Ratio’ indicator:

Selecting an indicator in the Studies window

After that, right-click on this indicator’s name and select ‘Delete’:

Removing an indicator from the Studies window

Then a window pop-ups asking us if we really want to delete the script:

Confirm MultiCharts .NET script removal

After clicking ‘Yes’, the ‘AdvanceDecl_Ratio’ indicator is removed and gone from the ‘Studies’ window:

MultiCharts .NET indicator removed from the Studies window

Closing MultiCharts .NET scripts before removing them

A script cannot be removed in the PowerLanguage .NET Editor if it’s currently open in this code editor. If we, for example, opened a script like the standard ‘Bollinger_Bands_LE’ strategy:

Code editor with open strategy file

Then we right-click the script’s name in the ‘Studies’ window and choose ‘Delete’:

Removing trading strategy in the Studies window

We get the message that the script cannot be removed since it’s currently open:

Open script cannot be removed

And so we first need to close the script before we can remove it.

Removing several scripts with the ‘Studies’ window panel

The Control and Shift key allow for selecting (and then deleting) several scripts at once in the ‘Studies’ window. When we click on a script, then hold down Shift and click on another one, all scripts between those two are also selected. And if we press Control down we can select several individual scripts.

Let’s say we want to remove several Visual Basic strategy scripts. First, we expand the ‘Signals’ folder in the ‘Studies’ window:

Open Signals folder in the Studies window

Then we move down until we come across the ‘vb’ files (standard Visual Basic scripts are prefixed with ‘vb’ in MultiCharts .NET). We then select multiple scripts while holding down Shift:

Selecting multiple MultiCharts .NET scripts

We then right-click and select ‘Delete’:

Deleting multiple MultiCharts .NET scripts

And then we confirm removing these scripts:

Confirm multiple script removal

Removing a MultiCharts .NET script in the ‘Open Study’ window

Besides deleting scripts in the ‘Studies’ window panel, we can also remove them in the ‘Open Study’ window. That allows us to use that window’s sorting and filtering features to quickly find the script we’re looking for.

Use the Ctrl + O keyboard shortcut to open the ‘Open Study’ window or click on the toolbar’s ‘Open’ icon ( ):

Open icon in the PowerLanguage .NET Editor toolbar

Then we navigate to the script we want to remove, like the ‘Ease_of_movement’ indicator:

Selecting a script to remove

We then right-click on that script and select ‘Delete’ (or use the Delete key):

Removing a script from the Open Study window

And then we confirm the script’s removal:

Confirm MultiCharts .NET indicator removal

Removing multiple scripts at once with the ‘Open Study’ window

Just as in the ‘Studies’ window panel, we can also remove multiple scripts at once in the ‘Open Study’ window. That’s done by clicking with the mouse and holding down Control (to select multiple scripts) or Shift (to select all scripts between two clicks).

So with Control we can select multiple scripts in the ‘Open Study’ window:

Selecting multiple scripts in the Open Study window

To remove those scripts, we right-click on any of them select ‘Delete’ (or press the accompanying keyboard shortcut):

Removing several scripts from the Open Study window

And then we delete these scripts by confirming their removal:

Confirm removal of multiple MultiCharts .NET scripts

For more about working with scripts in the PowerLanguage .NET Editor, see organising scripts into folders, changing script settings, and backing up PowerLanguage .NET scripts.


Removing scripts in the PowerLanguage .NET Editor can be done with the ‘Studies’ window panel or with the ‘Open Study’ window. We can remove multiple scripts at once with the Shift or Control key. A script can only be removed when the file is closed in the editor, and removing a script cannot be undone.

Want to learn more about C#, the programming language that drives MultiCharts .NET? Checkout my C# programming tutorials.


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

Visit Kodify for more helpful coding articles.