ReloadAllHistoricalData()
ReloadAllHistoricalData()
Definition
To be used only in the OnConnectionStatusUpdate() event. Forces the data repository to be reloaded for any bars series running in the hosting script after. Data will be reloaded for any charts currently running which match the hosting scripts bars series (minute, tick, day). This method will also check and reload the max number of days or bars to load used in every chart running which matches the bars series contained in the script. Reloading historical data refreshes the UI which will force the NinjaScript object to re-transition to real-time. This method was designed for reloading historical data after an OnConnectionStatusUpdate event.
Critical: This method should NOT be called from any of the event methods which access data or any of the OnStateChange() states as it may be called recursively while the hosting object transitions through states. The designed use case for this method is reloading historical data after a connection update therefore we suggest ONLY using this method in the OnConnectionStatusUpdate method. Please see the examples below for a demonstration of the intended use case.
Method Return Value
This method does not return a value.
Syntax
ReloadAllHistoricalData()
Parameters
This method does not take any parameters.

