1. I have an indicator that is based on three other indicators. The output of this particular indicator is 1 or 0. When placed on a chart, it behaves as expected. However in MA, it shows all zeros where in some cases it should be 1. On the chart and in MA, CalculateBarOnClose is set to false. Furthermore, the indicators that this indicator depends on, all had their CalculateBarOnClose flag set to this indicator's CalculateBarOnClose in the Initialize method. The only difference is that in MA, the number of bars loaded is 100 where on the chart it is 300 or so. However I don't believe this difference is significant. All other indicators that do not depend on other indicators, work as expected in MA.
2. Using IB, data in the grid was updating normally. However at the end of the day I noticed that some indicators had values of zero for all symbols. Once the F5 key was pressed, the grid was refreshed and data for the indicators were updated. CalculateBarOnClose flags for all indicators were set to false.
Can any hint or help be offered as to why these two abnormalities occurred?
Thanks in advance.
Comment