EAToMath - MetaTrader 5 Library | MT5 EA Download - MetaTrader 5 Resources











This library adds the ability to test trading Expert Advisors in the MT5 tester math mode.
Some explanations of the proposed implementation are given below.
To enable your EA to trade in math mode, you need to add the following lines.
#include// Test history in MT5 tester math mode #Includes "EA_Test.mq4" // Any MT4 style EA trading based on price changes.
and allows the use of DLLs (Secure - Open Source Code).
First, you need to save the tick changes by running a single pass of the EA with the corresponding specified input parameters.
Once passed, the log will contain information about the saved quotes.
EURUSD : real quotes start from 2025.01.01 00:00:00 final balance 10000.00 points tester result 10000 2025.07.08 23:59:00 EAToMath.mqh Chapter 672 : 1 988 Chapter 733 Trading quotes only ( 11.380 MB , compressed = 10:00 ) Saved in C:\Users\Unknown\AppData\Roaming\MetaQuotes\Terminal\Common\EAToMath.mqh\Ticks.tsh EURUSD, M1: 1988773 ticks, 38773 generated bar chart. Environment sync at 0 : 00 : 00.025 . Test passed at 0 : 00 : 02.679 (including scale preprocessing 0 : 00 : 00.172 ). EURUSD,M1: Total time from login to stop test 0 : 00 : 02.704 (including 0 : 00 : 00.025 for historical data synchronization)
After that, you can run the Expert Advisor in the trading and mat modes of the MT5 tester.

There will be corresponding information in the tester's log.
EAToMath.mqh Chapter 549 : EURUSD: Test Experts \ fxsaber \ EAToMath_Example.ex5 from 2025.06.01 00:00:00 to 2025.07.09 00:00:00 EAToMath.mqh 599 : EURUSD quote data starting from 2025.06.02 00 : 02 : 00.225 EAToMath.mqh Chapter 814 : Final Balance 9986.43 Tester Result 9986.43 0 : Math test passed at 0 : 00 : 00.133 127MB memory used
The screen shows optimized performance in different modes from left to right: real quotes (points), virtual environment and real quotes in math mode.
You can clearly see that math mode is much faster in this case.
Math mode is only two indicators above the usual MT5 tester trading mode when using this library.
The following libraries are used for compilation.
#include// https://www.mql5.com/en/code/61126 #include // https://www.mql5.com/en/code/26132 #include // https://www.mql5.com/en/code/22577 #include // https://www.mql5.com/en/code/20298 #include // https://www.mql5.com/en/code/16280 #include // https://www.mql5.com/en/code/19003 #include // https://www.mql5.com/en/code/31446 #include <report.mqh> // https://www.mql5.com/en/code/18801
Indicator Description – Bollinger Bands Cross Signal Name: Bollinger Bands Cross Signal Version: 1.1 Add an author link: https://www.mql5.com/en/users/dahmi_benali
Here is an example of sorting a list of structures by field in ascending order. You can understand and customize the above algorithm according to the purpose of use. This is the most basic example and a direction for solving the arrangement in the array structure. The algorithms used in this example are quick sort and merge sort.
This indicator employs some of the most interesting ways to measure correlation
Breakout Trader 1.0 Trading range breakouts.
Attachment download
📎 data_tester.mqh (1.57 KB)
📎 filemap.mqh (8.72 KB)
📎 eatomath.mqh (61.7 KB)
📎ea_test.mq4 (3.52 KB)
📎 eatomath_example.mq5 (1.93 KB)
Source: MQL5 #61283
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •