Hi guys,
I have around 10.000 lines of code. Indicator frezze randomly in MT5. Same code in MT4 have no problems. Is there any way to find out which line of mql5 code causing indicator and chart to frezze?
It usualy frezze after an half of hour. Is any tool in mql5 to show code where indicator stops?
- How come ObjectFind returns error 4202 (OBJECT DOES NOT EXIST)?
- MT5 lags or frezze when using EA and indicator on same chart (no problem with MT4)
- Where to find the Brokers list that are listed in MQL5
- There is no “randomly.” It is your loop(s) in OnCalculate, that are not exiting.
- Add file lines (with flush), when you enter and exit functions, until you isolate which function is hanging. And then go from there.
Igor Zizek:
Hi guys,
https://www.metatrader5.com/en/metaeditor/help/development/profiling
Hi guys,
I have around 10.000 lines of code. Indicator frezze randomly in MT5. Same code in MT4 have no problems. Is there any way to find out which line of mql5 code causing indicator and chart to frezze?
It usualy frezze after an half of hour. Is any tool in mql5 to show code where indicator stops?

Code profiling - Developing programs - MetaEditor Help
- www.metatrader5.com
Profiling means collecting program parameters during its execution. During a profiling, the execution time and the number of calls of individual...
William Roeder #:
- There is no “randomly.” It is your loop(s) in OnCalculate, that are not exiting.
- Add file lines (with flush), when you enter and exit functions, until you isolate which function is hanging. And then go from there.
Thank you @William Roeder for great idea!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register