MT4-Tester VS MT5-Tester - page 5

 
Yuriy Zaytsev:

It's not about you, it's about the fact that a properly written algorithm doesn't have to go into history on every tick.

Well, it doesn't, Renat didn't see it because of the coding style of the topic starter.
 
Yuriy Zaytsev:

Речь не о Вас ,   а о том - что правильно написанный алгоритм не должен на каждом тике ходить в историю.

Andrey Khatimlianskii:
Well he doesn't, Renat missed it because of the coding style of the topic-starter.

so it's not about him .

It's only about the assertion.


 
Renat Fatkhullin:
And another thing - in the tester the history is available in full depth regardless of the settings of the terminal itself.
This in itself slows down the process, both in MT4 and in MT5 - it would be good to have a setting - to give the history for the last month in the tester!
 
Yuriy Zaytsev :

It's not about you, it's about the fact that a properly written algorithm doesn't have to go into history on every tick.

That's not the problem, the problem is using this library "MT4Orders.mqh" involve a serious overload.

Automatic translation.

That's not a problem, the problem is using this library "MT4Orders.mqh" involves a serious overload.

Files:
191913.mq5  3 kb
 
-Aleks-:
Which in itself slows down the process, both in MT4 and in MT5 - it would be good to have a setting - to give the history for the last month in the tester!

It is more logical to write the optimal algorithm!

 
Alain Verleyen:

That's not the problem, the problem is using this library "MT4Orders.mqh" involve a serious overload.

Thanks for the code! Your variant (without MT4Orders, MT5b1598)
EURUSD,M1: 1865415 ticks, 7192 bars generated. Test passed in 0:00:04.571 (including ticks preprocessing 0:00:00.203).

Original code

EURUSD,M1: 1865415 ticks, 7192 bars generated. Environment synchronized in 0:00:00.032. Test passed in 0:00:05.553 (including ticks preprocessing 0:00:00.219).


The library is 20% slower on such simple code, but will work without errors on any characters.

On complex code with history reference it will work faster than Trade.mqh.

 
fxsaber:
Thanks for the code! Your version (without MT4Orders, MT5b1598)

The original code


Library slower by 20% for such a simple code, but will not work on any error symbols.

On complex code with reference to the story will run faster Trade.mqh.

My test show a bigger difference, but my computer is obviously slower.

Your version.

2017.05.08 13:49:21.188 Core 1 final balance 80670.20 USD
2017.05.08 13:49:21.188 Core 1 EURUSD,M15: 1704266 ticks, 384 bars generated. Environment synchronized at 0:00:00.046. Test passed in 0:01:04.313 (including ticks preprocessing 0:00:00.437).

My version (without library).

2017.05.08 13:52:18.274 Core 1 final balance 80670.20 USD
2017.05.08 13:52:18.274 Core 1 EURUSD,M15: 1704266 ticks, 384 bars generated. Environment synchronized at 0:00:00.094. Test passed in 0:00:13.047 (including ticks preprocessing 0:00:00.437).

Build 1596.
 
Alain Verleyen:

Build 1596.

1598.
 
fxsaber :
1598.

I will try on another computer, also with an SSD.

Automatic translation :

I will try on a different computer, also with an SSD.

 
fxsaber :
1598.

Ok I confirm your result with build 1598. My version is about 20% faster.

But your original version with build 1596 is far slower so your original comparison with MT4 must be updated.

Automatic translation:

Ok I confirm your result with build 1598. My version is about 20% faster.

But your original version with build 1596 is much slower , so your original comparison with MT4 should be updated.