MT4 Hanging during back-test

General discussion about the Tickstory Lite software package.
roadrigoes
Posts: 6
Joined: Fri Apr 05, 2024 8:52 am

Re: MT4 Hanging during back-test

Post 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?
tickstory
Posts: 5148
Joined: Sun Jan 06, 2013 12:27 am

Re: MT4 Hanging during back-test

Post 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.
roadrigoes
Posts: 6
Joined: Fri Apr 05, 2024 8:52 am

Re: MT4 Hanging during back-test

Post 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.
tickstory
Posts: 5148
Joined: Sun Jan 06, 2013 12:27 am

Re: MT4 Hanging during back-test

Post by tickstory »

Great - thanks for letting us know!
roadrigoes
Posts: 6
Joined: Fri Apr 05, 2024 8:52 am

Re: MT4 Hanging during back-test

Post 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
tickstory
Posts: 5148
Joined: Sun Jan 06, 2013 12:27 am

Re: MT4 Hanging during back-test

Post 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.
Post Reply