Imagine that you have 3 indicators on a particular chart, called A, B, and C. Indicators A and B are set to CalcOnBarClose=True, and Indicator C is set to CalcOnBarClose=False, which means it updates on every tick.
When a new tick comes in, obviously the OnBarUpdate call will execute on Indicator C, which I would think would also trigger the Plot method of that same indicator, to be able to visually show the new value on the chart.
The question is, does executing the Plot method of Indicator C also indirectly trigger the Plot methods of indicators A and B? If the whole window is repainting as a result of a change in C, I would think that A and B also need to be repainted. This scenario means that if there is CPU-intensive code in the Plot routines of A and B, it will still get triggered on every tick, even though CalcOnBarClose is set to True for those indicators.
Is this the case, or am I missing something? Thanks!
Comment