Designating a block as a variable allows the user to alter the output value of the block while the algorithm is running. In addition, some variable blocks can be linked to Microsoft Office Excel allowing the user to alter the block's value directly through the Excel sheet (see: DDE Functionality for more information).
The following blocks can be designated as a user-defined variable:
Note The value of a user-defined Instrument Block cannot be altered while the algorithm is running; it must be set prior to the launch of the algorithm.
When a block is designated as a user-defined variable, its information appears as a new entry in the Variables Tab of the Information Panel, allowing the user to reconfigure the name, value, type, and the description of the variable.
Right-click on the block to display types of variables available for the respective block. If you select a variable type, a check mark will appear to the left of the selected variable type, indicating that the block has been designated as a variable.
Example Designating a Number Block as a user-defined variable
The Variables Tab in the Information panel lets you quickly view and reconfigure the following aspects of a variable:
Block: The name of the variable as it appears on the Designer canvas as well as on any location from which the algorithm can be launched (e.g., Algo Dashboard).
Default Value: The value of the variable. By default, this field is set to the value assigned by the user on the Designer canvas.
Value Type: The method by which the user assigns the value of the variable, as follows:
Note Variables can be rearranged using the drag-and-drop method. After deployment, the order of the variables is reflected within the Algo Dashboard widget.