Steps to reproduce:
Open a Chart with TickReplay.
Add the attached indicator to the chart. You get the expected result of no log output.
Add the attached indicator to the chart a second time. You get multiple log messages of bars where OnMarketData was not called once.
Change the indicator to use the custom variable to detect a new bar start. You get the expected result of no log output no matter how often the indicator is added to the chart.
Comment