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;