Thank you, I couldn't reproduce it with a simple example. Only the indicator is too slow, 10015 ms. rewrite the indicator, please. I will think of an example to reproduce the problem.
How do I go into debug mode when the indicator is manually removed from the chart? Need to understand what's going on with the guts. The problem is not clear from the unprinter, if Slawa is not mistaken.
Somehow the indicator (without DLL) makes new bars on the chart stop drawing. As soon as I remove the indicator, new bars appear immediately. I am able to show it only on video. How do I show it here?
comp: How do I go into debug mode when the indicator is manually removed from the chart? Need to understand what's going on with the guts. The problem is not clear from the unprinter, unless Slawa is mistaken.
Karputov Vladimir: The breakpoint is in OnDeinit().
I need the MOMENT of deletion of the chart, not OnDeinit. For example, during OnCalculate I delete an indicator. Ideally, _StopFlag should be monitored everywhere, but it doesn't work.
There is no such built-in event, which could cause a debug stop.
OnDeinit is always executed after OnCalculate
You cannot use the built-in MQL tools, you have to do it yourself, for example, for the debug version add the "caller function name" parameter
Such a parameter has been added. And what do you mean by different debug and release versions in the same code?
ifdef _DEBUG I suspect
How do I go into debug mode when the indicator is manually removed from the chart? Need to understand what's going on with the guts. The problem is not clear from the unprinter, unless Slawa is mistaken.
Really need help!
The breakpoint is in OnDeinit().
I need the MOMENT of deletion of the chart, not OnDeinit. For example, during OnCalculate I delete an indicator. Ideally, _StopFlag should be monitored everywhere, but it doesn't work.
There is no such built-in event, which could cause a debug stop.