Create / Edit Indicators
To create a new indicator
- Click on Add to create a new indicator and open the source code editor.
Tip: You can rename your indicator by typing in the new name immediately. Selecting Rename from the indicator dropdown menu. Pressing F2 on the keyboard.
- Write your code
The second and most important step is the entry of the actual algorithm/code. You can use the editor available or copy / paste your code from another source.You can save your code periodically by clicking Save or selecting Save from the dropdown menu.
- Build Indicator
Before you can use your algorithm with the charts, you need to convert it into a working indicator.
To build the indicator, click the indicator icon .
Indicates that changes were made to the code since the last build. An asterisk* will also appear beside the indicator name.
Indicates that no changes were made to the code since the last build.
The Build Result area at the bottom of the platform will show you if the build was successful or if there were errors in the code.
The indicator cannot be built if the code contains errors. A list of any errors in the code and the details of the errors will appear in the Build Result area at the bottom of the platform.
Tip: Clicking on an error in the list will activate the line in the code where the error resides.
To edit the algorithm for your indicator, simply select the indicator from the list and make your changes in the editor, or copy / paste from your editing source.
Click Save or Build to save your work.
Attention:After making changes to the code, the indicator needs to be rebuilt before changes can take effect.
When the source code is changed, any instances already attached to a chart will not be affected until a rebuild, and can still be run using the old code.
Adding an instance means attaching an indicator to a chart.
In the example below, the asterisk* and the build icon indicate that changes have been made to the code since the last build.
However there are three instances already attached which can still be run using the old code by pressing play.
Click the arrow for Indicator Quick Options
Add an Instance
Attach your ndicator to a chart and edit parameters. Only parameters defined by the code as editable will appear here.
Save all changes made to the source code (Ctrl + S) (this will save changes to the source, but will not apply or build the source).
Click to rename your indicator. This will not affect any trades opened using the indicator. Shortcut key: F2
Delete the indicator
Create an identical indicator.
Example of usage
Testing multiple ‘versions’ of a indicator.
Show in folder
Open the indicator file location on your computer.