GlobalValue Class (Component)

The GlobalValue is a toolbox component that allows access a value that can be shared between EasyLanguage analysis techniques and strategies.

Typically, you will use the Toolbox to add a component to your EasyLanguage document.  Click and drag the name GlobalValue into your document from the Toolbox.  The name of the provider appears in the component tray at the bottom of your document.  By default, the name is followed by a number to identify multiple instances of the component.  You can also rename the component to make it easier to refer to the value in multiple analysis techniques..

When you save or read a value with the GlobalValue object you must specify the value type using the appropriate property to specify the value. For example, to save floating point value, use the DoubleValue property as follows:

GlobalValue1.DoubleValue = 123.45;

To read the same value back from another indicator and assign to a variable name MyPrice, use the DoubleValue property as in:

MyPrice = GlobalValue1.DoubleValue;

Namespace: elsystem

Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property BooleanValue bool Gets or sets the object'svalue as a boolean.
Public property Channel(string) string Gets or sets the common shared group name for an instance of GlobalValue.
Public property DateValue object Gets or sets the object's value as a DateTime.
Public property DoubleValue double Gets or sets the object's value as a double.
Public property IntegerValue int Gets or sets the object's value as an integer.
Public property Load bool True to load the object.
Public property StringValue string Gets or sets the object's value as a string.
Public property Type object Gets the value type of the GlobalValue object.
Methods
  Name Description
Public property Create Creates an instance of the class.
Events
  Name Description
Public event

Updated

Occurs whenever the GlobalValue is changed wherever it is used. See GlobalValueUpdatedEventArgs for the properties return by the handler's args parameter.