Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Has anyone managed to trigger a daily reload call using script only? i.e. set a time early in the morning refresh data once and continue. So a reload once per session at a given time.
This answer from the previous page seems promising .. if it can process SendKey for F5 can you also use this approach to reload data with the multi-key sequence CTRL-SHIFT-R to reload the data?
Earlier posts in this thread speak to a NT7 approach that might still work.
The only other way I have seen mentioned is using an external test or automation tool (one being the hacky AutoHotKey) and using that to SendKey F5 to reload Ninjascript and SendKey CTRL-SHIFT-R to reload the data.
Thanks yea either this through key or programmatic ReloadAllHistoricalData(). Main thinking was around making sure you only do it once per day at a specific time, lets say before you started the strategy time window for executions. Working on an approach to save last reload day to a file, so new instance after reload would know it has already reloaded for the day, otherwise the variable state would be nuked with the reload and you could be caught in a tailspin of reloading action (uncool lol).
The ReloadAllHistoricalData solution is NOT an F5 Reload NinjaScript Equivalent!
(unless you want Every Chart to Refresh Data w/one command, kinda like requested)
Regretfully for years an F5 code equivalent has been asked for.. to no avail!