GlobalDictionary to GlobalVariable

Questions about MultiCharts and user contributed studies.
FutureTrader
Posts: 79
Joined: 28 Mar 2013
Has thanked: 3 times
Been thanked: 4 times
Contact:

GlobalDictionary to GlobalVariable

Postby FutureTrader » 31 Mar 2013

Those two indicators were coded for TS RadarScreen. One RadarScreen Window sent the Data to the other RadarScreen window.
I have read that this could be coded with GlobalVariable instead of GlobalDictionary.
Is GlobalVariable a default library in Multicharts? I searched the forum and found, that it is default in x64 but not in x32 is this correct?
Could someone give me a hint how to recode this with GlobalVariable.
Thanks.


Indicator sending:

Code: Select all

vars:
GlobalDictionary mtfRsiGlobal (NULL);

once Begin
mtfRsiGlobal = GlobalDictionary.create(false, "mtfRsiGlobal");
end;

if mtfRsiGlobal.contains(GetSymbolName+"mtfRsi_5min") then begin
mtfRsiGlobal.Items[GetSymbolName+"mtfRsi_5min"] = rsiValue;
end
else begin
mtfRsiGlobal.add(GetSymbolName+"mtfRsi_5min", rsiValue);
end;

Indicator receiving:

Code: Select all

variables:
GlobalDictionary mtfRsiGlobal(NULL);

once begin
mtfRsiGlobal = GlobalDictionary.create(false, "mtfRsiGlobal");
end;

If (mtfRsiGlobal.contains(GetSymbolName+"mtfRsi_5min")) then begin
plotValue = mtfRsiGlobal.Items[GetSymbolName+"mtfRsi_5min"] astype double;
end;

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: GlobalDictionary to GlobalVariable

Postby TJ » 31 Mar 2013

GlobalVariable comes installed with Multicharts. It is available in both 32 bit and 64 bit versions.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: GlobalDictionary to GlobalVariable

Postby TJ » 31 Mar 2013

GlobalVariable is automatically installed into your computer during the MultiCharts installation process. There is nothing to add to activate the feature.

For GlobalVariable documents and usage examples,
please do a search of "GlobalVariable" and "GlobalVariables" on this forum.


Return to “MultiCharts”