Equilla Editor

For writing and editing scripts written in the Equilla language (which is in-built in Tradesignal), an Equilla editor is available. It supports programming by highlighting code areas and comments in different colors.

Opening the Equilla Editor


Equilla Editor
You can open the Equilla editor in two ways:
  • The editor opens when you edit a function, indicator or strategy. To do so, open the respective list (functions, indicators or strategies) in the toolbox. Then call up an entry for editing by either double-clicking on it or by selecting Edit from the context menu. The Equilla editor opens with the source code of the script.
  • To open an empty editor, you have to start a new script. To do so, select New Function (or New Indicator or New Strategy) in the Related Task area in the toolbox. The Create Item Wizard opens. Select the option Use the Equilla Formula Language to write the [...]. Enter a name and select a location for saving. Finish with Done. An empty editor opens.

Color Coding in the Editor

The source code is color-coded. The following colors are possible:

Blue: Signal words in the code (begin, end), declaration areas (meta, variables...), input types, commands (if then...), formatting (StyleSolid...), drawing commands (DrawText...).

Red: Content of synopsis, numeric values (e.g. close or true numbers like 1, 10, 30), true/false.

For blue and bold red Equilla expressions, you can find additional information in Tradesignal. To display it, right-click on the operator in question in the Equilla Editor, e.g. Begin, and choose Lookup Equilla Function from the context menu. A browser window opens with information on the operators and links to related functions.

Lilac: Names of other functions.

You can open these functions in the Equilla Editor. To do so, right-click on the function and and choose Open from the context menu. The source code is opened in the Equilla Editor.

Green: Comments

Black: Anything else, like text, declared variables etc.

Editing the Equilla Code


Equilla Editor group in the toolbar
When the Equilla editor is open, the Editor tab appears in the toolbar, with the following buttons:

Compile Script (F7) - Use this to compile the script. Only compiled scripts can be used. Un-compiled scripts are grayed out in the toolbox. In case of script errors, error descriptions will be given in the lower area of the workspace. For delivered scripts, compiling may lead to error messages if the scripts are protected against overwriting.

Undo (Ctrl+Z) - Undo the last action (multiple undoes possible, but none after compiling). This way, you can undo an unintended deletion, for example.

Redo (Ctrl+Shift+Z) - Repeat the last action (multiple repeats possible, but none after compiling). This way, you can insert a copied text multiple times, for example.

Select All (Ctrl+A) - Selects all code. You can use the standard Windows key commands to copy the code with "Ctrl+C" and then paste with "Ctrl+V", e.g. into a text editor.

Search and Replace

To edit the code, the Find group in the toolbar is available.
  • Click on Find to enter a search term in the search pane.
  • Click on Comment/Uncomment Selection to comment/uncomment selected lines of code using Equilla comments.
  • With Replace you can replace one or all appearances of a code text with another text.
  • For long scripts, you can use Goto Line to jump to a code line.

Applying Your Equilla Script

Scripts can only be applied once they have been compiled. After that, the new script can be used like any delivered function, indicator or strategy. You can find more information in the chapter Introduction to Functions, Indicators and Strategies.