Michael Charles Schefe #: 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.
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.
The only error which ever appears in the logs is like these:
LF219:08:30.604Anchored_VWAP_BTEv_v3.6 (US100,M5)indicator is too slow, 15219 ms. rewrite the indicator, please
RI219:08:43.033ADR_Daily_Context_Grid_BTEv (US100,M5)indicator is too slow, 12437 ms. rewrite the indicator, please
GD219:15:00.433Anchored_VWAP_BTEv_v3.6 (US100,M5)indicator is too slow, 15453 ms. rewrite the indicator, please
CG219:15:12.881ADR_Daily_Context_Grid_BTEv (US100,M5)indicator is too slow, 12453 ms. rewrite the indicator, please 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:
OO214:13:58.884Mini Charts MT5 (US100,M5)indicator is too slow, 36750 ms. rewrite the indicator, please
ON214:14:11.198ADR_Daily_Context_Grid_BTEv (US100,M5)indicator is too slow, 12312 ms. rewrite the indicator, please
JQ214:14:26.526Anchored_VWAP_BTEv_v3.6 (US100,M5)indicator is too slow, 15329 ms. rewrite the indicator, please
KD214:22:20.520Mini Charts MT5 (US100,M5)indicator is too slow, 21985 ms. rewrite the indicator, please 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).
Dadas #: The only error which ever appears in the logs is like these:
LF219:08:30.604Anchored_VWAP_BTEv_v3.6 (US100,M5)indicator is too slow, 15219 ms. rewrite the indicator, please
RI219:08:43.033ADR_Daily_Context_Grid_BTEv (US100,M5)indicator is too slow, 12437 ms. rewrite the indicator, please
GD219:15:00.433Anchored_VWAP_BTEv_v3.6 (US100,M5)indicator is too slow, 15453 ms. rewrite the indicator, please
CG219:15:12.881ADR_Daily_Context_Grid_BTEv (US100,M5)indicator is too slow, 12453 ms. rewrite the indicator, please 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:
OO214:13:58.884Mini Charts MT5 (US100,M5)indicator is too slow, 36750 ms. rewrite the indicator, please
ON214:14:11.198ADR_Daily_Context_Grid_BTEv (US100,M5)indicator is too slow, 12312 ms. rewrite the indicator, please
JQ214:14:26.526Anchored_VWAP_BTEv_v3.6 (US100,M5)indicator is too slow, 15329 ms. rewrite the indicator, please
KD214:22:20.520Mini Charts MT5 (US100,M5)indicator is too slow, 21985 ms. rewrite the indicator, please 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...
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 ?
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 did that many times. Removing one-by-one. That's how I started on the optimization journey. The AVWAP was the first suspect. But after optimizing it things seemed better, but still after a while this symptom returned. And it seems completely unpredictable, it just happens when it happens. The EA is not affected, at least I haven't noticed. And yes, I have the source codes, they are mine. One is mladen's but converted to MQL5 by me with AI assitance. I sent you my indicators.
Dadas #: 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.
rkdius #: 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?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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?