TradeStation Add-On Developer Center
Develop for the Premier Strategy Trading Platform - TradeStation
Contact Us - TradeStation Developer Center CONTACT US
 
Become an Add-On Developer: Technologies: EasyLanguage® Enhancements: Functions Next: EasyLanguage® Dynamic Link Library Next

EasyLanguage® Enhancements: Functions

 

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 don’t 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
 

Click here for a code exampleEasyLanguage Example:

The following is a snapshot of the EasyLanguage Dictionary where both the user functions and intrinsic functions can be found.

Enlarge Screen
EasyLanguage Dictionary.
 
© 2002 - 2007 TradeStation® and EasyLanguage® are registered trademarks of TradeStation Technologies, Inc.