Deleting indicator from all windows - page 2

 
Dominik Christian Egert #:
what are you trying to achieve?

If you want the EA or indicator to load the file after it has been altered, use CustomEvents to notify your program of reloading. And send back an acknowledgement after you are done reloading...

Build a causal sync relationship between both programs. Don't brute force your code to do that, use proper coding.

I will look into it.

 

I have indentified and corrected the cause of the terminal freezing. Two instances of many identical indicators other than symbol names and data were trying to execute the  WebRequest() function (even though it is not allowed by MetaTrader), which is found in the class instantiation. Even if the condition didn't call for it. Oddly, one was trying randomly, the other systematically.

 
dc3463456 #:
If you want the EA or indicator to load the file after it has been altered, use CustomEvents to notify your program of reloading

How do you reload the indicator without removing it and adding it back?

 
dc3463456 #:

How do you reload the indicator without removing it and adding it back?

No, the main idea is not to reload the whole indicator, but to update the relevant data inside the indicator.

I said: "load the file after it has been altered"

Anyways, you could use a flag to notify your OnCalculate to begin at the start of current buffers, recalculating all data, instead of only updating latest values.