TheGlobalDictionary Class (Collection)
The GlobalDictionary allows you to set up a collection of key/value pairs that can be shared between EasyLanguage analysis techniques and strategies. The GlobalDictionary class includes many of the same properties and methods as the Dictionary class.
There are two ways the GlobalDictionary can be configured. In one form, the GlobalDictionary class is used to share values within the same window type. In the other, the GlobalDictionary is configured to share with additional window types.
To create an instance of GlobalDictionary to share values within same window type:
myGlobal = GlobalDictionary.create();
To create an instance of GlobalDictionary to share values beyond the same window type or between two charts when multi-core charting is enabled.
myGlobal = GlobalDictionary.create(true, "share_name");
Elements are added to the global dictionary using the Add(sKey, oValue) method where sKey is a string containing the key name and oValue is the value to be stored.
Elements (key and value) are removed from the global dictionary using the Remove(sKey) method. The Contains(sKey) method is used to determine if an element key exists in the dictionary .
Namespace: elsystem.collections