Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

VR System Test MT5 - MetaTrader 5 Script | Trading Script Download - MetaTrader 5 Resources

author EAcpu | 5 reads | 0 comments |

VR System Test MT5 - script for MetaTrader 5

I often wonder and ask the question on forums: "Which computer to choose to get the maximum performance of the MetaTrader 4 and MetaTrader 5 terminals?" This question is of interest to many people when upgrading or buying a new PC, focusing on the performance of MetaTrader, which one is better to buy? Intel based or AMD based? How many and what type of RAM should there be? Which motherboard? Which drive to choose for data storage: SSD or HDD?

The developers praise the performance and ultra-fast speed of the МetaТrader 5 terminal, but how can an average trader or amateur programmer check the developers' words for themselves? Write some code? But which one? What needs to be checked? How to compare the performance of МetaТrader 4 and МetaТrader 5?

Anyway, I thought about it for a while and decided to write a test script to check the performance of PC and MetaTrader 4 and MetaTrader 5 terminals.

Part of the code was taken from testing the new MQL5 compiler for the x64 platform - increasing calculation speed by 2 to 10 times! topic.

What I did was combine the code for all the tests into one script and add all this code through a class, i.e. the script tests PC and terminal in two types of programming: procedural and OOP. I also added some tests related to the rendering of graphical objects, their displacement and deletion, as well as tests of handling the CCanvas class, as well as the measurement of the speed of operation of the CopyRates function when copying 1 000 000 minute bars. 45 tests in total.

Additionally, scripts can be used to check the honesty of VPS and VDS hosts (by comparing performance during testing).

You are welcome to participate in testing your computer according to my examples. I ran this test on my PC at maximum performance, empty boot.

How the script works: Once started, the script will step through the test, create and delete everything needed for the test, and finally open a results table on its own.

This is the result:

* Absolute — the absolute advantage of MetaTrader 5.

МetaТrader 4 version


Attachment download

📎 vr_system_test_mt5.mq5 (56.78 KB)

Source: MQL5 #14179

Verification code Refresh