Forum

Discovered a (probably race condition) bug with ChartIndicatorDelete.

Calling "Comment" and "ChartRedraw" directly before "ChartIndicatorDelete" causes it to fail with Error Code 4022 (ERR_PROGRAM_STOPPED) After countless hours of work and hunting I finally managed to pinpoint the problem and come up with a precise minimalist code demonstration of the bug. //

Ever since version 5.00 build 5172, 24 Jul 2025 the compiler doesn't work anymore

No matter what code I try to compile I get "fatal compiler error: unknown error 0 0". For example this simple code would've previously compiled just fine. int OnInit () { return INIT_SUCCEEDED ; } void OnTick () { return ; }

The MQL5 library seems to violate const-correctness

As I was writing my code (posting it is not relevant for this subject) I've run into some problems related to various functions where I declared parameters as const& (constant references) to objects. These errors were caused by the library. When I looked in the library code, sure enough, no method