Functions are used to create studies and strategies. EasyLanguage® contains hundreds of prewritten functions and allows for the creation of custom functions to make writing trading signals and studies more efficient.
A user function is a defined set of instructions that you reference by name, and that return a value. For example, it is very common to calculate the range of a bar (the high minus the low). Every time EasyLanguage® users need to calculate the range of a bar, they dont need to write out the expression (High - Low) because EasyLanguage® provides a function called Range. This way whenever the range of a bar is needed, the function Range can be used in place of writing out the expression. EasyLanguage® contains hundreds of functions, plus allows for the creation of new functions.
Function Attributes:
- Functions can be designed to return numeric, true/false or text string values
- In addition to the return value, functions can be designed to provide one or more outputs
- Function inputs and outputs can be in the form of arrays
- A library of hundreds of user functions is included, which can be called by other functions, studies, or signals/strategies. The library includes all popular technical analysis functions, probability/statistics/correlation functions, etc.
- A library of hundreds of intrinsic functions not written in EasyLanguage but directly usable within the language
|
|
EasyLanguage Example:
The following is a snapshot of the EasyLanguage Dictionary where both the user functions and intrinsic functions can be found.
 |
| EasyLanguage Dictionary. |
|