private const string PERSISTENT_DICT_KEY = "MyPersistentInfoDictionary";
string jsonData = _myDictionary.ToJson();
Globals.SetValue(PERSISTENT_DICT_KEY, jsonData);
and back:
object rawValue = Globals.GetValue(PERSISTENT_DICT_KEY);
string jsonData = rawValue.ToString();
var deserializedDict = jsonData.FromJson<Dictionary<KEY, VALUE>>();
if (deserializedDict != null) {
_myDictionary = deserializedDict;
}
but I get the compilations error:
'Globals' does not contain a definition for 'GetValue',CS0117
'Globals' does not contain a definition for 'SetValue',CS0117
Is there a possibility in NinjaTrader 8.1 to use Globals to store/retrieve a string value?
Thank you for example line of code using Globals to store/retireve a string or an integer.

Comment