I am aware that I need to use a logical condition that prevents ReloadAllHistoricalData() from being triggered several times in a row. This can be easily achieved by defining a reload time and counting real-time bars.
Here are my questions:
(1) It is my understading that ReloadAllHistoricalData() will reload all bar series loaded by the indicator. For example if I have an indicator that runs on a tick chart, but has a minute and a daily bar series added, all three bars objects - tick bars (chart bars), minute bars and daily bars - should be updated. Is this correct?
(2) I understand that the reload affects other indicators added to the same chart. Is this correct?
(3) I further understand that the reload will be applied to all charts with the same instrument and type of data. In the example above all tick bars, minute bars and daily bars for the instruments called by the indicator would be updated onall charts concerned. Is this correct?
I am asking the question because in an automated strategy you would wish to update chart data
- in the event of a disconnect
- but also once per day after the daybreak
I have tested the second option from within OnBarUpdate() and it seems to work.
Comment