I would like to report a possible caching issue in MetaTrader 5 build 5660 related to indicators loaded through chart templates.
Problem description:
When a chart template (.tpl) is applied, MetaTrader sometimes loads an **older compiled indicator version**, even though the indicator has already been updated and recompiled.
Observed behavior:
1. An indicator (Version 1.0) is attached to a chart and saved in a template.
2. The indicator source code (.mq5) is later updated to Version 2.0 and recompiled.
3. The old compiled file (.ex5) is deleted from the *MQL5/Indicators* directory.
4. MetaTrader 5 is completely closed and restarted.
5. When the template is applied again, the chart still loads **the previous indicator version (1.0)**.
Troubleshooting already performed:
* Verified that the old *.ex5* file no longer exists in the *MQL5/Indicators* folder.
* Restarted MetaTrader 5 completely.
* Checked for duplicate indicator files in subfolders.
* Recompiled the indicator to generate a new *.ex5* file.
Despite these steps, MetaTrader still appears to load the old compiled indicator version when the template is applied.
This suggests that the platform may be using a **cached indicator instance or stored reference inside the template** instead of loading the current compiled file.
Could you please clarify:
• Whether MetaTrader 5 uses any internal caching mechanism for indicators referenced in templates
• If there is a recommended way to clear such cached indicator references
• Or if this behavior could indicate a platform bug
If needed, I would be happy to provide additional information or reproduction steps.
Thank you for your assistance.
Best regards
MT5 does not automatically delete EX5 files, nor does it reset indicator settings. Please review your computer and your workflow at the system level.
I would like to report a possible caching issue in MetaTrader 5 build 5660 related to indicators loaded through chart templates.
Problem description:
When a chart template (.tpl) is applied, MetaTrader sometimes loads an **older compiled indicator version**, even though the indicator has already been updated and recompiled.
Observed behavior:
1. An indicator (Version 1.0) is attached to a chart and saved in a template.
2. The indicator source code (.mq5) is later updated to Version 2.0 and recompiled.
3. The old compiled file (.ex5) is deleted from the *MQL5/Indicators* directory.
4. MetaTrader 5 is completely closed and restarted.
5. When the template is applied again, the chart still loads **the previous indicator version (1.0)**.
Troubleshooting already performed:
* Verified that the old *.ex5* file no longer exists in the *MQL5/Indicators* folder.
* Restarted MetaTrader 5 completely.
* Checked for duplicate indicator files in subfolders.
* Recompiled the indicator to generate a new *.ex5* file.
Despite these steps, MetaTrader still appears to load the old compiled indicator version when the template is applied.
This suggests that the platform may be using a **cached indicator instance or stored reference inside the template** instead of loading the current compiled file.
Could you please clarify:
• Whether MetaTrader 5 uses any internal caching mechanism for indicators referenced in templates
• If there is a recommended way to clear such cached indicator references
• Or if this behavior could indicate a platform bug
If needed, I would be happy to provide additional information or reproduction steps.
Thank you for your assistance.
Best regards
That's actually easy to verify. Does it show the old version in the indicator's Common tab after you load the template? If so, then there is some issue with the Indicators folder and paths in your system. You can check the path to the loaded indicators by editing the template file in any text editor. You can also make sure that it doesn't and cannot store any binary code.
I have the same issue. The first time everything is H1, but if I change the timeframe, the next time I open MT5 it randomly switches to a different timeframe.
None of the "Arrows" items from the Insert menu appear in the Objects window (see attached screenshots). In case you want to delete all those "Arrows" items in your charts, you have to manually scroll for them in order to delete every single one manually.
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.
MT5 does not automatically delete EX5 files, nor does it reset indicator settings. Please review your computer and your workflow at the system level.
Indicator with DRAW_ARROW failed to display correctly.
Following code snippet produces attached indicator result:
Wingding BUG still exists ?
Indicator with DRAW_ARROW failed to display correctly.
Following code snippet produces attached indicator result:
MT5 beta build 5703 has bug. Every time you restart, it will change all charts to timeframe H1 or other than what you had set.
@Alain Verleyen
I have the same issue. The first time everything is H1, but if I change the timeframe, the next time I open MT5 it randomly switches to a different timeframe.
Not reproducible. Please provide full code that compiles, as well as your config (Journal log).
There you have it. Good luck.
None of the "Arrows" items from the Insert menu appear in the Objects window (see attached screenshots).
In case you want to delete all those "Arrows" items in your charts, you have to manually scroll for them in order to delete every single one manually.