MT5 Bars Import not working

Report any bugs with the Tickstory Lite software here. Please give as much detail as possible so the issue can be identified and resolved as soon as possible.
Post Reply
charme77
Posts: 4
Joined: Sun Jun 23, 2024 2:02 pm

MT5 Bars Import not working

Post by charme77 »

Hi.

I tried to import several forex pairs like listed in the yt video and the manual.
Unfortunately, the bars are not imported. In the mt5 log i simply get the following message:
MK 3 15:55:42.175 History 'MMAUDCAD' file open error [3]

I( tried several different pairs, all exported with utc+2 and predefined for MT5 Bars.
The ticks get imported, but testing is not possible without the bars.

How to handle this issue?

regards
tickstory
Posts: 5168
Joined: Sun Jan 06, 2013 12:27 am

Re: MT5 Bars Import not working

Post by tickstory »

Hi Charme77,

It looks like maybe you are trying to import data on a symbol/chart that is currently open? Maybe close it and try again.

Also, please note that your subscription has now expired. If you would like continued support, kindly renew your subscription.

Thanks.
charme77
Posts: 4
Joined: Sun Jun 23, 2024 2:02 pm

Re: MT5 Bars Import not working

Post by charme77 »

Yeah, ty.
First time i try it and then i hear "pay again".
But ok, i did it!

No, that wasnt the solution. Didnt had it active on the chart.Delete all charts possible, created a new Symbol and tried to import bars. Same error.
I use the mt5 build 4410 and ts 1.9.7.16
tickstory
Posts: 5168
Joined: Sun Jan 06, 2013 12:27 am

Re: MT5 Bars Import not working

Post by tickstory »

Hi Charme77,

Thanks for updating your subscription. FYI, the subscription covers our cost of providing on-going updates and support of the software. If you use the same download link that you were originally sent, you will be delivered the most recent version of the software v1.9.7.19.

That said, we do not believe this issue is related to Tickstory at all. The error you are getting is implying that Metatrader has the data file open and cannot write to it. TIckstory does not open any Metatrader data files so the only reason for this can either be MT5 itself or another program that is causing the issue. Is this a custom symbol you are importing to? Have you tried creating another custom symbol to see if that fixes it?

Thanks.
charme77
Posts: 4
Joined: Sun Jun 23, 2024 2:02 pm

Re: MT5 Bars Import not working

Post by charme77 »

Hi.

Ty, seemed that my MT5 instance was damaged. I installed a new one and didnt got that issue anymore.
But now i have a different one:
I created a new AUDCAD symbol like listed on the following page:
https://tickstory.com/back-testing-in-m ... g-quality/

I tried my backtest then but no trades were executed. I tried a multitest with the original AUDCAD symbol and the new one. The original one had trades, the new one with imported tickdata not, as you can see in the screenshot.
grafik.png
grafik.png (9.81 KiB) Viewed 12716 times
I afterwards also imported the ticks data, but it didnt changed anything on the backtests, results were the same (i deleted the previous results).
Seems like the imported data got ignored.
tickstory
Posts: 5168
Joined: Sun Jan 06, 2013 12:27 am

Re: MT5 Bars Import not working

Post by tickstory »

Hi Charme77,

Good to hear the original issue has been fixed and letting us know how you resolved it. Interesting to note that the "file open" error seems to be some sort of data corruption within MT5.

Regarding the custom symbol, please check the following:

- In the "View->Symbols->Bars/Ticks" screen that the data exists for the dates you are testing for (press the Request button and data should be shown).
- In the back-tester, make sure you have set "Modelling" to be "Every tick based on real ticks".
- In the back-tester, set the Date range to be "Entire history", to ensure that that there is no mix-up with dates tested vs dates imported.
- After commencing the test, check the Journal tab to make sure that your EA isn't getting any errors. The Journal will also provide useful information about the progress. Please note what it is saying as it may give further guidance about what the issue is.

If the above doesn't resolve it, I would highly recommend either using a stock-standard EA like "MACD Sample" to test and see if it's your EA that's not trading on tick data for some reason. In some cases, EAs might not trade due to spread or other conditions that are present in tick data but not in the standard minute data provided by Metatrader. If you are familiar with MQL code, you can also do a basic test and print the tick data as it is processed which will definitively tell you whether the data is being fed into the EA.

Hope this helps.
charme77
Posts: 4
Joined: Sun Jun 23, 2024 2:02 pm

Re: MT5 Bars Import not working

Post by charme77 »

Hi again.

I tried MACD and it showed "some" trades, but big differences.
I used now my own ea and tested with ictrading data and tickstory. results are completly different!
Please see screenshots. How can these different results happen?
2024-06-26 10_06_52-Start.png
2024-06-26 10_16_31-Start.png
tickstory
Posts: 5168
Joined: Sun Jan 06, 2013 12:27 am

Re: MT5 Bars Import not working

Post by tickstory »

Hi Charme77,

It is expected that you will get differences between two sets of data. How big a difference depends largely on how the EA is coded and the strategy itself. For example, if it is a scalping EA, then each trade is likely to see slight differences due to entry and exit prices. These differences will add up. For a longer-term trading strategy, it may be that your entry condition is triggered in one set of data but not another (for example, a moving average is not crossed at the same time in each set of data). This may cause knock-on effects where the strategy remains in a trade (or not), affecting the results. Of course, some strategies might have various delays or stops to trading as well.

Obviously we cannot comment on your specific strategy as you know it best. The goal here should be ensuring that your EA trades consistently on each set of data. If it is not, it's important to determine why otherwise it will also behave unexpectedly when you eventually trade it live (i.e. on an unseen/new set of data). The best way to understand the differences is by comparing the first trade and analyzing its entry condition and exit. Why are they different?

Here are some additional links from our FAQ which may help further:

Is there any value in back-testing?
What are the limitations of back-testing?
Why is my EA behaving differently with Metatrader data versus Tickstory's?

Hope this helps.
Post Reply