I have some EAs and today they started having a strange behavior, after updating to 2560.
Every hour I reapply the templates (because some indicators get bugged), and it was working with no problems until today.
Now every time I apply template, the graph window splits and creates another graph (like the image in the left). If I close the program and apply the templates, it works correctly, but the 2nd time, it splits.. and continue splitting every time I use ApplyTemplates.
My function is:
void ApplyTemplate(long idChart, string fileName)
if (idChart > 0)
string dirFilename = "\\Files\\" + fileName;
int sleep = GetSleepByCPU(3);
if (GetExpertAttached(idChart, "") == "")
Print("ApplyTemplate: IDChart is not valid.");
Exactly, what a mess! They broke my nice "Forex Arranged" system available free on my GitHub account:
Forum on trading, automated trading systems and testing trading strategies
New MetaTrader 5 Platform build 2560: Built-in learning system improvements
Sergey Golubev, 2020.07.28 18:19
The possible issue with ChartApplyTemplate was already reported by several posts and one thread in Russian forum (for example, this thread).By the way, my MT5 was updated to the beta build 2561:
And this user (OP, means: the user who started this thread) replied that it was corrected:
fsbx, 2020.07.28 19:09
Nice. The AppyTemplate bug was corrected on 2561.
Now I need to debug the FileRead.