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
i dont think that you can use the templates between the mt4/5 anymore, it has been like so for many many years. i urge you to create different templates for mt4 and mt5.
I am not talking about the same .tpl files.
I have been trading on MT4 since 2011, but nowadays many people are transitioning to MT5, and I am also converting my MT4 system to MT5.
That's what I meant by "template".
You need to understand nothing can be done with your post !
The issue your are struggling with is NOT a general issue about MT5, a lot of people are running very heavy indicators, tools or EAs on MT5, without problems.
So the only way to understand your issue is with code, and at least to start with the logs (Experts and Journal files), the ex5 or products you are using. Your issue needs to be reproduced to be investigated, without reproducing it nothing can be done about it.
https://www.mql5.com/en/forum/449342
No other errors appear, and often even those don't appear when the freeze happens.
As far as the codes - I have optimised them many times, making sure they don't recalculate on each tick, or delete and recreate graphics.
And I still get:
This can happen randomly 2-3 times a day, and not on any special events...
I have had long hours of back and forth with several AI models, and the only conclusion is that:
Some kind of bug blocks the thread in which the indicators are supposed to do the OnCalculate().
IOW, the process which cuases the freeze happens in the same thread, and then the MT5 Watchdog detects a dormant indicator, or all indicators on the chart, and returns that error, which causes a mess on the chart, because it can even remove the indicator from the chart, or it just ignores the indicator(s).
The only error which ever appears in the logs is like these:
No other errors appear, and often even those don't appear when the freeze happens.
As far as the codes - I have optimised them many times, making sure they don't recalculate on each tick, or delete and recreate graphics.
And I still get:
This can happen randomly 2-3 times a day, and not on any special events...
I have had long hours of back and forth with several AI models, and the only conclusion is that:
Some kind of bug blocks the thread in which the indicators are supposed to do the OnCalculate().
IOW, the process which cuases the freeze happens in the same thread, and then the MT5 Watchdog detects a dormant indicator, or all indicators on the chart, and returns that error, which causes a mess on the chart, because it can even remove the indicator from the chart, or it just ignores the indicator(s).
Nothing changed in the Journal.
I tried hitting the Auto Trade button, and it unfroze the chart...
The only error which ever appears in the logs is like these:
Ok the indicator is too slow is clear clue.
Beside the Mini Charts which is from the Market. Do you have the code or only ex5 ? If you can sent me the code (in private) I can investigate.
Nothing changed in the Journal.
I tried hitting the Auto Trade button, and it unfroze the chart...
That's an other clue, and this should affect only your EA, so the question is the same, can you sent me the code for investigation ?
---
An other thing you could try is to run a second MT5 instance, using the same indicators/EA but removing one at a time. And see if the freeze still happens ? See what I mean ?
Ok the indicator is too slow is clear clue.
Beside the Mini Charts which is from the Market. Do you have the code or only ex5 ? If you can sent me the code (in private) I can investigate.
That's an other clue, and this should affect only your EA, so the question is the same, can you sent me the code for investigation ?
---
An other thing you could try is to run a second MT5 instance, using the same indicators/EA but removing one at a time. And see if the freeze still happens ? See what I mean ?
I sent you my indicators.
Why can't I delete a tag through the web interface? Repository link: tag-deletion-issue
Account change causes EA receives incorrect values for Ask/Bid via SymbolInfoDouble.
Test code:
How to reproduce:
Example:
I have been struggling with this freezing issue for weeks now!
I keep optimising my indicators like crazy and nothing fixes this bug!
Currently I am running Build 6090:
Chart stops updating candles and the Bid/Ask price lines, while the crosshair still tracks the mouse and P&L on the account still updates live — indicating the data feed is fine and it's isolated to that chart's own tick-driven redraw. I am running 1 chart, 4 indicators, plus 1 from MQL5 Market (Mini Charts), and 1 EA, but the EA isn't a robot. I have 1000 bars in history set, and my indicators plot not more than 500 bars. The freeze sometimes produces "Indicator is too slow, please rewrite the indicator" , sometimes no print at all. There is no pattern I can notice. Everything can run fine for hours, and then it just happens, on a slow market. And when it happens, a button disappears. I have 3 buttons. Changing TFs resets the freeze, also reapplying my template unfreezes it, but I haven't tried clicking anything else yet. Oh, and sometimes it unfreezes on its own, but still a button may disappear.
This is very frustrationg and totally unacceptable for a trading platform!!!
BTW. The same template with some more indicators, like Symbol Changer, runs fine on MT4.
The lag is not caused by indicators. It's caused by EA. I have the same issue, I've been reporting that the execution of indicators is broken and chart response is broken, and only answer I get is they will do nothing about it. The EA is supposed to be running in separate thread but for some reason it's choking indicators. You can test it, when it starts lagging close the EA and everything will come back to order. I don't even bother to report these things anymore. They will do nothing about it.
You are lying. You have been asked to collaborate to understand and reproduce the issue (and so it would be possible to fix it if a bug is really found), and you refused. Simple as that.
There is no such general behaviour as what you describe with MT5 on all EAs/Indicators. It's specific, and so it needs to be investigated from the code used when it happens. There is no other way. No company in the world would invest time on something the way you report it, being unpleasant and rude additionally.
You are lying. You have been asked to collaborate to understand and reproduce the issue (and so it would be possible to fix it if a bug is really found), and you refused. Simple as that.
There is no such general behaviour as what you describe with MT5 on all EAs/Indicators. It's specific, and so it needs to be investigated from the code used when it happens. There is no other way. No company in the world would invest time on something the way you report it, being unpleasant and rude additionally.
Alain, I did not refuse. You asked me for logs, and there is nothing useful in logs. You can see Dadas logs, it falsely shows the indicator is too slow. But this is not indicator issue, never was. It's the issue with MT5. You call me a liar and then confirm what I said was true, that MQ will not do anything about it. I'm not being rude, perhaps you treat this personally while you shouldn't.
I think I have a right to be upset about this whole situation, when I come here for help and only get insulted about my coding skills and blown off.
Maybe MT5 itself should have a "/debug" command line switch that will produce logs that are useful for you? How about that?