Page 2 of 2
Re: MT4 Hanging during back-test
Posted: Sun Feb 09, 2025 2:56 pm
by roadrigoes
It is unlikely that this issue is due to Tickstory since all it is effectively doing is exporting data. The likely causes in order of likelihood is your EA or MT4. To eliminate any known issues, firstly make sure that you are not attempting to go beyond the 4GB FXT limitation that MT4 has (it's unlikely with 1 year of data, but check anyway). After that, test with a generic EA such as "MACD Sample". If this successfully completes, there is something going wrong in your EA. It may be memory related or a multitude of other reasons. I would be checking the Journal tab to see if anything interesting is being logged.
my tick data is 115gb with 4GB FXT , i back test on hourly . any suggestions on solution?
Re: MT4 Hanging during back-test
Posted: Mon Feb 10, 2025 2:03 am
by tickstory
The 8 am opening price is 42059.7 it opens trade at 42100.6
I found several large differences whilst getting 99.9 % modelling quality. MT4 is making the error?
Hi Roadrigoes,
MT4 uses the last quoted price as the execution price. You might want to try doing a "
RefreshRates()" call in your code prior to checking the price as this might be the reason for any delayed pricing. You might also want to trace your strategy in Visual Mode as this might give you some further indicators as to what is going on.
Hope this helps.
Re: MT4 Hanging during back-test
Posted: Mon Feb 10, 2025 8:35 am
by roadrigoes
Solved
The mt4 charts I was looking at on one chart were showing different prices on candles , I refreshed the charts and opened new ones which show same prices as test prices.
Re: MT4 Hanging during back-test
Posted: Mon Feb 10, 2025 9:11 am
by tickstory
Great - thanks for letting us know!
Re: MT4 Hanging during back-test
Posted: Tue Feb 11, 2025 7:02 am
by roadrigoes
I am using 115 gb data on tester history , it works ok with 99.9 % modelling results . I don't understand 4 gb limit for MT4
Re: MT4 Hanging during back-test
Posted: Tue Feb 11, 2025 10:21 am
by tickstory
Metaquotes previously had such a hard limitation, however it appears that users can process more data depending on their system and resources. In some cases, for example, EAs can use too much memory and therefore cause the tester to quit. In such a case, it will be required to test with smaller sets of data or optimise your EA in some way.