![]()
ATC Trader User Guide
Contents: Show all | Close all
EasyLanguage™ Compatibility
The plug-in also uses and develops EasyLanguage analyze techniques.
Add EasyLanguage Indicators
There are two ways to create a new EasyLanguage document:1. The Import File command menu in the Custom Indicator Library Manager offers to select a text file with the EasyLanguage code. Note: The plug-in does not recognize the native file formats of TradeStation.
2. The Import Clipboard on the command menu opens the EasyLanguage code editor with the current content of the Windows clipboard.
3. Copy the content to the clipboard somewhere before this operation.
Both of these commands open the EasyLanguage code editor. Refer to the Figure SampleRoC.el
SampleRoC.elEasyLanguage Code
The code editor is identical to the C# Code Editor, except for the Import menu.
Direct Verify and Compile
Use the Compile command in top menu of the code editor to verify the EasyLanguage code directly without translating to C#. A successfully verified and compiled indicator is used immediately in charts. All EasyLanguage indicators are placed to the Imported category of the Indicators list.Translating to C#
Because C# provides a wider functionality than EasyLanguage, sometimes it translates the EasyLanguage code to C# to continue development. Import commands in the top menu of the code editor are intended for these purposes.Functions
The plug-in provides the ability to add its own EasyLanguage functions. In contrast to TradeStation, the body of functions is a part of the same file as the body of indicator. To separate the code of the indicator and the code of functions, use the directive #function name of function. One indicator file contains the unlimited number of functions.![]()
EasyLanguage code editor also moves functions from another editors.
Copy the code of function from elsewhere and execute the command menu Add Function. This command determines the name of the function and inserts it with the #function directive to the end of file.
Library of EasyLanguage Functions
The user creates an individual library of EasyLanguage functions.Save an EasyLanguage file with an extension .lib.el (for example, MyFunctions.lib.el). All files with this extension are treated as parts of the common library.
If the indicator contains a call of some function, the EasyLanguage compiler searches it in this next sequence:
1. Internally supported functions of the compiler (Refer to List of supported EasyLanguage functions)
2. External functions that declared with “external” directive
3. Functions of the same file as the code of indicator (Refer to Functions)
4. Functions of *.lib.el filesExternal Libraries
All DLL of external libraries that are referenced via external directive of EasyLanguage are located in ATC\s folder.