EasyLanguage Object Reference

Using Forms Classes

The EasyLanguage forms classes allow you to create free-standing windows as part of an analysis technique or strategy. There are two categories of form objects: Containers and Controls. Containers (such as forms, groups, or panels) are used to group and display Controls (such as buttons, text areas, count up/count down spinners, combo boxes, and more). The properties for each container and control object are accessed through Easy Language.

                      Form Example

[ Expand All ]
Supported EasyLanguage Forms Classes

Control Classes

Container Classes

Adding Form Controls and Container Objects to your EasyLanguage Code

   To use EasyLanguage form controls and containers, you must have the following elements:  

vars: elsystem.windows.forms.Form form1(Null ),     //declare form1 as a Form type variable
      elsystem.windows.forms.Button button1(Null);  //declare button1 as a Button type variable

form1 = form.create("Form Heading", 100, 100);      //create a form container object and assign it to form1
button1 = button.create("MY BUTTON", 40, 30 );      //create a button control object and assign it to button1


button1.Location( 50, 50 );   

button1.Click += OnButton1Click;

method void OnButton1Click( elsystem.Object sender, elsystem.EventArgs args )
         //Your EasyLanguage code


The following example shows how to create a windows form with a button and a text box.  

Import Example

Windows form with a button control and text box.

  1. Click on the Import Example link to import the example into TradeStation.   
  2. Go to the TradeStation platform and create a chart window.  Use the Insert - Indicator menu sequence and Add !ex_WinForm to the window.
  3. To review or modify the example code, go to the TS Development Environment and open indicator !ex_WinForm in the EasyLanguage Editor.
Inheritance Hierarchy