Problem Summary:When I close MetaTrader 5 and reopen later, the imported tick data for my custom financial instrument has been eliminated. I must reload it. This takes quite a bit of time. Actually, MetaTrader 5 seems to also delete the TKC files when the application is open. It just did this after I ran optimization.Details:I am importing 10+ gigabytes of tick data for a custom financial instrument as described here:https://www.metatrader5.com/en/terminal/help/trading_advanced/custom_instrumentsEverything works great in the strategy tester. I am very happy with this. However, when I close MetaTrader 5 and reopen later, the tick data is no longer available in the Symbols utility's tick section for the custom instrument (toolbar icon "Show symbol list, Ctrl-U"). Also, if I try to start the Strategy Tester, it does indicate the start date of the data in the Journal, but the tester never begins any obvious testing operations. In fact, the Start button immediately flips back to Start. Normally, it changes to Stop to indicate there is something running. Therefore, it is either failing or not finding any tick data. There are no errors in the journal. The only way to resolve the issue is to import the data again. Then, everything works as usual.I found the folder with the TKC files:C:\Users\ugliestUserEver\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\bases\Custom\ticks\MY-CUSTOM-INSTRUMENTIf I check the history folder, TKC files are there before I close Metatrader 5. Upon restart, they are no longer there. Due to this, I have to import it again. MetaTrader also seems to delete the TKC files while open, as this just happened to me after running optimization.I have searched quite a bit to determine if this is a known issue, and I have found nothing. Has anyone else heard about this or experienced it?Wish List for MetaQuotes Developers:It takes a while to load decades of tick history. Therefore, I would like for MetaTrader 5 to keep what I import. If that is not standard functionality (i.e. MetaTrader intentionally deletes tick data), I would like to request that the development staff add an option to "keep tick history forever." There can be a nice pop-up when this is clicked that the user is in danger of filling up their hard-drive, or there can be a cut-off where the data rolls off if the hard-drive space gets below a pre-set value, such as 100 GB.
I tried saving the TKC files before MetaTrader 5 deletes them. However, if I copy them into the folder before MetaTrader 5 starts, it deletes the TKC files. Therefore, I have to do the following:
1. Save the TKC files before MetaTrader 5 deletes them. I put mine in a .ZIP file.
2. Start up MetaTrader 5.
3. Unzip/copy them to the same folder.
4. Proceed with testing.
The above took about 1-2 minutes instead of the 1+ hours it takes to import the data.
Just a heads up to anyone else experiencing this problem... MetaTrader 5 has deleted my custom instrument's TKC files while in the middle of an overnight optimization. It definitely deletes them on start-up, every time. However, it also deletes them at various times throughout the day/night, while the application is open. I have experienced this frequently.
Another thing that I seem to have experienced is issues with data synchronization, when using the local network feature. I have another computer on the network, and I used it to perform optimizations. However, the tick data did not seem to synchronize properly. My results were way off, and when I tried to reproduce them using only 1 computer, I could not. I decided just to turn off the local network feature entirely. I have no certainty that this is occurring, but I have enough certainty that I will no longer use the feature with tick data. In fact, I would not even venture to use the cloud network with tick data, due to this experience. When I have more time, I may try to reproduce this and nail it down for certain. It is not a high priority for me.