MetaTrader 5 Platform Update Build 6090: General Improvements - page 3

 
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.

That's what I meant by "template".

 
Alain Verleyen #:

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

The only error which ever appears in the logs is like these:
LF 2 19:08:30.604 Anchored_VWAP_BTEv_v3.6 (US100,M5) indicator is too slow, 15219 ms. rewrite the indicator, please
RI 2 19:08:43.033 ADR_Daily_Context_Grid_BTEv (US100,M5) indicator is too slow, 12437 ms. rewrite the indicator, please
GD 2 19:15:00.433 Anchored_VWAP_BTEv_v3.6 (US100,M5) indicator is too slow, 15453 ms. rewrite the indicator, please
CG 2 19:15:12.881 ADR_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:
OO 2 14:13:58.884 Mini Charts MT5 (US100,M5) indicator is too slow, 36750 ms. rewrite the indicator, please
ON 2 14:14:11.198 ADR_Daily_Context_Grid_BTEv (US100,M5) indicator is too slow, 12312 ms. rewrite the indicator, please
JQ 2 14:14:26.526 Anchored_VWAP_BTEv_v3.6 (US100,M5) indicator is too slow, 15329 ms. rewrite the indicator, please
KD 2 14:22:20.520 Mini 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).

2026.08.12 10:05:50.253 Terminal Windows 10 build 19045, 4 x Intel Core i5-3470  @ 3.20GHz, AVX, 8 / 15 Gb memory, 35 / 232 Gb disk, UAC, GMT+1
 
Dadas #:
The only error which ever appears in the logs is like these:
LF 2 19:08:30.604 Anchored_VWAP_BTEv_v3.6 (US100,M5) indicator is too slow, 15219 ms. rewrite the indicator, please
RI 2 19:08:43.033 ADR_Daily_Context_Grid_BTEv (US100,M5) indicator is too slow, 12437 ms. rewrite the indicator, please
GD 2 19:15:00.433 Anchored_VWAP_BTEv_v3.6 (US100,M5) indicator is too slow, 15453 ms. rewrite the indicator, please
CG 2 19:15:12.881 ADR_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:
OO 2 14:13:58.884 Mini Charts MT5 (US100,M5) indicator is too slow, 36750 ms. rewrite the indicator, please
ON 2 14:14:11.198 ADR_Daily_Context_Grid_BTEv (US100,M5) indicator is too slow, 12312 ms. rewrite the indicator, please
JQ 2 14:14:26.526 Anchored_VWAP_BTEv_v3.6 (US100,M5) indicator is too slow, 15329 ms. rewrite the indicator, please
KD 2 14:22:20.520 Mini 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).

2026.08.12 10:05:50.253 Terminal Windows 10 build 19045, 4 x Intel Core i5-3470  @ 3.20GHz, AVX, 8 / 15 Gb memory, 35 / 232 Gb disk, UAC, GMT+1


Nothing changed in the Journal.
I tried hitting the Auto Trade button, and it unfroze the chart...
 
Dadas #:
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.

Dadas #:

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 ?

 
Alain Verleyen #:

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 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.
 

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:

void OnTick()
{
    Print(Symbol(), ": Ask = ", SymbolInfoDouble(Symbol(), SYMBOL_ASK), ", Bid = ", SymbolInfoDouble(Symbol(), SYMBOL_BID));
}

How to reproduce:

  1. Switch trading account to some other (switch back or use the new one).
  2. Attach the EA to the chart.
  3. Compare its printed values to the Ask/Bid lines on the chart and in the Market Watch.

Example:


 
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.

 
Alain Verleyen #:

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?