I need some guidance about an interesting scenario which I have come across while building an indicator. I have converted the problem into a simple experiment, I explain below:
I have got a chart window in which several chart tabs are open and every chart tab has a different instrument loaded on it. I have created an indicator which is applied on each chart tab. The indicator is designed to print the name of instrument plotted on that specific chart tab on closure of each bar (OnBarUpdate).
I have observed that the OnBarUpdate() method of only that indicator instance prints the name of instrument whose tab is currently selected by me. The non-selected tab's indicator and its OnBarUpdate() method sit silent until I change the tab and select another one. Now the indicator of this newly selected tab starts printing and the rest of tabs indicators sit silent.
A very important observation here is that the newly selected tab prints all the previously pending messages now upon selection (For example, if I land on a new tab after 10 min where bar time frame is 1 min, the pending 10 prints come together upon selection of the tab). So, I feel like OnBarUpdate methods holds all its outputs (print messages) until that tab is selected by the user.
It is very crucial for me that all tabs' indicators OnBarUpdate methods keep working (or lets say printing) to achieve the required functionality. I request Ninja experts to help me in this regard with some relevant example codes, literature etc.
Best Regards,

Comment