Besides saving data to a file or interacting with external programs (like db behind a web service) is there a way to persist data across indicator resets? Gemini is talking about shared global cache but I think it’s hallucinating since I cannot find it in the docs.
You can customize this to achieve that objective: https://ninjatraderecosystem.com/user-app-share-download/charttocsv/
Thanks, I would prefer to avoid writing to a file. I’m thinking I could write add-on that could function as RAM storage, sharing data via static class.
I’m not sure if that’s the best way however: Help
NinjaScript Developer Example - Shared Static Class Examples
Static class cache = survives some indicator resets while NinjaTrader stays open.
AddOn singleton/static service = better organized in memory cache.
Chart/indicator properties/templates = persists settings, not runtime data.
File/database/registry/external service = real persistence.