I reviewed the details here and it sounds like I am trying to do something similar... Has there been any updates or changes to the ability to have a more global cached variables?
In my case we call a process in the State.DataLoaded or State.Configred that is references an API call to an external server and consumes a pretty large amount of data (but when executed for the same instrument within an 8 hour period for example) the data would be the exact same each time. So, as an example when running strategy analyzer or optimization... This might get called thousands of times when we simply need it once for a period of time.
I tried to add the standard .NET caching for memory cache but since this cached object is initialized in the indicator itself its not actually storing... I could possibly store a file on the server and access that file, which I think would likely be much faster than an API call... however I would really prefer not to have a bunch of temp files hanging around.
Any ideas? A simple key/value ability in a NT controller for this?
Thanks,
Chad
Comment