Is "while(!IsStopped())" expected to work on Indicators? - page 2

 

_StopFlag issue is already reported to MetaQuotes.

In all cases it's a bad practice to use such loop in an indicator.

 
Alain Verleyen #:

_StopFlag issue is already reported to MetaQuotes.

In all cases it's a bad practice to use such loop in an indicator.


Agree, its only really valid in services. Thank you for reporting.


 
Dominik Egert #:
Stop screwing this user. _StopFlag isnt working. Its a bug. I have reported this. Never got fixed.

Using Sleep() is not a solution. - Sleep() could be using a "noop" but who knows, right?

Documentation is clear on this. API is not behaving as documented -> Bug.
Fixed. Available in next build after 5836.
 
Alain Verleyen #:
Fixed. Available in next build after 5836.
Halleluiah! 🥳
 
Alain Verleyen #:
Fixed. Available in next build after 5836.
Nice. Thanks for the follow up.